Export (0) Print
Expand All

ConvertVideoInfoToVideoInfo2 function

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

Syntax


HRESULT 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

Winutil.h (include Streams.h)

Library

Strmbase.lib (retail builds);
Strmbasd.lib (debug builds)

See also

Video and Image Functions

 

 

Community Additions

ADD
Show:
© 2014 Microsoft