Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

MFCreateVideoMediaTypeFromBitMapInfoHeaderEx function

Creates a video media type from a BITMAPINFOHEADER structure.

Syntax


HRESULT MFCreateVideoMediaTypeFromBitMapInfoHeaderEx(
  _In_   const BITMAPINFOHEADER *pbmihBitMapInfoHeader,
  _In_   UINT32 cbBitMapInfoHeader,
  DWORD dwPixelAspectRatioX,
  DWORD dwPixelAspectRatioY,
  MFVideoInterlaceMode InterlaceMode,
  QWORD VideoFlags,
  DWORD dwFramesPerSecondNumerator,
  DWORD dwFramesPerSecondDenominator,
  DWORD dwMaxBitRate,
  _Out_  IMFVideoMediaType **ppIVideoMediaType
);

Parameters

pbmihBitMapInfoHeader [in]

A pointer to the BITMAPINFOHEADER structure to convert.

cbBitMapInfoHeader [in]

The size of the BITMAPINFOHEADER structure in bytes, including the size of any palette entries or color masks that follow the structure.

dwPixelAspectRatioX

The X dimension of the pixel aspect ratio.

dwPixelAspectRatioY

The Y dimension of the pixel aspect ratio.

InterlaceMode

A member of the MFVideoInterlaceMode enumeration, specifying how the video is interlaced.

VideoFlags

A bitwise OR of flags from the MFVideoFlags enumeration.

dwFramesPerSecondNumerator

The numerator of the frame rate in frames per second.

dwFramesPerSecondDenominator

The denominator of the frame rate in frames per second

dwMaxBitRate

The approximate data rate of the video stream, in bits per second. If the rate is unknown, set this parameter to zero.

ppIVideoMediaType [out]

Receives a pointer to the IMFVideoMediaType interface. The caller must release the interface.

Return value

If the function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Mfapi.h

Library

Evr.lib

DLL

Mfplat.dll

See also

Media Foundation Functions

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.