libclosedcaption 1.0.3
ISDB-Tb/SBTVD (Brazilian DTV) closed caption extraction from MPEG-TS
Loading...
Searching...
No Matches
ts-reader.h
Go to the documentation of this file.
1
33#ifndef TS_READER_H_
34#define TS_READER_H_
35
36#include "caption-common.h"
37
39#define TS_PACKET_SIZE 188
40
42#define TS_SYNC_BYTE 0x47
43
53
57typedef struct TsReader_s TsReader_t;
58
72bool ts_detect_packet_format (const uint8_t *buf,
73 size_t len,
74 size_t *packet_size,
75 size_t *offset);
76
84TsReader_t *ts_reader_open (const char *filename,
85 TsReaderError_t *error);
86
95const uint8_t *ts_reader_next (TsReader_t *reader);
96
104
111
112#endif /* TS_READER_H_ */
Standard headers and helper macros used all over the library.
const uint8_t * ts_reader_next(TsReader_t *reader)
size_t ts_reader_get_packet_size(const TsReader_t *reader)
struct TsReader_s TsReader_t
Definition ts-reader.h:57
TsReaderError_t
Definition ts-reader.h:47
@ TS_READER_ERROR_OPEN
Definition ts-reader.h:49
@ TS_READER_OK
Definition ts-reader.h:48
@ TS_READER_ERROR_MEMORY
Definition ts-reader.h:51
@ TS_READER_ERROR_FORMAT
Definition ts-reader.h:50
void ts_reader_close(TsReader_t *reader)
TsReader_t * ts_reader_open(const char *filename, TsReaderError_t *error)
bool ts_detect_packet_format(const uint8_t *buf, size_t len, size_t *packet_size, size_t *offset)