Class AdjustTimeCodec

java.lang.Object
org.monte.media.av.AbstractCodec
org.monte.media.av.codec.time.AdjustTimeCodec
All Implemented Interfaces:
Codec

public class AdjustTimeCodec extends AbstractCodec
Adjusts the time stamp of the media.
Author:
Werner Randelshofer
  • Constructor Details

    • AdjustTimeCodec

      public AdjustTimeCodec()
  • Method Details

    • getMediaTime

      public Rational getMediaTime()
    • setMediaTime

      public void setMediaTime(Rational mediaTime)
    • setInputFormat

      public Format setInputFormat(Format f)
      Description copied from interface: Codec
      Sets the input format. Returns the format that was actually set. This is the closest format that the Codec supports. Returns null if the specified format is not supported and no reasonable match could be found.
      Specified by:
      setInputFormat in interface Codec
      Overrides:
      setInputFormat in class AbstractCodec
    • process

      public int process(Buffer in, Buffer out)
      Description copied from interface: Codec
      Performs the media processing defined by this codec.

      Copies the data from the input buffer into the output buffer.

      Returns:
      A combination of processing flags.