AVI2File Class Reference

writing Type 2 (separate audio data) DV AVIs More...

#include <avi.h>

Inheritance diagram for AVI2File:

AVIFile List of all members.

Public Member Functions

 AVI2File ()
virtual ~AVI2File ()
virtual void Init (int format, int sampleFrequency, int indexType)
 Initialize the AVI structure to its initial state, either for PAL or NTSC format.
virtual bool WriteFrame (const Frame &frame)
 Write a DV video frame.
virtual void WriteRIFF (void)
virtual void setDVINFO (DVINFO &)

Private Member Functions

 AVI2File (const AVI2File &)
AVI2Fileoperator= (const AVI2File &)

Private Attributes

BITMAPINFOHEADER bitmapinfo
WAVEFORMATEX waveformatex

Detailed Description

writing Type 2 (separate audio data) DV AVIs

This file type contains both audio and video tracks. It is therefore more compatible to certain Windows programs, which expect any AVI having both audio and video tracks. The video tracks contain the raw DV data (as in type 1) and the extracted audio tracks.

Note that because the DV data contains audio information anyway, this means duplication of data and a slight increase of file size.


Constructor & Destructor Documentation

AVI2File::AVI2File (  ) 

AVI2File::~AVI2File (  )  [virtual]

AVI2File::AVI2File ( const AVI2File  )  [private]


Member Function Documentation

void AVI2File::Init ( int  format,
int  sampleFrequency,
int  indexType 
) [virtual]

Initialize the AVI structure to its initial state, either for PAL or NTSC format.

Initialize the AVIFile attributes: mainHdr, indx, ix00, idx1

Todo:
consolidate AVIFile::Init, AVI1File::Init, AVI2File::Init. They are somewhat redundant.
Parameters:
format pass AVI_PAL or AVI_NTSC
sampleFrequency the sample frequency of the audio content
indexType pass AVI_SMALL_INDEX or AVI_LARGE_INDEX

Reimplemented from AVIFile.

AVI2File& AVI2File::operator= ( const AVI2File  )  [private]

void AVI2File::setDVINFO ( DVINFO &   )  [virtual]

Reimplemented from AVIFile.

bool AVI2File::WriteFrame ( const Frame frame  )  [virtual]

Write a DV video frame.

Parameters:
frame the frame to write

Reimplemented from AVIFile.

void AVI2File::WriteRIFF ( void   )  [virtual]

Reimplemented from AVIFile.


Member Data Documentation

BITMAPINFOHEADER AVI2File::bitmapinfo [private]

WAVEFORMATEX AVI2File::waveformatex [private]


The documentation for this class was generated from the following files:
Generated on Tue Jan 22 17:07:31 2008 for MUAN by  doxygen 1.4.7