vdr 2.6.1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
cDvbSpuPalette Class Reference

#include <dvbspu.h>

Public Member Functions

void setPalette (const uint32_t *pal)
 
uint32_t getColor (uint8_t idx, uint8_t trans) const
 
void setPalette (const uint32_t *pal)
 
uint32_t getColor (uint8_t idx, uint8_t trans) const
 

Private Member Functions

uint32_t yuv2rgb (uint32_t yuv_color)
 
uint32_t yuv2rgb (uint32_t yuv_color)
 

Private Attributes

uint32_t palette [16]
 

Detailed Description

Definition at line 55 of file dvbspu.h.

Member Function Documentation

◆ getColor() [1/2]

uint32_t cDvbSpuPalette::getColor ( uint8_t  idx,
uint8_t  trans 
) const
inline

Definition at line 203 of file dvbspu.h.

References palette.

Referenced by cDvbSpuBitmap::getBitmap().

◆ getColor() [2/2]

uint32_t cDvbSpuPalette::getColor ( uint8_t  idx,
uint8_t  trans 
) const

◆ setPalette() [1/2]

void cDvbSpuPalette::setPalette ( const uint32_t *  pal)

Definition at line 46 of file dvbspu.c.

References palette, and yuv2rgb().

Referenced by cDvbSpuDecoder::setPalette().

◆ setPalette() [2/2]

void cDvbSpuPalette::setPalette ( const uint32_t *  pal)

◆ yuv2rgb() [1/2]

uint32_t cDvbSpuPalette::yuv2rgb ( uint32_t  yuv_color)
inlineprivate

Definition at line 162 of file dvbspu.h.

Referenced by setPalette().

◆ yuv2rgb() [2/2]

uint32_t cDvbSpuPalette::yuv2rgb ( uint32_t  yuv_color)
private

Member Data Documentation

◆ palette

uint32_t cDvbSpuPalette::palette
private

Definition at line 57 of file dvbspu.h.

Referenced by getColor(), and setPalette().


The documentation for this class was generated from the following files: