public class TextureBufferImpl extends java.lang.Object implements VideoFrame.TextureBuffer
VideoFrame.TextureBuffer.Type
构造器和说明 |
---|
TextureBufferImpl(int width,
int height,
VideoFrame.TextureBuffer.Type type,
int id,
Matrix transformMatrix,
Handler toI420Handler,
YuvConverter yuvConverter,
java.lang.Runnable releaseCallback) |
限定符和类型 | 方法和说明 |
---|---|
VideoFrame.Buffer |
cropAndScale(int cropX,
int cropY,
int cropWidth,
int cropHeight,
int scaleWidth,
int scaleHeight)
Crops a region defined by |cropx|, |cropY|, |cropWidth| and |cropHeight|.
|
int |
getHeight() |
int |
getTextureId() |
Matrix |
getTransformMatrix()
Retrieve the transform matrix associated with the frame.
|
VideoFrame.TextureBuffer.Type |
getType() |
int |
getWidth()
Resolution of the buffer in pixels.
|
int |
refCount() |
void |
release()
Decreases ref count by one.
|
void |
retain()
Increases ref count by one.
|
VideoFrame.I420Buffer |
toI420()
Returns a memory-backed frame in I420 format.
|
public TextureBufferImpl(int width, int height, VideoFrame.TextureBuffer.Type type, int id, Matrix transformMatrix, Handler toI420Handler, YuvConverter yuvConverter, @Nullable java.lang.Runnable releaseCallback)
public VideoFrame.TextureBuffer.Type getType()
getType
在接口中 VideoFrame.TextureBuffer
public int getTextureId()
getTextureId
在接口中 VideoFrame.TextureBuffer
public Matrix getTransformMatrix()
VideoFrame.TextureBuffer
getTransformMatrix
在接口中 VideoFrame.TextureBuffer
public int getWidth()
VideoFrame.Buffer
getWidth
在接口中 VideoFrame.Buffer
public int getHeight()
getHeight
在接口中 VideoFrame.Buffer
public VideoFrame.I420Buffer toI420()
VideoFrame.Buffer
toI420
在接口中 VideoFrame.Buffer
public void retain()
RefCounted
retain
在接口中 RefCounted
retain
在接口中 VideoFrame.Buffer
public void release()
RefCounted
release
在接口中 RefCounted
release
在接口中 VideoFrame.Buffer
public int refCount()
public VideoFrame.Buffer cropAndScale(int cropX, int cropY, int cropWidth, int cropHeight, int scaleWidth, int scaleHeight)
VideoFrame.Buffer
cropAndScale
在接口中 VideoFrame.Buffer