Make SurfaceTextureHelper and I420Frame public in Java.
This change makes the Java classes and constructors for SurfaceTextureHelper and I420Frame public. This allows applications to use the WebRTC CameraVideoCapturer to obtain raw frames, and to render frames on the WebRTC VideoRenderer without having to pass them through a VideoTrack - such as when using Quartc. BUG=None. Review-Url: https://codereview.webrtc.org/2544563002 Cr-Commit-Position: refs/heads/master@{#15344}
This commit is contained in:
@ -33,7 +33,7 @@ import java.util.concurrent.TimeUnit;
|
||||
* wrapping texture frames into webrtc::VideoFrames and also handles calling returnTextureFrame()
|
||||
* when the webrtc::VideoFrame is no longer used.
|
||||
*/
|
||||
class SurfaceTextureHelper {
|
||||
public class SurfaceTextureHelper {
|
||||
private static final String TAG = "SurfaceTextureHelper";
|
||||
/**
|
||||
* Callback interface for being notified that a new texture frame is available. The calls will be
|
||||
|
||||
@ -45,8 +45,8 @@ public class VideoRenderer {
|
||||
/**
|
||||
* Construct a frame of the given dimensions with the specified planar data.
|
||||
*/
|
||||
I420Frame(int width, int height, int rotationDegree, int[] yuvStrides, ByteBuffer[] yuvPlanes,
|
||||
long nativeFramePointer) {
|
||||
public I420Frame(int width, int height, int rotationDegree, int[] yuvStrides,
|
||||
ByteBuffer[] yuvPlanes, long nativeFramePointer) {
|
||||
this.width = width;
|
||||
this.height = height;
|
||||
this.yuvStrides = yuvStrides;
|
||||
@ -73,8 +73,8 @@ public class VideoRenderer {
|
||||
/**
|
||||
* Construct a texture frame of the given dimensions with data in SurfaceTexture
|
||||
*/
|
||||
I420Frame(int width, int height, int rotationDegree, int textureId, float[] samplingMatrix,
|
||||
long nativeFramePointer) {
|
||||
public I420Frame(int width, int height, int rotationDegree, int textureId,
|
||||
float[] samplingMatrix, long nativeFramePointer) {
|
||||
this.width = width;
|
||||
this.height = height;
|
||||
this.yuvStrides = null;
|
||||
|
||||
Reference in New Issue
Block a user