Поделиться через


AVIOLDINDEX Structure

 
Microsoft DirectShow 9.0

AVIOLDINDEX Structure

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 code Description
db Uncompressed video frame
dc Compressed video frame
pc Palette change
wb Audio data

dwFlags

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

Value Description
AVIIF_KEYFRAME The data chunk is a key frame.
AVIIF_LIST The data chunk is a 'rec ' list.
AVIIF_NO_TIME The 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.

See Also