libclosedcaption
1.0.3
Extração de closed caption ISDB-Tb/SBTVD de arquivos MPEG-TS
Carregando...
Procurando...
Nenhuma entrada encontrado
ts-reader.h
Ir para a documentação desse arquivo.
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
47
typedef
enum
{
48
TS_READER_OK
= 0,
49
TS_READER_ERROR_OPEN
,
50
TS_READER_ERROR_FORMAT
,
51
TS_READER_ERROR_MEMORY
52
}
TsReaderError_t
;
53
57
typedef
struct
TsReader_s
TsReader_t
;
58
72
bool
ts_detect_packet_format
(
const
uint8_t *buf,
73
size_t
len,
74
size_t
*packet_size,
75
size_t
*offset);
76
84
TsReader_t
*
ts_reader_open
(
const
char
*filename,
85
TsReaderError_t
*error);
86
95
const
uint8_t *
ts_reader_next
(
TsReader_t
*reader);
96
103
size_t
ts_reader_get_packet_size
(
const
TsReader_t
*reader);
104
110
void
ts_reader_close
(
TsReader_t
*reader);
111
112
#endif
/* TS_READER_H_ */
caption-common.h
Headers padrão e macros utilitárias usadas por toda a biblioteca.
ts_reader_next
const uint8_t * ts_reader_next(TsReader_t *reader)
ts_reader_get_packet_size
size_t ts_reader_get_packet_size(const TsReader_t *reader)
TsReader_t
struct TsReader_s TsReader_t
Definição
ts-reader.h:57
TsReaderError_t
TsReaderError_t
Definição
ts-reader.h:47
TS_READER_ERROR_OPEN
@ TS_READER_ERROR_OPEN
Definição
ts-reader.h:49
TS_READER_OK
@ TS_READER_OK
Definição
ts-reader.h:48
TS_READER_ERROR_MEMORY
@ TS_READER_ERROR_MEMORY
Definição
ts-reader.h:51
TS_READER_ERROR_FORMAT
@ TS_READER_ERROR_FORMAT
Definição
ts-reader.h:50
ts_reader_close
void ts_reader_close(TsReader_t *reader)
ts_reader_open
TsReader_t * ts_reader_open(const char *filename, TsReaderError_t *error)
ts_detect_packet_format
bool ts_detect_packet_format(const uint8_t *buf, size_t len, size_t *packet_size, size_t *offset)
docs
pt_BR
closedcaption
ts-reader.h
Gerado por
1.9.8