public class RAWVideoEncoder extends VideoEncoder
VideoEncoder.EncodedFrame| Constructor and Description |
|---|
RAWVideoEncoder() |
| Modifier and Type | Method and Description |
|---|---|
VideoEncoder.EncodedFrame |
encodeFrame(Picture pic,
ByteBuffer _out)
Encode one video frame.
|
int |
estimateBufferSize(Picture frame)
Estimate the output buffer size that will likely be needed for the
current instance of encoder to encode a given frame.
|
ColorSpace[] |
getSupportedColorSpaces()
Native color spaces of this video encoder, i.e.
|
public VideoEncoder.EncodedFrame encodeFrame(Picture pic, ByteBuffer _out)
VideoEncoderencodeFrame in class VideoEncoderpic - The video frame to be encoded. Must be in one of the encoder's
native color spaces._out - The buffer to store the encoded frame into. Note, only the
storage of this buffer is used, the position and limit are
kept untouched. Instead the returned value contains a
duplicate of this buffer with the position and limit set
correctly to the boundaries of the encoded frame. This buffer
must be large enough to hold the encoded frame. It is
undefined what will happen if the buffer is not large enough.
Most commonly some exception will be thrown.public ColorSpace[] getSupportedColorSpaces()
VideoEncodergetSupportedColorSpaces in class VideoEncoderpublic int estimateBufferSize(Picture frame)
VideoEncoderestimateBufferSize in class VideoEncoderframe - A frame in question.Copyright © 2019. All rights reserved.