Class VP8Frame


  • public class VP8Frame
    extends Object
    Author:
    Thomas Kuntz This class represents a vp8 frame read in an IVF file. http://wiki.multimedia.cx/index.php?title=IVF
    • Constructor Summary

      Constructors 
      Constructor Description
      VP8Frame()
      Create an empty VP8Frame that need to be set later.
      VP8Frame​(long timestamp, int frameLength, byte[] frameData)
      Create a VP8Frame filled with the data of the frame, its timestamp and the length of the data (in bytes)
    • Constructor Detail

      • VP8Frame

        public VP8Frame()
        Create an empty VP8Frame that need to be set later.
      • VP8Frame

        public VP8Frame​(long timestamp,
                        int frameLength,
                        byte[] frameData)
        Create a VP8Frame filled with the data of the frame, its timestamp and the length of the data (in bytes)
        Parameters:
        timestamp - the timestamp of the frame.
        frameLength - the length of the frame declared in its header.
        frameData - the data of the frame.
    • Method Detail

      • getTimestamp

        public long getTimestamp()
        Get the timestamp of the frame as declared in its header.
        Returns:
        the timestamp of the frame.
      • getFrameLength

        public int getFrameLength()
        Get the length of the frame (in bytes) as declared in its header.
        Returns:
        the length of the frame.
      • getFrameData

        public byte[] getFrameData()
        Get the data composing the VP8 frame.
        Returns:
        the data of the VP8 frame.
      • set

        public void set​(long timestamp,
                        int frameLength,
                        byte[] frameData)
        Set all the attributes of the VP8Frame.
        Parameters:
        timestamp - the timestamp of the frame.
        frameLength - the length of the frame.
        frameData - the data of the length.