Class IVFHeader
- java.lang.Object
-
- org.jitsi.impl.neomedia.jmfext.media.protocol.ivffile.IVFHeader
-
public class IVFHeader extends Object
This class represent the 32 bytes header of an IVF file. http://wiki.multimedia.cx/index.php?title=IVF- Author:
- Thomas Kuntz
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCodec()Get the codec of the ivf fileDimensiongetDimension()Get the dimension (height x width) of the video of the ivf file.intgetFramerate()Get the framerate declared by the header of the ivf fileshortgetHeaderLength()Get the header length of the ivf fileshortgetHeight()Get the height of the video of the ivf fileintgetNumberOfFramesInFile()Get the 'number of frames' field from the IVF file header.StringgetSignature()Get the signature of the ivf fileintgetTimeScale()Get the timescale declared by the header of the ivf fileshortgetVersion()Get the version of the ivf fileshortgetWidth()Get the width of the video of the ivf file
-
-
-
Constructor Detail
-
IVFHeader
public IVFHeader(String filePath)
Initialize a new instance of a IVFHeader from an ivf file, by reading and parsing the header of the ivf file.- Parameters:
filePath- the location of the ivf file from which you want to parse the header.
-
-
Method Detail
-
getSignature
public String getSignature()
Get the signature of the ivf file- Returns:
- the signature of the ivf file
-
getVersion
public short getVersion()
Get the version of the ivf file- Returns:
- the version of the ivf file
-
getHeaderLength
public short getHeaderLength()
Get the header length of the ivf file- Returns:
- the header length of the ivf file
-
getCodec
public String getCodec()
Get the codec of the ivf file- Returns:
- the codec of the ivf file
-
getWidth
public short getWidth()
Get the width of the video of the ivf file- Returns:
- the width of the video of the ivf file
-
getHeight
public short getHeight()
Get the height of the video of the ivf file- Returns:
- the height of the video of the ivf file
-
getDimension
public Dimension getDimension()
Get the dimension (height x width) of the video of the ivf file.- Returns:
- the dimension (height x width) of the video of the ivf file.
-
getFramerate
public int getFramerate()
Get the framerate declared by the header of the ivf file- Returns:
- the framerate declared by the header of the ivf file
-
getTimeScale
public int getTimeScale()
Get the timescale declared by the header of the ivf file- Returns:
- the timescale declared by the header of the video of the ivf file
-
getNumberOfFramesInFile
public int getNumberOfFramesInFile()
Get the 'number of frames' field from the IVF file header.- Returns:
- the 'number of frames' field from the IVF file header.
-
-