Class MediaDecoder


@Deprecated public class MediaDecoder extends MediaFormat
Deprecated.
Media Decoder. New code should use MediaInput instead.
Author:
pquiring
  • Constructor Details

    • MediaDecoder

      public MediaDecoder()
      Deprecated.
  • Method Details

    • start

      public boolean start(MediaIO io, int new_width, int new_height, int new_chs, int new_freq, boolean seekable)
      Deprecated.
      Starts decoder.
      Parameters:
      io - = MediaIO interface
      new_width - = change video width during decoding (-1 = no change)
      new_height - = change video height during decoding (-1 = no change)
      new_chs - = change audio channels during decoding (-1 = no change)
      new_freq - = change audio frequency during decoding (-1 = no change)
      seekable - = do you need to seek position during playback?
    • startFile

      public boolean startFile(String file, String format, int new_width, int new_height, int new_chs, int new_freq)
      Deprecated.
      Starts decoder.
      Parameters:
      file - = file to write to.
      format - = format of file (see MediaCoder.AV_FORMAT_...) (NULL = auto detect)
      new_width - = change video width during decoding (-1 = no change)
      new_height - = change video height during decoding (-1 = no change)
      new_chs - = change audio channels during decoding (-1 = no change)
      new_freq - = change audio frequency during decoding (-1 = no change)
    • stop

      public void stop()
      Deprecated.
    • read

      public int read()
      Deprecated.
    • getVideo

      public int[] getVideo()
      Deprecated.
    • getAudio

      public short[] getAudio()
      Deprecated.
    • getWidth

      public int getWidth()
      Deprecated.
    • getHeight

      public int getHeight()
      Deprecated.
    • getFrameRate

      public float getFrameRate()
      Deprecated.
    • getDuration

      public long getDuration()
      Deprecated.
    • getSampleRate

      public int getSampleRate()
      Deprecated.
    • getChannels

      public int getChannels()
      Deprecated.
    • getBitsPerSample

      public int getBitsPerSample()
      Deprecated.
    • seek

      public boolean seek(long seconds)
      Deprecated.
    • getVideoBitRate

      public int getVideoBitRate()
      Deprecated.
      Overrides:
      getVideoBitRate in class MediaFormat
    • getAudioBitRate

      public int getAudioBitRate()
      Deprecated.
      Overrides:
      getAudioBitRate in class MediaFormat
    • isKeyFrame

      public boolean isKeyFrame()
      Deprecated.
    • resize

      public boolean resize(int newWidth, int newHeight)
      Deprecated.