Microsoft DirectX 9.0

ConvertVideoInfoToVideoInfo2

The ConvertVideoInfoToVideoInfo2 function converts a media type that uses VIDEOINFOHEADER to one that uses VIDEOINFOHEADER2.

Syntax

STDAPI ConvertVideoInfoToVideoInfo2(
    AM_MEDIA_TYPE *pmt
);

Parameters

pmt

Pointer to the AM_MEDIA_TYPE structure to convert. The structure must have format type FORMAT_VideoInfo.

Return Value

Returns S_OK or E_OUTOFMEMORY.

Remarks

This function allocates a new VIDEOINFOHEADER2 structure, copies the members of the VIDEOINFOHEADER structure into it, and replaces the old structure with the new structure in the format block of the media type.

Requirements

Header: Declared in Winutil.h; include Streams.h.

Library: Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).

See Also