AVI文件格式-AVIOLDINDEX

 这一系列的文章都是从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 codeDescription
dbUncompressed video frame
dcCompressed video frame
pcPalette change
wbAudio data

dwFlags

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

ValueDescription
AVIIF_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.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值