public class VP8Encoder extends VideoEncoder
VideoEncoder.EncodedFrame| Constructor and Description |
|---|
VP8Encoder(RateControl rc) |
| Modifier and Type | Method and Description |
|---|---|
static VP8Encoder |
createVP8Encoder(int qp) |
VideoEncoder.EncodedFrame |
encodeFrame(Picture pic,
ByteBuffer _buf)
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 VP8Encoder(RateControl rc)
public static VP8Encoder createVP8Encoder(int qp)
public VideoEncoder.EncodedFrame encodeFrame(Picture pic, ByteBuffer _buf)
VideoEncoderencodeFrame in class VideoEncoderpic - The video frame to be encoded. Must be in one of the encoder's
native color spaces._buf - 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.