ID3D11VideoContext::VideoProcessorGetStreamPalette method

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


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


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.


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.


Minimum supported client

Windows 8 [desktop apps | UWP apps]

Minimum supported server

Windows Server 2012 [desktop apps | UWP apps]

Minimum supported phone

Windows Phone 8



See also