IBasicVideo::GetVideoPaletteEntries method

The GetVideoPaletteEntries method retrieves the palette colors for the video.

Syntax


HRESULT GetVideoPaletteEntries(
  [in]  long StartIndex,
  [in]  long Entries,
  [out] long *pRetrieved,
  [out] long *pPalette
);

Parameters

StartIndex [in]

Start index for the palette.

Entries [in]

Number of palette entries to retrieve.

pRetrieved [out]

Pointer to a variable that receives the number of entries returned in pPallette.

pPalette [out]

Pointer to an array of PALETTEENTRY structures of size Entries. Cast the pointer to a long pointer type. The method fills the array.

Return value

Returns an HRESULT value. Possible values include the following.

Return codeDescription
S_OK

Success.

E_POINTER

NULL pointer argument.

VFW_E_NO_PALETTE_AVAILABLE

No palette is available.

VFW_E_NOT_CONNECTED

The Video Renderer's input pin is not connected.

 

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Control.h (include Dshow.h)

Library

Strmiids.lib

See also

Error and Success Codes
IBasicVideo Interface

 

 

Show: