WMT_INDEX_TYPE enumeration (wmsdkidl.h)

[The feature associated with this page, Windows Media Format 11 SDK, is a legacy feature. It has been superseded by Source Reader and Sink Writer. Source Reader and Sink Writer have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use Source Reader and Sink Writer instead of Windows Media Format 11 SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The WMT_INDEX_TYPE enumeration type defines the type of object that will be associated with an index. Because the time specified by an index will not usually correspond exactly with an object in the file, the indexer must associate the index with an object in the bit stream close to the specified time.

Syntax

typedef enum tagWMT_INDEX_TYPE {
  WMT_IT_NEAREST_DATA_UNIT = 1,
  WMT_IT_NEAREST_OBJECT,
  WMT_IT_NEAREST_CLEAN_POINT
} WMT_INDEX_TYPE;

Constants

 
WMT_IT_NEAREST_DATA_UNIT
Value: 1
The index will associate indexes with the nearest data unit, or packet, in the Windows Media file.
WMT_IT_NEAREST_OBJECT
The index will associate indexes with the nearest data object, or compressed sample, in the Windows Media file.
WMT_IT_NEAREST_CLEAN_POINT
The index will associate indexes with the nearest cleanpoint, or video key frame, in the Windows Media file. This is the default index type.

Requirements

   
Minimum supported client Windows 2000 Professional [desktop apps only],Windows Media Format 7 SDK, or later versions of the SDK
Minimum supported server Windows 2000 Server [desktop apps only]
Header wmsdkidl.h (include Wmsdk.h)

See also

Enumeration Types