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 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