1. 07 Sep, 2018 1 commit
  2. 30 Aug, 2018 1 commit
  3. 13 Feb, 2018 1 commit
  4. 13 Jan, 2018 1 commit
  5. 12 Jan, 2018 2 commits
    • Alexander Alekhin's avatar
      java: files rename · 0cad2d2a
      Alexander Alekhin authored
      intermediate commit (to simplify code review)
      0cad2d2a
    • SarenT's avatar
      Merge pull request #10489 from SarenT:offset-mat_put · c6d9ce8f
      SarenT authored
      Adding capability to parse subsections of a byte array in Java bindings (#10489)
      
      * Adding capability to parse subsections of a byte array in Java bindings. (Because Java lacks pointers. Therefore, reading images within a subsection of a byte array is impossible by Java's nature and limitations. Because of this, many IO functions in Java require additional parameters offset and length to define, which section of an array to be read.)
      
      * Corrected according to the review. Previous interfaces were restored, instead internal interfaces were modified to provide subsampling of java byte arrays.
      
      * Adding tests and test related files.
      
      * Adding missing files for the test.
      
      * Simplified the test
      
      * Check was corrected according to discussion. An OutOfRangeException will be thrown instead of returning.
      
      * java: update MatOfByte implementation checks / tests
      c6d9ce8f
  6. 07 Jan, 2018 1 commit
  7. 15 Dec, 2017 1 commit
  8. 10 Nov, 2017 1 commit
  9. 31 Aug, 2017 1 commit
  10. 23 Aug, 2017 1 commit
  11. 19 Jul, 2017 1 commit
  12. 22 Jun, 2017 1 commit
  13. 15 Jun, 2017 1 commit
  14. 18 Mar, 2017 1 commit
    • Kerry Billingham's avatar
      Changes made to the Maven build process: · d9231afa
      Kerry Billingham authored
      * Introduced OSGi Blueprint XML file and Bean class too automatically load the native library.
      
      * Introduced integration testing module to deploy to Karaf OSGi implementation.
      
      * Clears library executable stack flag during build.
      
      * Updated README document.
      d9231afa
  15. 07 Mar, 2017 1 commit
  16. 03 Mar, 2017 2 commits
  17. 30 Dec, 2016 1 commit
  18. 19 Dec, 2016 1 commit
  19. 15 Dec, 2016 1 commit
  20. 16 Sep, 2016 1 commit
  21. 11 Jul, 2016 1 commit
  22. 13 Apr, 2016 1 commit
  23. 18 Dec, 2015 2 commits
  24. 29 Oct, 2015 1 commit
  25. 20 Oct, 2015 1 commit
  26. 08 Oct, 2015 1 commit
  27. 07 Oct, 2015 1 commit
  28. 01 Oct, 2015 1 commit
  29. 22 Sep, 2015 1 commit
  30. 19 Sep, 2015 1 commit
    • Andrey Pavlenko's avatar
      draft implementation of alternative CameraBridge via GLES · 8e088d38
      Andrey Pavlenko authored
      a simple sample will look like:
      
      ```java
      public class MainActivity extends Activity implements CameraGLSurfaceView.CameraTextureListener {
      
      	CameraGLSurfaceView mView;
      	ByteBuffer buf;
      
          @Override
          protected void onCreate(Bundle savedInstanceState) {
              super.onCreate(savedInstanceState);
              requestWindowFeature(Window.FEATURE_NO_TITLE);
              getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
                      WindowManager.LayoutParams.FLAG_FULLSCREEN);
              getWindow().setFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON,
                      WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
              setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
      
              mView = new CameraGLSurfaceView(this, null);
              mView.setCameraTextureListener(this);
              setContentView(mView);
              buf = ByteBuffer.allocateDirect(1920*1080*4);
          }
      
          @Override
          protected void onPause() {
              mView.onPause();
              super.onPause();
          }
      
          @Override
          protected void onResume() {
              super.onResume();
              mView.onResume();
          }
      
      	@Override
      	public void onCameraViewStarted(int width, int height) {
      		// TODO Auto-generated method stub
      
      	}
      
      	@Override
      	public void onCameraViewStopped() {
      		// TODO Auto-generated method stub
      
      	}
      
      	@Override
      	public boolean onCameraFrame(int texIn, int texOut, int width, int height) {
      		Log.i("MAIN", "onCameraFrame");
      		int w=width, h=height;
      		/*
      		// option 1:
      		// just return 'false' to display texIn on screen
      		retutn false;
      		*/
      
      		/*
      		// option 2:
      		// fast copy texIn to texOut
      		GLES20.glActiveTexture(GLES20.GL_TEXTURE0);
          	GLES20.glBindTexture(GLES20.GL_TEXTURE_2D, texOut);
      		GLES20.glCopyTexImage2D(GLES20.GL_TEXTURE_2D, 0, GLES20.GL_RGBA, 0, 0, w, h, 0);
      		return true;
      		*/
      
      		// option 3:
      		// read, modify and write back pixels
      		GLES20.glReadPixels(0, 0, w, h, GLES20.GL_RGBA, GLES20.GL_UNSIGNED_BYTE, buf);
      
      		buf.rewind();
      		// red line
      		for(int i=0; i<h; i++) {
      			buf.position(w*4*i+i*4);
      			buf.put((byte) -1);
      			buf.position(w*4*i+i*4+4);
      			buf.put((byte) -1);
      		}
      		buf.rewind();
      
      		GLES20.glActiveTexture(GLES20.GL_TEXTURE0);
          	GLES20.glBindTexture(GLES20.GL_TEXTURE_2D, texOut);
      		GLES20.glTexSubImage2D(GLES20.GL_TEXTURE_2D, 0, 0, 0, w, h, GLES20.GL_RGBA, GLES20.GL_UNSIGNED_BYTE, buf);
      		return true;
      	}
      }
      ```
      8e088d38
  31. 29 Jul, 2015 1 commit
  32. 19 Jun, 2015 1 commit
  33. 03 Jun, 2015 1 commit
  34. 02 Jun, 2015 1 commit
  35. 26 May, 2015 2 commits
  36. 23 May, 2015 1 commit