Package org.robolectric.shadows
Interface ShadowMediaCodec.CodecConfig.Codec
- Enclosing class:
- ShadowMediaCodec.CodecConfig
public static interface ShadowMediaCodec.CodecConfig.Codec
A codec is implemented as part of the configuration to allow the
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..-
Method Summary
Modifier and TypeMethodDescriptiondefault 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
-
Method Details
-
process
Move the bytes on the in buffer to the out buffer -
onConfigured
Called when the codec is configured. @see MediaCodec#configure
-