NVIDIA DRIVE 5.0 Linux SDK API Reference

5.0.5.0 Release

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages

Detailed Description

Defines and manages objects that provide device-specific RGBA color palettes.

Typedefs

typedef void NvMediaPalette
 A handle representing a palette object. More...
 

Functions

NvMediaPaletteNvMediaPaletteCreate (NvMediaDevice *device)
 Create a 256 element RGBA palette suitable for use with NvMediaVideoMixer. More...
 
void NvMediaPaletteDestroy (NvMediaPalette *palette)
 Destroys a palette created by NvMediaPaletteCreate. More...
 
void NvMediaPaletteLoad (NvMediaDevice *device, NvMediaPalette *palette, uint32_t *rgba)
 Upload the palette data. More...
 

Typedef Documentation

typedef void NvMediaPalette

A handle representing a palette object.

Definition at line 315 of file nvmedia_core.h.

Function Documentation

NvMediaPalette* NvMediaPaletteCreate ( NvMediaDevice device)

Create a 256 element RGBA palette suitable for use with NvMediaVideoMixer.

Parameters
[in]deviceThe device that will contain the palette.
Returns
NvMediaPalette The new palette's handle or NULL if unsuccessful.
void NvMediaPaletteDestroy ( NvMediaPalette palette)

Destroys a palette created by NvMediaPaletteCreate.

Parameters
[in]paletteA pointer to the palette to be destroyed.
void NvMediaPaletteLoad ( NvMediaDevice device,
NvMediaPalette palette,
uint32_t *  rgba 
)

Upload the palette data.

Parameters
[in]deviceRequired for the HW channel used for the upload.
[in]paletteThe NvMediaPalette being updated.
[in]rgbaA 256-element array of uint32_t RGBA values. Each 32-bit value has R, G, B, and A bytes packed from LSB to MSB.