libclosedcaption 1.0.3
ISDB-Tb/SBTVD (Brazilian DTV) closed caption extraction from MPEG-TS
Loading...
Searching...
No Matches
caption-management.h
Go to the documentation of this file.
1
21#ifndef CAPTION_MANAGEMENT_H_
22#define CAPTION_MANAGEMENT_H_
23
24#include "packet-pes.h"
25#include "caption-data.h"
26#include "caption-common.h"
27
32#define MANAGEMENT_TMD_FREE 0x00
33#define MANAGEMENT_TMD_REALTIME 0x01
34#define MANAGEMENT_TMD_OFFSET 0x02
35#define MANAGEMENT_TMD_RESERVED 0x03
42#define MANAGEMENT_TCS_8BIT 0x00
43#define MANAGEMENT_TCS_UCS 0x01
50#define MANAGEMENT_ROLL_NONE 0x00
51#define MANAGEMENT_ROLL_UP 0x01
58#define _CAPTION_HANDLER_STATEMENT_BODY 0x20
59#define _CAPTION_HANDLER_GEOMETRIC 0x28
60#define _CAPTION_HANDLER_SYNTHESIZED_SOUND 0x2c
61#define _CAPTION_HANDLER_1BYTE_DRCS 0x30
62#define _CAPTION_HANDLER_2BYTE_DRCS 0x31
63#define _CAPTION_HANDLER_COLOR_MAP 0x34
64#define _CAPTION_HANDLER_BITMAP 0x35
84
89typedef struct CaptionManagement_t {
90 uint8_t TMD;
91 uint64_t TMD_otm;
92 uint8_t reserved;
96 uint8_t num_lang;
97 uint8_t lang_tag;
98 uint8_t DMF;
99 uint8_t DC;
101 uint8_t format;
102 uint8_t TCS;
103 uint8_t rollup_mode;
111 struct statement {
112 uint8_t unit_sep;
113 uint8_t unit_param;
114 uint32_t unit_size;
115 const uint8_t *unit_data;
116 } statement;
118 const PES_pts_t *pts;
120
135 CaptionManagement_t *management);
136
149 unsigned index,
150 CaptionManagement_t *mgmt);
151
161
162#endif /* CAPTION_MANAGEMENT_H_ */
Standard headers and helper macros used all over the library.
Reading the caption data_group (ARIB STD-B24, Volume 3, 9.2).
CaptionManagementType_t caption_management_get_type(const CaptionManagement_t *management)
CaptionManagementType_t
@ CAPTION_HANDLER_TYPE_BITMAP
@ CAPTION_HANDLER_TYPE_1BYTE_DRCS
@ CAPTION_HANDLER_TYPE_2BYTE_DRCS
@ CAPTION_HANDLER_TYPE_STATEMENT_BODY
@ CAPTION_HANDLER_TYPE_MAX
@ CAPTION_HANDLER_TYPE_MANAGEMENT
@ CAPTION_HANDLER_TYPE_UNKNOWN
@ CAPTION_HANDLER_TYPE_SYNTHESIZED_SOUND
@ CAPTION_HANDLER_TYPE_GEOMETRIC
@ CAPTION_HANDLER_TYPE_COLOR_MAP
bool caption_management_load_unit(const CaptionData_t *caption, unsigned index, CaptionManagement_t *mgmt)
bool caption_management_load(const CaptionData_t *caption, CaptionManagement_t *management)
Reading the header of a caption PES packet.
const PES_pts_t * pts