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
31typedef struct CaptionData_t {
32 uint8_t group_id;
33 uint8_t version;
34 uint8_t link_number;
36 uint16_t datalen;
37 const uint8_t *data;
38 uint16_t crc16;
40 const PES_pts_t *pts;
42
56bool caption_data_check_crc16 (const uint8_t *data,
57 const uint16_t *datalen,
58 const uint16_t *crc16);
59
71 CaptionData_t *caption);
72
73#endif /* CAPTION_DATA_H_ */
Standard headers and helper macros used all over the library.
bool caption_data_load(const PacketPES_t *pes, CaptionData_t *caption)
bool caption_data_check_crc16(const uint8_t *data, const uint16_t *datalen, const uint16_t *crc16)
Reading the header of a caption PES packet.
uint16_t datalen
uint8_t group_id
uint8_t version
uint16_t crc16
uint8_t link_number
uint8_t last_link_number
const PES_pts_t * pts
const uint8_t * data