public class ExternalVideoFrame
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 java.nio.ByteBuffer |
buffer
The video buffer.Must be DirectByteBuffer
|
private ColorSpace |
colorSpace |
private int |
cropBottom
[Raw data related parameter] The number of pixels trimmed from the bottom.
|
private int |
cropLeft
[Raw data related parameter] The number of pixels trimmed from the left.
|
private int |
cropRight
[Raw data related parameter] The number of pixels trimmed from the right.
|
private int |
cropTop
[Raw data related parameter] The number of pixels trimmed from the top.
|
private java.lang.Object |
eglContext
[Texture-related parameter]
When using the OpenGL interface (javax.microedition.khronos.egl.*) defined by
Khronos, set EGLContext to this field.
|
private int |
eglType
[Texture related parameter] Texture ID used by the video frame.
|
private int |
fillAlphaBuffer
[For bgra or rgba only] Extract alphaBuffer from bgra or rgba data.
|
private int |
format
The pixel format.
|
private int |
height
Height of the incoming video frame.
|
private float |
matrix
[Texture related parameter] Incoming 4 × 4 transformational matrix.
|
private java.nio.ByteBuffer |
metadataBuffer
[Texture related parameter] The MetaData buffer.
|
private int |
rotation
[Raw data related parameter] The clockwise rotation of the video frame.
|
private int |
stride
Line spacing of the incoming video frame, which must be in pixels instead of
bytes.
|
private int |
textureId
[Texture related parameter] Incoming 4 × 4 transformational matrix.
|
private long |
timestamp
Timestamp of the incoming video frame (ms).
|
private int |
type
The buffer type.
|
| Constructor and Description |
|---|
ExternalVideoFrame() |
ExternalVideoFrame(int type,
int format,
java.nio.ByteBuffer buffer,
int stride,
int height,
int cropLeft,
int cropTop,
int cropRight,
int cropBottom,
int rotation,
long timestamp,
java.lang.Object eglContext,
int eglType,
int textureId,
float matrix,
java.nio.ByteBuffer metadataBuffer,
java.nio.ByteBuffer alphaBuffer,
int fillAlphaBuffer,
int alphaMode,
ColorSpace colorSpace) |
| Modifier and Type | Method and Description |
|---|---|
java.nio.ByteBuffer |
getAlphaBuffer() |
int |
getAlphaMode() |
java.nio.ByteBuffer |
getBuffer() |
ColorSpace |
getColorSpace() |
int |
getCropBottom() |
int |
getCropLeft() |
int |
getCropRight() |
int |
getCropTop() |
java.lang.Object |
getEglContext() |
int |
getEglType() |
int |
getFillAlphaBuffer() |
int |
getFormat() |
int |
getHeight() |
float |
getMatrix() |
java.nio.ByteBuffer |
getMetadataBuffer() |
int |
getRotation() |
int |
getStride() |
int |
getTextureId() |
long |
getTimestamp() |
int |
getType() |
void |
setAlphaBuffer(java.nio.ByteBuffer buffer) |
void |
setAlphaMode(int alphaMode) |
void |
setBuffer(java.nio.ByteBuffer buffer) |
void |
setColorSpace(ColorSpace colorSpace) |
void |
setCropBottom(int cropBottom) |
void |
setCropLeft(int cropLeft) |
void |
setCropRight(int cropRight) |
void |
setCropTop(int cropTop) |
void |
setEglContext(java.lang.Object eglContext) |
void |
setEglType(int eglType) |
void |
setFillAlphaBuffer(int fillAlphaBuffer) |
void |
setFormat(int format) |
void |
setHeight(int height) |
void |
setMatrix(float matrix) |
void |
setMetadataBuffer(java.nio.ByteBuffer metadataBuffer) |
void |
setRotation(int rotation) |
void |
setStride(int stride) |
void |
setTextureId(int textureId) |
void |
setTimestamp(long timestamp) |
void |
setType(int type) |
java.lang.String |
toString() |
private int type
private int format
private java.nio.ByteBuffer buffer
private int stride
private int height
private int cropLeft
private int cropTop
private int cropRight
private int cropBottom
private int rotation
private long timestamp
private java.lang.Object eglContext
private int eglType
private int textureId
private float matrix
private java.nio.ByteBuffer metadataBuffer
private java.nio.ByteBuffer alphaBuffer
private int fillAlphaBuffer
private int alphaMode
private ColorSpace colorSpace
public ExternalVideoFrame()
public ExternalVideoFrame(int type,
int format,
java.nio.ByteBuffer buffer,
int stride,
int height,
int cropLeft,
int cropTop,
int cropRight,
int cropBottom,
int rotation,
long timestamp,
java.lang.Object eglContext,
int eglType,
int textureId,
float matrix,
java.nio.ByteBuffer metadataBuffer,
java.nio.ByteBuffer alphaBuffer,
int fillAlphaBuffer,
int alphaMode,
ColorSpace colorSpace)
public int getType()
public void setType(int type)
public int getFormat()
public void setFormat(int format)
public java.nio.ByteBuffer getBuffer()
public void setBuffer(java.nio.ByteBuffer buffer)
public int getStride()
public void setStride(int stride)
public int getHeight()
public void setHeight(int height)
public int getCropLeft()
public void setCropLeft(int cropLeft)
public int getCropTop()
public void setCropTop(int cropTop)
public int getCropRight()
public void setCropRight(int cropRight)
public int getCropBottom()
public void setCropBottom(int cropBottom)
public int getRotation()
public void setRotation(int rotation)
public long getTimestamp()
public void setTimestamp(long timestamp)
public java.lang.Object getEglContext()
public void setEglContext(java.lang.Object eglContext)
public int getEglType()
public void setEglType(int eglType)
public int getTextureId()
public void setTextureId(int textureId)
public float getMatrix()
public void setMatrix(float matrix)
public java.nio.ByteBuffer getMetadataBuffer()
public void setMetadataBuffer(java.nio.ByteBuffer metadataBuffer)
public java.nio.ByteBuffer getAlphaBuffer()
public void setAlphaBuffer(java.nio.ByteBuffer buffer)
public int getFillAlphaBuffer()
public void setFillAlphaBuffer(int fillAlphaBuffer)
public int getAlphaMode()
public void setAlphaMode(int alphaMode)
public ColorSpace getColorSpace()
public void setColorSpace(ColorSpace colorSpace)
public java.lang.String toString()
toString in class java.lang.Object