public final class AviHeader extends CustomPackage
Represents the AVIMAINHEADER structure in an AVI video.
Learn more
Constructor and Description |
---|
AviHeader()
Initializes a new instance of the
AviHeader class. |
Modifier and Type | Method and Description |
---|---|
AviHeaderFlags |
getAviHeaderFlags()
Gets a bitwise combination of zero or more of the AVI flags.
|
int |
getHeight()
Gets the height of the AVI file in pixels.
|
int |
getInitialFrames() |
int |
getMaxBytesPerSec() |
int |
getMicroSecPerFrame()
Gets the the number of microseconds between frames.
|
int |
getPaddingGranularity()
Gets the alignment for data, in bytes.
|
int |
getStreams()
Gets the number of streams in the file.
|
int |
getSuggestedBufferSize() |
int |
getTotalFrames()
Gets the the total number of frames of data in the file.
|
int |
getWidth()
Gets the width of the AVI file in pixels.
|
addProperties, contains, findProperties, get_Item, getCount, getKeys, getKnowPropertyDescriptors, getMetadataType, getPropertyDescriptors, iterator, removeProperties, sanitize, setProperties, updateProperties
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public final int getMicroSecPerFrame()
Gets the the number of microseconds between frames. This value indicates the overall timing for the file.
public final int getMaxBytesPerSec()
Gets the approximate maximum data rate of the file.
<br></br>
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.
public final int getPaddingGranularity()
Gets the alignment for data, in bytes. Pad the data to multiples of this value.
public final AviHeaderFlags getAviHeaderFlags()
Gets a bitwise combination of zero or more of the AVI flags.
public final int getTotalFrames()
Gets the the total number of frames of data in the file.
public final int getInitialFrames()
Gets the initial frame for interleaved files.
<br></br>
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.
public final int getStreams()
Gets the number of streams in the file. For example, a file with audio and video has two streams.
public final int getSuggestedBufferSize()
Gets the suggested buffer size for reading the file.
<br></br>
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.
public final int getWidth()
Gets the width of the AVI file in pixels.
public final int getHeight()
Gets the height of the AVI file in pixels.