Shaka Packager SDK
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.


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