AVI文件格式-AVIOLDINDEX

来源:互联网 发布:三维彩超数据计算男女 编辑:程序博客网 时间:2024/05/16 19:21

 这一系列的文章都是从MSDN上拷贝出来的,先记到这里,后面会一步步把它翻译出来的。

 

AVIOLDINDEX Structure

This is preliminary documentation and subject to change.

 

The AVIOLDINDEX structure describes an AVI 1.0 index ('idx1' format). New AVI files should use an AVI 2.0 index ('indx' format).

Syntax

typedef struct _avioldindex {   FOURCC  fcc;   DWORD   cb;   struct _avioldindex_entry {      DWORD   dwChunkId;      DWORD   dwFlags;      DWORD   dwOffset;      DWORD   dwSize;  } aIndex[];} AVIOLDINDEX;

Members

fcc

Specifies a FOURCC code. The value must be 'idx1'.

cb

Specifies the size of the structure, not including the initial 8 bytes.

dwChunkId

Specifies a FOURCC that identifies a stream in the AVI file. The FOURCC must have the form 'xxyy' where xx is the stream number and yy is a two-character code that identifies the contents of the stream:

Two-character codeDescriptiondbUncompressed video framedcCompressed video framepcPalette changewbAudio data

dwFlags

Specifies a bitwise combination of zero or more of the following flags:

ValueDescriptionAVIIF_KEYFRAMEThe data chunk is a key frame.AVIIF_LISTThe data chunk is a 'rec ' list.AVIIF_NO_TIMEThe data chunk does not affect the timing of the stream. For example, this flag should be set for palette changes.

dwOffset

Specifies the location of the data chunk in the file. The value should be specified as an offset, in bytes, from the start of the 'movi' list; however, in some AVI files it is given as an offset from the start of the file.

dwSize

Specifies the size of the data chunk, in bytes.

Remarks

This structure consists of the initial RIFF chunk (the fcc and cb members) followed by one index entry for each data chunk in the 'movi' list.

Requirements

Header: Aviriff.h.

原创粉丝点击