|
Public Member Functions |
|
void | Close () |
| | Closes AVI file.
|
| BOOL | OpenExisting (LPCTSTR pFile) |
| | Opens an existing AVI file.
|
| BOOL | AddFrame (CWinDc *pDC) |
| | Adds a frame of video to the AVI file.
|
|
void | Destroy () |
| | Closes AVI and releases all resources.
|
| BOOL | OpenNew (LPCTSTR pFile, LPRECT pRect, DWORD dwFrames, DWORD dwSeconds, DWORD fourCC, LPVOID pCompData, DWORD dwCompDataSize, BOOL bCreateDIBSection) |
| | Creates a new AVI file, over-writes any existing file.
|
|
| CWinAvi () |
| | Constructor.
|
|
virtual | ~CWinAvi () |
| | Destructor.
|
|
BOOL | IsOpen () |
| | Returns non-zero if AVI file is open.
|
| void | GetRect (LPRECT pRect) |
| | Returns the dimensions of a single video frame.
|
|
DWORD | GetFrameRate () |
| | Returns the video frame rate.
|
|
DWORD | GetScale () |
| | Returns the video frame rate scale.
|
|
DWORD | GetFccType () |
| | Returns the Four Character Code of the compressor.
|
|
LPCTSTR | GetFileName () |
| | Returns a pointer to the currently open filename.
|
|
long | GetCurFrame () |
| | Returns the current frame index.
|
|
DWORD | GetError () |
| | Returns the last error code.
|
|
LPCTSTR | GetErrorStr () |
| | Returns a pointer to a string describing the last error.
|
Static Public Member Functions |
| static LPCTSTR | GetErrorStr (DWORD dwError) |
| | Returns an error string for AVI errors.
|
Use this class to read / write video frames from an AVI file.