AVISTDINDEX structure (aviriff.h)

[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

Contains an AVI 2.0 standard index.

Syntax

typedef struct _avistdindex {
  FOURCC            fcc;
  UINT              cb;
  WORD              wLongsPerEntry;
  BYTE              bIndexSubType;
  BYTE              bIndexType;
  DWORD             nEntriesInUse;
  DWORD             dwChunkId;
  DWORDLONG         qwBaseOffset;
  DWORD             dwReserved_3;
  AVISTDINDEX_ENTRY aIndex[NUMINDEX(2)];
} AVISTDINDEX;

Members

fcc

A FOURCC code. The value is either 'indx' or 'nnix', where nn is the stream number.

cb

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

wLongsPerEntry

The size of each index entry, in 4-byte units. The value must be 2.

bIndexSubType

The index subtype. The value must be zero.

bIndexType

The index type. The value must be AVI_INDEX_OF_CHUNKS.

nEntriesInUse

The number of valid entries in the adwIndex array.

dwChunkId

A FOURCC that identifies the object that is indexed. This member has the same meaning as the dwChunkId member of the AVIOLDINDEX structure.

qwBaseOffset

The base offset for the index entries. For each index entry, qwBaseOffset + AVISTDINDEX_ENTRY.dwOffset gives the offset from the start of the file to the data.

dwReserved_3

Reserved. Set to zero.

aIndex[NUMINDEX(2)]

An array of AVISTDINDEX_ENTRY structures. The number of elements in the array is calculated from the value of cb.

Remarks

For more information, see the OpenDML AVI File Format Extensions, published by the OpenDML AVI M-JPEG File Format Subcommittee. (This resource may not be available in some languages

and countries.)

Requirements

Requirement Value
Header aviriff.h

See also

AVI RIFF File Reference

AVIMETAINDEX

DirectShow Structures