public class VideoFrame
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.nio.ByteBuffer |
alphaBuffer
Portrait Segmentation meta buffer, dimension of which is the same as
VideoFrame.
|
private int |
alphaMode
The relative position between alphabuffer and the frame.
|
private int |
avsyncType |
private int |
height
Video pixel height.
|
private float[] |
matrix
[Texture related parameter], Incoming 4 × 4 transformational matrix.
|
private java.nio.ByteBuffer |
metadataBuffer
[Texture related parameter] The MetaData buffer.
|
private long |
renderTimeMs
Timestamp to render the video stream.
|
private int |
rotation
rotation of this frame (0, 90, 180, 270)
|
private java.lang.Object |
sharedContext
[Texture related parameter], egl context.
|
private int |
textureId
[Texture related parameter], Texture ID used by the video frame.
|
private int |
type |
private java.nio.ByteBuffer |
uBuffer
U data buffer
|
private int |
uStride
Line span of U buffer in YUV data.
|
private java.nio.ByteBuffer |
vBuffer
V data buffer
|
private int |
vStride
Line span of V buffer in YUV data.
|
private int |
width
Video pixel width.
|
private java.nio.ByteBuffer |
yBuffer
Y data buffer
|
private int |
yStride
Line span of Y buffer in YUV data.
|
| Constructor and Description |
|---|
VideoFrame() |
VideoFrame(int type,
int width,
int height,
int yStride,
int uStride,
int vStride,
java.nio.ByteBuffer yBuffer,
java.nio.ByteBuffer uBuffer,
java.nio.ByteBuffer vBuffer,
int rotation,
long renderTimeMs,
int avsyncType,
java.nio.ByteBuffer metadataBuffer,
java.lang.Object sharedContext,
int textureId,
float[] matrix,
java.nio.ByteBuffer alphaBuffer,
int alphaMode) |
| Modifier and Type | Method and Description |
|---|---|
java.nio.ByteBuffer |
getAlphaBuffer() |
int |
getAlphaMode() |
int |
getAvsyncType() |
int |
getHeight() |
float[] |
getMatrix() |
java.nio.ByteBuffer |
getMetadataBuffer() |
long |
getRenderTimeMs() |
int |
getRotation() |
java.lang.Object |
getSharedContext() |
int |
getTextureId() |
int |
getType() |
java.nio.ByteBuffer |
getUBuffer() |
int |
getUStride() |
java.nio.ByteBuffer |
getVBuffer() |
int |
getVStride() |
int |
getWidth() |
java.nio.ByteBuffer |
getYBuffer() |
int |
getYStride() |
void |
setAlphaBuffer(java.nio.ByteBuffer alphaBuffer) |
void |
setAlphaMode(int alphaMode) |
void |
setAvsyncType(int avsyncType) |
void |
setHeight(int height) |
void |
setMatrix(float[] matrix) |
void |
setMetadataBuffer(java.nio.ByteBuffer metadataBuffer) |
void |
setRenderTimeMs(long renderTimeMs) |
void |
setRotation(int rotation) |
void |
setSharedContext(java.lang.Object sharedContext) |
void |
setTextureId(int textureId) |
void |
setType(int type) |
void |
setUBuffer(java.nio.ByteBuffer uBuffer) |
void |
setUStride(int uStride) |
void |
setVBuffer(java.nio.ByteBuffer vBuffer) |
void |
setVStride(int vStride) |
void |
setWidth(int width) |
void |
setYBuffer(java.nio.ByteBuffer yBuffer) |
void |
setYStride(int yStride) |
java.lang.String |
toString() |
private int type
private int width
private int height
private int yStride
private int uStride
private int vStride
private java.nio.ByteBuffer yBuffer
private java.nio.ByteBuffer uBuffer
private java.nio.ByteBuffer vBuffer
private int rotation
private long renderTimeMs
private int avsyncType
private java.nio.ByteBuffer metadataBuffer
private java.lang.Object sharedContext
private int textureId
private float[] matrix
private java.nio.ByteBuffer alphaBuffer
private int alphaMode
public VideoFrame()
public VideoFrame(int type,
int width,
int height,
int yStride,
int uStride,
int vStride,
java.nio.ByteBuffer yBuffer,
java.nio.ByteBuffer uBuffer,
java.nio.ByteBuffer vBuffer,
int rotation,
long renderTimeMs,
int avsyncType,
java.nio.ByteBuffer metadataBuffer,
java.lang.Object sharedContext,
int textureId,
float[] matrix,
java.nio.ByteBuffer alphaBuffer,
int alphaMode)
public int getType()
public void setType(int type)
public int getWidth()
public void setWidth(int width)
public int getHeight()
public void setHeight(int height)
public int getYStride()
public void setYStride(int yStride)
public int getUStride()
public void setUStride(int uStride)
public int getVStride()
public void setVStride(int vStride)
public java.nio.ByteBuffer getYBuffer()
public void setYBuffer(java.nio.ByteBuffer yBuffer)
public java.nio.ByteBuffer getUBuffer()
public void setUBuffer(java.nio.ByteBuffer uBuffer)
public java.nio.ByteBuffer getVBuffer()
public void setVBuffer(java.nio.ByteBuffer vBuffer)
public int getRotation()
public void setRotation(int rotation)
public long getRenderTimeMs()
public void setRenderTimeMs(long renderTimeMs)
public int getAvsyncType()
public void setAvsyncType(int avsyncType)
public java.nio.ByteBuffer getMetadataBuffer()
public void setMetadataBuffer(java.nio.ByteBuffer metadataBuffer)
public java.lang.Object getSharedContext()
public void setSharedContext(java.lang.Object sharedContext)
public int getTextureId()
public void setTextureId(int textureId)
public float[] getMatrix()
public void setMatrix(float[] matrix)
public java.nio.ByteBuffer getAlphaBuffer()
public void setAlphaBuffer(java.nio.ByteBuffer alphaBuffer)
public int getAlphaMode()
public void setAlphaMode(int alphaMode)
public java.lang.String toString()
toString in class java.lang.Object