Class VPXDecoder

  • All Implemented Interfaces:
    javax.media.Codec, javax.media.Controls, javax.media.PlugIn

    public class VPXDecoder
    extends AbstractCodec2
    Implements a VP8 decoder.
    Author:
    Boris Grozev
    • Constructor Detail

      • VPXDecoder

        public VPXDecoder()
        Initializes a new VPXDecoder instance.
    • Method Detail

      • doOpen

        protected void doOpen()
                       throws javax.media.ResourceUnavailableException
        Opens this Codec and acquires the resources that it needs to operate. A call to PlugIn.open() on this instance will result in a call to doOpen only if AbstractCodec.opened is false. All required input and/or output formats are assumed to have been set on this Codec before doOpen is called.
        Specified by:
        doOpen in class AbstractCodec2
        Throws:
        javax.media.ResourceUnavailableException - if initialization failed
      • doProcess

        protected int doProcess​(javax.media.Buffer inputBuffer,
                                javax.media.Buffer outputBuffer)
        Decodes a VP8 frame contained in inputBuffer into outputBuffer (in AVFrameFormat)
        Specified by:
        doProcess in class AbstractCodec2
        Parameters:
        inputBuffer - input Buffer
        outputBuffer - output Buffer
        Returns:
        BUFFER_PROCESSED_OK if inBuffer has been successfully processed
      • getMatchingOutputFormats

        protected javax.media.Format[] getMatchingOutputFormats​(javax.media.Format inputFormat)
        Get matching outputs for a specified input Format.
        Overrides:
        getMatchingOutputFormats in class AbstractCodec2
        Parameters:
        inputFormat - input Format
        Returns:
        array of matching outputs or null if there are no matching outputs.
      • setInputFormat

        public javax.media.Format setInputFormat​(javax.media.Format format)
        Sets the Format of the media data to be input for processing in this Codec.
        Specified by:
        setInputFormat in interface javax.media.Codec
        Overrides:
        setInputFormat in class AbstractCodec2
        Parameters:
        format - the Format of the media data to be input for processing in this Codec
        Returns:
        the Format of the media data to be input for processing in this Codec if format is compatible with this Codec; otherwise, null