The GetUncompFormatsSupported method gets a list of uncompressed pixel formats that can be rendered using a specified DirectX Video Acceleration (DXVA) profile.
HRESULT GetUncompFormatsSupported( const GUID *pGuid, LPDWORD pdwNumFormatsSupported, LPDDPIXELFORMAT pFormatsSupported );
Pointer to a GUID that specifies the DXVA profile. To get a list of supported profiles, call IAMVideoAccelerator::GetVideoAcceleratorGUIDs.
On input, specifies the number of elements in the pFormatsSupported array.
If pFormatsSupported is NULL, the value of
*pdwNumFormatsSupported must be zero.
On output, if pFormatsSupported is NULL, pdwNumFormatsSupported receives the number of supported pixel formats. Otherwise, pdwNumFormatsSupported receives the actual number of pixel formats copied to the pFormatsSupported array.
Address of an array of DDPIXELFORMAT structures, or NULL. If the value is non-NULL, the array receives a list of pixel formats.
This method can return one of these values.
||The method returned fewer formats than the total number that are supported, because the array was too small. Although this value is a failure code, you can ignore the error if you intentionally allocated a smaller array.|
||The method succeeded.|
Call this method twice. On the first call, set pFormatsSupported to NULL. The pdwNumFormatsSupported parameter receives the number of formats. Allocate an array of DDPIXELFORMAT structures with the required size, and call the method again. This time, set pFormatsSupported to the address of the array. The method fills the array with the list of pixel formats.
The driver should return the formats in decreasing order of preference, with the most preferred format listed first.
|Minimum supported client||Windows 2000 Professional [desktop apps only]|
|Minimum supported server||Windows 2000 Server [desktop apps only]|