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 theShadowMediaCodec
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
All Methods Instance Methods Abstract Methods Default Methods 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
-
-
-
Method Detail
-
process
void process(ByteBuffer in, ByteBuffer out)
Move the bytes on the in buffer to the out buffer
-
onConfigured
default void onConfigured(MediaFormat format, Surface surface, MediaCrypto crypto, int flags)
Called when the codec is configured. @see MediaCodec#configure
-
-