Expand Minimize

MFConvertColorInfoToDXVA function

[This API is not supported and may be altered or unavailable in the future. Applications should avoid using the MFVIDEOFORMAT structure, and use media type attributes instead. For more information, see Extended Color Information.]

Converts the extended color information from an MFVIDEOFORMAT to the equivalent DirectX Video Acceleration (DXVA) color information.

Syntax


HRESULT MFConvertColorInfoToDXVA(
  _Out_  DWORD *pdwToDXVA,
  _In_   const MFVIDEOFORMAT *pFromFormat
);

Parameters

pdwToDXVA [out]

Receives the DXVA extended color information. The bitfields in the DWORD are defined in the DXVA2_ExtendedFormat structure.

pFromFormat [in]

Pointer to an MFVIDEOFORMAT structure that describes the video format.

Return value

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

Remarks

Note  Prior to Windows 7, this function was exported from evr.dll. Starting in Windows 7, this function is exported from mfplat.dll, and evr.dll exports a stub function that calls into mfplat.dll. For more information, see Library Changes in Windows 7.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Mfapi.h

Library

Evr.lib

DLL

Mfplat.dll

See also

Extended Color Information
Media Foundation Functions
Media Types

 

 

Community Additions

ADD
Show:
© 2014 Microsoft