|
Shaka Packager SDK
|
#include <subtitle_composer.h>
Public Member Functions | |
| DISALLOW_COPY_AND_ASSIGN (SubtitleComposer) | |
| void | SetDisplaySize (uint16_t width, uint16_t height) |
| bool | SetRegionPosition (uint8_t region_id, uint16_t x, uint16_t y) |
| bool | SetRegionInfo (uint8_t region_id, uint8_t color_space_id, uint16_t width, uint16_t height) |
| bool | SetObjectInfo (uint16_t object_id, uint8_t region_id, uint16_t x, uint16_t y, int default_color_code) |
| DvbImageColorSpace * | GetColorSpace (uint8_t color_space_id) |
| DvbImageColorSpace * | GetColorSpaceForObject (uint16_t object_id) |
| DvbImageBuilder * | GetObjectImage (uint16_t object_id) |
| bool | GetSamples (int64_t start, int64_t end, std::vector< std::shared_ptr< TextSample > > *samples) const |
| void | ClearObjects () |
Holds pixel/caption data for a single DVB-sub page. This composes multiple objects and creates TextSample objects from it.
Definition at line 23 of file subtitle_composer.h.
| shaka::media::SubtitleComposer::SubtitleComposer | ( | ) |
Definition at line 99 of file subtitle_composer.cc.
| shaka::media::SubtitleComposer::~SubtitleComposer | ( | ) |
Definition at line 102 of file subtitle_composer.cc.
| void shaka::media::SubtitleComposer::ClearObjects | ( | ) |
Definition at line 250 of file subtitle_composer.cc.
| DvbImageColorSpace * shaka::media::SubtitleComposer::GetColorSpace | ( | uint8_t | color_space_id | ) |
Definition at line 169 of file subtitle_composer.cc.
| DvbImageColorSpace * shaka::media::SubtitleComposer::GetColorSpaceForObject | ( | uint16_t | object_id | ) |
Definition at line 173 of file subtitle_composer.cc.
| DvbImageBuilder * shaka::media::SubtitleComposer::GetObjectImage | ( | uint16_t | object_id | ) |
Definition at line 183 of file subtitle_composer.cc.
| bool shaka::media::SubtitleComposer::GetSamples | ( | int64_t | start, |
| int64_t | end, | ||
| std::vector< std::shared_ptr< TextSample > > * | samples | ||
| ) | const |
Definition at line 207 of file subtitle_composer.cc.
| void shaka::media::SubtitleComposer::SetDisplaySize | ( | uint16_t | width, |
| uint16_t | height | ||
| ) |
Definition at line 104 of file subtitle_composer.cc.
| bool shaka::media::SubtitleComposer::SetObjectInfo | ( | uint16_t | object_id, |
| uint8_t | region_id, | ||
| uint16_t | x, | ||
| uint16_t | y, | ||
| int | default_color_code | ||
| ) |
Definition at line 145 of file subtitle_composer.cc.
| bool shaka::media::SubtitleComposer::SetRegionInfo | ( | uint8_t | region_id, |
| uint8_t | color_space_id, | ||
| uint16_t | width, | ||
| uint16_t | height | ||
| ) |
Definition at line 109 of file subtitle_composer.cc.
| bool shaka::media::SubtitleComposer::SetRegionPosition | ( | uint8_t | region_id, |
| uint16_t | x, | ||
| uint16_t | y | ||
| ) |
Definition at line 130 of file subtitle_composer.cc.