Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Android: Move SurfaceTextureListener.java into main source tree
- from packaging
- Loading branch information
1 parent
8a9f4a8
commit 1e57c62
Showing
2 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
mythtv/android-package-source/src/org/mythtv/video/SurfaceTextureListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package org.mythtv.video; | ||
|
||
import android.graphics.SurfaceTexture; | ||
|
||
public class SurfaceTextureListener implements SurfaceTexture.OnFrameAvailableListener { | ||
|
||
private long m_callbackData = 0; | ||
|
||
public SurfaceTextureListener(long callbackData) { | ||
m_callbackData = callbackData; | ||
} | ||
|
||
@Override | ||
public void onFrameAvailable (SurfaceTexture surfaceTexture) { | ||
frameAvailable(m_callbackData, surfaceTexture); | ||
} | ||
|
||
public native void frameAvailable(long nativeCallbackData, SurfaceTexture surfaceTexture); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters