Shaka Packager SDK
Loading...
Searching...
No Matches
Public Member Functions | List of all members
shaka::media::DvbImageColorSpace Class Reference

#include <dvb_image.h>

Public Member Functions

 DvbImageColorSpace (const DvbImageColorSpace &)=delete
 
DvbImageColorSpaceoperator= (const DvbImageColorSpace &)=delete
 
RgbaColor GetColor (BitDepth bit_depth, uint8_t entry_id) const
 
void SetColor (BitDepth bit_depth, uint8_t entry_id, RgbaColor color)
 
void Set2To4BitDepthMap (const uint8_t *map)
 Must pass a 4-element array; elements are copied over.
 
void Set2To8BitDepthMap (const uint8_t *map)
 Must pass a 4-element array; elements are copied over.
 
void Set4To8BitDepthMap (const uint8_t *map)
 Must pass a 16-element array; elements are copied over.
 

Detailed Description

Defines a color-space for DVB-sub images. This maps to a single CLUT in the spec. This holds a map of the byte codes to the respective RGB colors. This also handles getting the default colors when none are provided and converting between bit-depths if applicable.

When handling bit-depths, this will attempt to use the bit-depth provided before converting upward then downward. Each color is only set for that specific bit-depth; meaning different bit-depths can have different colors mapped to the same byte-code.

Definition at line 47 of file dvb_image.h.

Constructor & Destructor Documentation

◆ DvbImageColorSpace()

shaka::media::DvbImageColorSpace::DvbImageColorSpace ( )

Definition at line 97 of file dvb_image.cc.

◆ ~DvbImageColorSpace()

shaka::media::DvbImageColorSpace::~DvbImageColorSpace ( )

Definition at line 106 of file dvb_image.cc.

Member Function Documentation

◆ GetColor()

RgbaColor shaka::media::DvbImageColorSpace::GetColor ( BitDepth  bit_depth,
uint8_t  entry_id 
) const

Definition at line 108 of file dvb_image.cc.

◆ Set2To4BitDepthMap()

void shaka::media::DvbImageColorSpace::Set2To4BitDepthMap ( const uint8_t *  map)

Must pass a 4-element array; elements are copied over.

Definition at line 168 of file dvb_image.cc.

◆ Set2To8BitDepthMap()

void shaka::media::DvbImageColorSpace::Set2To8BitDepthMap ( const uint8_t *  map)

Must pass a 4-element array; elements are copied over.

Definition at line 172 of file dvb_image.cc.

◆ Set4To8BitDepthMap()

void shaka::media::DvbImageColorSpace::Set4To8BitDepthMap ( const uint8_t *  map)

Must pass a 16-element array; elements are copied over.

Definition at line 176 of file dvb_image.cc.

◆ SetColor()

void shaka::media::DvbImageColorSpace::SetColor ( BitDepth  bit_depth,
uint8_t  entry_id,
RgbaColor  color 
)

Definition at line 149 of file dvb_image.cc.


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