|
Shaka Packager SDK
|
#include <dvb_image.h>
Public Member Functions | |
| DvbImageColorSpace (const DvbImageColorSpace &)=delete | |
| DvbImageColorSpace & | operator= (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. | |
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.
| shaka::media::DvbImageColorSpace::DvbImageColorSpace | ( | ) |
Definition at line 97 of file dvb_image.cc.
| shaka::media::DvbImageColorSpace::~DvbImageColorSpace | ( | ) |
Definition at line 106 of file dvb_image.cc.
| RgbaColor shaka::media::DvbImageColorSpace::GetColor | ( | BitDepth | bit_depth, |
| uint8_t | entry_id | ||
| ) | const |
Definition at line 108 of file dvb_image.cc.
| 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.
| 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.
| 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.
| void shaka::media::DvbImageColorSpace::SetColor | ( | BitDepth | bit_depth, |
| uint8_t | entry_id, | ||
| RgbaColor | color | ||
| ) |
Definition at line 149 of file dvb_image.cc.