libclosedcaption
1.0.3
ISDB-Tb/SBTVD (Brazilian DTV) closed caption extraction from MPEG-TS
Loading...
Searching...
No Matches
caption-data.h
Go to the documentation of this file.
1
19
#ifndef CAPTION_DATA_H_
20
#define CAPTION_DATA_H_
21
22
#include "
caption-common.h
"
23
#include "
packet-pes.h
"
24
25
#define CAPTION_MANAGEMENT_DGI_A 0x00
26
#define CAPTION_MANAGEMENT_DGI_B 0x20
31
typedef
struct
CaptionData_t
{
32
uint8_t
group_id
;
33
uint8_t
version
;
34
uint8_t
link_number
;
35
uint8_t
last_link_number
;
36
uint16_t
datalen
;
37
const
uint8_t *
data
;
38
uint16_t
crc16
;
40
const
PES_pts_t
*
pts
;
41
}
CaptionData_t
;
42
56
bool
caption_data_check_crc16
(
const
uint8_t *data,
57
const
uint16_t *datalen,
58
const
uint16_t *crc16);
59
70
bool
caption_data_load
(
const
PacketPES_t
*pes,
71
CaptionData_t
*caption);
72
73
#endif
/* CAPTION_DATA_H_ */
caption-common.h
Standard headers and helper macros used all over the library.
caption_data_load
bool caption_data_load(const PacketPES_t *pes, CaptionData_t *caption)
caption_data_check_crc16
bool caption_data_check_crc16(const uint8_t *data, const uint16_t *datalen, const uint16_t *crc16)
packet-pes.h
Reading the header of a caption PES packet.
CaptionData_t
Definition
caption-data.h:31
CaptionData_t::datalen
uint16_t datalen
Definition
caption-data.h:36
CaptionData_t::group_id
uint8_t group_id
Definition
caption-data.h:32
CaptionData_t::version
uint8_t version
Definition
caption-data.h:33
CaptionData_t::crc16
uint16_t crc16
Definition
caption-data.h:38
CaptionData_t::link_number
uint8_t link_number
Definition
caption-data.h:34
CaptionData_t::last_link_number
uint8_t last_link_number
Definition
caption-data.h:35
CaptionData_t::pts
const PES_pts_t * pts
Definition
caption-data.h:40
CaptionData_t::data
const uint8_t * data
Definition
caption-data.h:37
PES_pts_t
Definition
packet-pes.h:39
PacketPES_s
Definition
packet-pes.h:53
include
closedcaption
caption-data.h
Generated by
1.9.8