ClintHeyer.Media
Structure AviFile.AVIHeader

Contains global information for the entire AVI file. It is contained within an 'avih' chunk within the LIST 'hdrl' chunk at the beginning of an AVI RIFF file.

Field Summary
int Flags
int Height
         Height
int InitialFrames
         Used for interleaved files. 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 field.
int Length
         Starting time of the AVI file and the length of the file. The units are defined by dwRate and dwScale. The dwStart field is usually set to zero.
int MaxBytesPerSec
         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.
int MicroSecPerFrame
         Period between video frames. This value indicates the overall timing for the file.
int Rate
         General time scale that the file will use. In addition to this time scale, each stream can have its own time scale. The time scale in samples per second is determined by dividing dwRate by dwScale.
int Reserved1
int Scale
         General time scale that the file will use. In addition to this time scale, each stream can have its own time scale. The time scale in samples per second is determined by dividing dwRate by dwScale.
int Start
         Starting time of the AVI file and the length of the file. The units are defined by dwRate and dwScale. The dwStart field is usually set to zero.
int Streams
         Number of streams in the file. For example, a file with audio and video has 2 streams.
int SuggestedBufferSize
         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.
int TotalDataFrames
         Total number of frames of data in file.
int Width
         Width

Constructor Summary
AviFile.AVIHeader(System.IO.Stream stream)

Method Summary
string ToString()

Methods inherited from class System.ValueType
Equals, GetHashCode

Methods inherited from class System.Object
Finalize, GetType, MemberwiseClone


Field Detail

Flags

public int Flags


Height

public int Height

Height


InitialFrames

public int InitialFrames

Used for interleaved files. 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 field.


Length

public int Length

Starting time of the AVI file and the length of the file. The units are defined by dwRate and dwScale. The dwStart field is usually set to zero.


MaxBytesPerSec

public int MaxBytesPerSec

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.


MicroSecPerFrame

public int MicroSecPerFrame

Period between video frames. This value indicates the overall timing for the file.


Rate

public int Rate

General time scale that the file will use. In addition to this time scale, each stream can have its own time scale. The time scale in samples per second is determined by dividing dwRate by dwScale.


Reserved1

public int Reserved1


Scale

public int Scale

General time scale that the file will use. In addition to this time scale, each stream can have its own time scale. The time scale in samples per second is determined by dividing dwRate by dwScale.


Start

public int Start

Starting time of the AVI file and the length of the file. The units are defined by dwRate and dwScale. The dwStart field is usually set to zero.


Streams

public int Streams

Number of streams in the file. For example, a file with audio and video has 2 streams.


SuggestedBufferSize

public int SuggestedBufferSize

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.


TotalDataFrames

public int TotalDataFrames

Total number of frames of data in file.


Width

public int Width

Width

Constructor Detail

AviFile.AVIHeader

public AviFile.AVIHeader(System.IO.Stream stream)

Method Detail

ToString

public string ToString()