File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
src/in/omerjerk/processing/video/android Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,8 @@ public static void log(String log) {
48
48
private SurfaceTexture mSurfaceTexture ;
49
49
private FullFrameRect mFullScreen ;
50
50
private int mTextureId ;
51
+ private final float [] mSTMatrix = new float [16 ];
52
+
51
53
private Texture appletTexture ;
52
54
53
55
private CameraHandler mCameraHandler ;
@@ -264,6 +266,9 @@ public void onFrameAvailable(final SurfaceTexture surfaceTexture) {
264
266
public void run () {
265
267
System .out .println ("onFrameAvailable" );
266
268
surfaceTexture .updateTexImage ();
269
+ GLES20 .glBindFramebuffer (GLES20 .GL_FRAMEBUFFER , frameBuffers .get (0 ));
270
+ surfaceTexture .getTransformMatrix (mSTMatrix );
271
+ mFullScreen .drawFrame (mTextureId , mSTMatrix );
267
272
//TODO: Copy this texture to applet's texture
268
273
}
269
274
});
You can’t perform that action at this time.
0 commit comments