Interface Codec.DecoderFactory

  • Enclosing interface:
    Codec

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

      • createForAudioDecoding

        Codec createForAudioDecoding​(Format format)
                              throws ExportException
        Returns a Codec for audio decoding.
        Parameters:
        format - The Format (of the input data) used to determine the underlying decoder and its configuration values.
        Returns:
        A Codec for audio decoding.
        Throws:
        ExportException - If no suitable Codec can be created.
      • createForVideoDecoding

        Codec createForVideoDecoding​(Format format,
                                     Surface outputSurface,
                                     boolean requestSdrToneMapping)
                              throws ExportException
        Returns a Codec for video decoding.
        Parameters:
        format - The Format (of the input data) used to determine the underlying decoder and its configuration values.
        outputSurface - The Surface to which the decoder output is rendered.
        requestSdrToneMapping - Whether to request tone-mapping to SDR.
        Returns:
        A Codec for video decoding.
        Throws:
        ExportException - If no suitable Codec can be created.