VpxOutputBufferpublic class VideoDecoderOutputBuffer extends OutputBuffer
OutputBuffer.Owner<S extends OutputBuffer>| Modifier and Type | Field | Description |
|---|---|---|
int |
colorspace |
|
static int |
COLORSPACE_BT2020 |
|
static int |
COLORSPACE_BT601 |
|
static int |
COLORSPACE_BT709 |
|
static int |
COLORSPACE_UNKNOWN |
|
ByteBuffer |
data |
RGB buffer for RGB mode.
|
int |
decoderPrivate |
Decoder private data.
|
Format |
format |
The format of the input from which this output buffer was decoded.
|
int |
height |
|
int |
mode |
Output mode.
|
ByteBuffer |
supplementalData |
Supplemental data related to the output frame, if
Buffer.hasSupplementalData() returns true. |
int |
width |
|
ByteBuffer[] |
yuvPlanes |
YUV planes for YUV mode.
|
int[] |
yuvStrides |
skippedOutputBufferCount, timeUs| Constructor | Description |
|---|---|
VideoDecoderOutputBuffer(OutputBuffer.Owner<VideoDecoderOutputBuffer> owner) |
Creates VideoDecoderOutputBuffer.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
init(long timeUs,
int mode,
ByteBuffer supplementalData) |
Initializes the buffer.
|
void |
initForPrivateFrame(int width,
int height) |
Configures the buffer for the given frame dimensions when passing actual frame data via
decoderPrivate. |
boolean |
initForYuvFrame(int width,
int height,
int yStride,
int uvStride,
int colorspace) |
Resizes the buffer based on the given stride.
|
void |
release() |
Releases the output buffer for reuse.
|
addFlag, clear, clearFlag, getFlag, hasSupplementalData, isDecodeOnly, isEndOfStream, isKeyFrame, setFlagspublic static final int COLORSPACE_UNKNOWN
public static final int COLORSPACE_BT601
public static final int COLORSPACE_BT709
public static final int COLORSPACE_BT2020
public int decoderPrivate
@VideoOutputMode public int mode
@Nullable public ByteBuffer data
public int width
public int height
@Nullable public Format format
@Nullable public ByteBuffer[] yuvPlanes
@Nullable public int[] yuvStrides
public int colorspace
@Nullable public ByteBuffer supplementalData
Buffer.hasSupplementalData() returns true.
If present, the buffer is populated with supplemental data from position 0 to its limit.public VideoDecoderOutputBuffer(OutputBuffer.Owner<VideoDecoderOutputBuffer> owner)
owner - Buffer owner.public void release()
OutputBufferrelease in class OutputBufferpublic void init(long timeUs,
@VideoOutputMode
int mode,
@Nullable
ByteBuffer supplementalData)
timeUs - The presentation timestamp for the buffer, in microseconds.mode - The output mode. One of C.VIDEO_OUTPUT_MODE_NONE, C.VIDEO_OUTPUT_MODE_YUV and C.VIDEO_OUTPUT_MODE_SURFACE_YUV.supplementalData - Supplemental data associated with the frame, or null if not
present. It is safe to reuse the provided buffer after this method returns.public boolean initForYuvFrame(int width,
int height,
int yStride,
int uvStride,
int colorspace)
public void initForPrivateFrame(int width,
int height)
decoderPrivate. Called via JNI after decoding completes.