rt
解决方案 »
- VC程序添加Windows用户问题
- 请大家提一下关于网站界面的建议
- 有没有现成的开发套件(方法)读出 英文/日文单词 发音的东西?
- sql server 2005的TOP问题
- 回收和释放,有什么区别?
- 新手,请教:mybase、资料收藏大师等单文件的数据保存格式
- 怎么将CString buffer转化成void*型?
- 请问可以根据这段程序回答我几个问题吗,(关于图象的一些程序)谢谢!。
- 在98和2K下串口通讯过程的问题?
- 怎样在对话框中,插入一个工具栏。
- 如何实现菜单图标修改?modifymenu?哪个参数来修改图标?谢谢,解决立刻给分
- 在基于CFormView的多文档界面中如何弹出提示保存文件的消息框?没办法啊,vc太弱了
AVIMAINHEADER Structure
The AVIMAINHEADER structure defines global information in an AVI file.Syntaxtypedef struct _avimainheader {
FOURCC fcc;
DWORD cb;
DWORD dwMicroSecPerFrame;
DWORD dwMaxBytesPerSec;
DWORD dwPaddingGranularity;
DWORD dwFlags;
DWORD dwTotalFrames;
DWORD dwInitialFrames;
DWORD dwStreams;
DWORD dwSuggestedBufferSize;
DWORD dwWidth;
DWORD dwHeight;
DWORD dwReserved[4];
} AVIMAINHEADER;MembersfccSpecifies a FOURCC code. The value must be 'avih'.cbSpecifies the size of the structure, not including the initial 8 bytes.dwMicroSecPerFrame Specifies the number of microseconds between frames. This value indicates the overall timing for the file.dwMaxBytesPerSec Specifies 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.dwPaddingGranularitySpecifies the alignment for data, in bytes. Pad the data to multiples of this value. dwFlags Contains a bitwise combination of zero or more of the following flags: Value Description
AVIF_COPYRIGHTED Indicates the AVI file contains copyrighted data and software. When this flag is used, software should not permit the data to be duplicated.
AVIF_HASINDEX Indicates the AVI file has an index.
AVIF_ISINTERLEAVED Indicates the AVI file is interleaved.
AVIF_MUSTUSEINDEX Indicates that application should use the index, rather than the physical ordering of the chunks in the file, to determine the order of presentation of the data. For example, this flag could be used to create a list of frames for editing.
AVIF_WASCAPTUREFILE Indicates the AVI file is a specially allocated file used for capturing real-time video. Applications should warn the user before writing over a file with this flag set because the user probably defragmented this file.
dwTotalFrames Specifies the total number of frames of data in the file.dwInitialFrames Specifies 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. To give the audio driver enough audio to work with, the audio data in an interleaved file must be skewed from the video data. Typically, the audio data should be moved forward enough frames to allow approximately 0.75 seconds of audio data to be preloaded. The dwInitialRecords member should be set to the number of frames the audio is skewed. Also set the same value for the dwInitialFrames member of the AVISTREAMHEADER structure in the audio stream header dwStreams Specifies the number of streams in the file. For example, a file with audio and video has two streams.dwSuggestedBufferSize Specifies 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.dwWidth Specifies the width of the AVI file in pixels.dwHeight Specifies the height of the AVI file in pixels.dwReserved Reserved. Set this array to zero.RequirementsHeader: Aviriff.h.See Also AVI RIFF File Reference
DirectShow Structures