Interface Codec.DecoderFactory

  • Enclosing class:
    Codec

    public static interface Codec.DecoderFactory
    A factory for decoder instances.
    • Method Detail

      • createForVideoDecoding

        Codec createForVideoDecoding​(Format format,
                                     Surface outputSurface)
                              throws TransformationException
        Returns a Codec for video decoding.
        Parameters:
        format - The Format (of the input data) used to determine the underlying MediaCodec and its configuration values.
        outputSurface - The Surface to which the decoder output is rendered.
        Returns:
        A configured and started decoder wrapper.
        Throws:
        TransformationException - If no suitable codec can be created.