AviHeader
Inheritance: java.lang.Object, com.groupdocs.metadata.core.MetadataPackage, com.groupdocs.metadata.core.CustomPackage
public final class AviHeader extends CustomPackage
Represents the AVIMAINHEADER structure in an AVI video.
Learn more
Constructors
Constructor | Description |
---|---|
AviHeader() | Initializes a new instance of the AviHeader class. |
Methods
Method | Description |
---|---|
getMicroSecPerFrame() | Gets the the number of microseconds between frames. |
getMaxBytesPerSec() | |
getPaddingGranularity() | Gets the alignment for data, in bytes. |
getAviHeaderFlags() | Gets a bitwise combination of zero or more of the AVI flags. |
getTotalFrames() | Gets the the total number of frames of data in the file. |
getInitialFrames() | |
getStreams() | Gets the number of streams in the file. |
getSuggestedBufferSize() | |
getWidth() | Gets the width of the AVI file in pixels. |
getHeight() | Gets the height of the AVI file in pixels. |
AviHeader()
public AviHeader()
Initializes a new instance of the AviHeader class.
getMicroSecPerFrame()
public final int getMicroSecPerFrame()
Gets the the number of microseconds between frames. This value indicates the overall timing for the file.
Returns: int - The number of microseconds between frames.
getMaxBytesPerSec()
public final int getMaxBytesPerSec()
Gets the approximate maximum data rate of the file.
This value indicates the number of bytes per second the system must handle to present an AVI sequence as specified by the other parameters contained in the main header and stream header chunks.
Returns: int - The the approximate maximum data rate of the file.
getPaddingGranularity()
public final int getPaddingGranularity()
Gets the alignment for data, in bytes. Pad the data to multiples of this value.
Returns: int - The the alignment for data.
getAviHeaderFlags()
public final AviHeaderFlags getAviHeaderFlags()
Gets a bitwise combination of zero or more of the AVI flags.
Returns: AviHeaderFlags - The AVI flags.
getTotalFrames()
public final int getTotalFrames()
Gets the the total number of frames of data in the file.
Returns: int - The total number of frames.
getInitialFrames()
public final int getInitialFrames()
Gets the initial frame for interleaved files.
Noninterleaved files should specify zero. If you are creating interleaved files, specify the number of frames in the file prior to the initial frame of the AVI sequence in this member.
Returns: int - The initial frames.
getStreams()
public final int getStreams()
Gets the number of streams in the file. For example, a file with audio and video has two streams.
Returns: int - The number of streams.
getSuggestedBufferSize()
public final int getSuggestedBufferSize()
Gets the suggested buffer size for reading the file.
Generally, this size should be large enough to contain the largest chunk in the file. If set to zero, or if it is too small, the playback software will have to reallocate memory during playback, which will reduce performance. For an interleaved file, the buffer size should be large enough to read an entire record, and not just a chunk.
Returns: int - The suggested buffer size for reading the file.
getWidth()
public final int getWidth()
Gets the width of the AVI file in pixels.
Returns: int - The width in pixels.
getHeight()
public final int getHeight()
Gets the height of the AVI file in pixels.
Returns: int - The height in pixels.