Expand Minimize

ID3D11VideoContext::VideoProcessorGetStreamPalette method

Gets the color-palette entries for an input stream on the video processor.

Syntax


void VideoProcessorGetStreamPalette(
  [in]   ID3D11VideoProcessor *pVideoProcessor,
  [in]   UINT StreamIndex,
  [in]   UINT Count,
  [out]  UINT *pEntries
);

Parameters

pVideoProcessor [in]

A pointer to the ID3D11VideoProcessor interface. To get this pointer, call ID3D11VideoDevice::CreateVideoProcessor.

StreamIndex [in]

The zero-based index of the input stream. To get the maximum number of streams, call ID3D11VideoProcessorEnumerator::GetVideoProcessorCaps and check the MaxStreamStates structure member.

Count [in]

The number of entries in the pEntries array.

pEntries [out]

A pointer to a UINT array allocated by the caller. The method fills the array with the palette entries. For RGB streams, the palette entries use the DXGI_FORMAT_B8G8R8A8 representation. For YCbCr streams, the palette entries use the DXGI_FORMAT_AYUV representation.

Return value

This method does not return a value.

Remarks

This method applies only to input streams that have a palettized color format. Palettized formats with 4 bits per pixel (bpp) use 16 palette entries. Formats with 8 bpp use 256 entries.

Windows Phone 8: This API is supported.

Requirements

Minimum supported client

Windows 8 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]

Header

D3d11.h

See also

ID3D11VideoContext

 

 

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.