public static interface ShadowMediaCodec.CodecConfig.Codec
ShadowMediaCodec
to
simulate actual encoding/decoding. It's not expected for implementations to perform real
encoding/decoding, but to produce a output similar in size ratio to the expected codec..Modifier and Type | Method | Description |
---|---|---|
default void |
onConfigured(MediaFormat format,
Surface surface,
MediaCrypto crypto,
int flags) |
Called when the codec is configured.
|
void |
process(ByteBuffer in,
ByteBuffer out) |
Move the bytes on the in buffer to the out buffer
|
void process(ByteBuffer in, ByteBuffer out)
default void onConfigured(MediaFormat format, Surface surface, MediaCrypto crypto, int flags)