libclosedcaption
1.0.3
Extração de closed caption ISDB-Tb/SBTVD de arquivos MPEG-TS
Carregando...
Procurando...
Nenhuma entrada encontrado
ts-demux.h
Ir para a documentação desse arquivo.
1
35
#ifndef TS_DEMUX_H_
36
#define TS_DEMUX_H_
37
38
#include "
caption-common.h
"
39
#include "
ts-reader.h
"
40
42
#define TS_PID_PAT 0x0000
43
45
#define TS_PID_NULL 0x1fff
46
48
#define TS_PID_MAX 0x2000
49
51
#define TS_PID_NONE 0xffff
52
56
typedef
struct
{
57
uint32_t
packets
;
58
uint16_t
program
;
59
bool
is_pmt
;
60
bool
is_pcr
;
61
bool
is_es
;
62
uint8_t
stream_type
;
63
int16_t
component_tag
;
64
}
TsPidInfo_t
;
65
75
typedef
void (*
TsDemuxPesCallback_t
) (
const
uint8_t *pes,
76
size_t
len,
77
void
*userdata);
78
82
typedef
struct
TsDemux_s
TsDemux_t
;
83
89
TsDemux_t
*
ts_demux_new
(
void
);
90
96
void
ts_demux_free
(
TsDemux_t
*demux);
97
109
void
ts_demux_set_pes_callback
(
TsDemux_t
*demux,
110
uint16_t pid,
111
TsDemuxPesCallback_t
callback,
112
void
*userdata);
113
123
void
ts_demux_push
(
TsDemux_t
*demux,
124
const
uint8_t *packet);
125
134
void
ts_demux_flush
(
TsDemux_t
*demux);
135
143
const
TsPidInfo_t
*
ts_demux_get_pid_info
(
const
TsDemux_t
*demux,
144
uint16_t pid);
145
156
uint16_t
ts_demux_get_caption_pid
(
const
TsDemux_t
*demux);
157
168
const
char
*
ts_demux_describe_pid
(
const
TsDemux_t
*demux,
169
uint16_t pid,
170
char
*buf,
171
size_t
len);
172
179
const
char
*
ts_stream_type_name
(uint8_t stream_type);
180
188
const
char
*
ts_component_tag_name
(int16_t component_tag);
189
196
const
char
*
ts_system_pid_name
(uint16_t pid);
197
198
#endif
/* TS_DEMUX_H_ */
caption-common.h
Headers padrão e macros utilitárias usadas por toda a biblioteca.
TsPidInfo_t
Definição
ts-demux.h:56
TsPidInfo_t::packets
uint32_t packets
Definição
ts-demux.h:57
TsPidInfo_t::program
uint16_t program
Definição
ts-demux.h:58
TsPidInfo_t::stream_type
uint8_t stream_type
Definição
ts-demux.h:62
TsPidInfo_t::is_pcr
bool is_pcr
Definição
ts-demux.h:60
TsPidInfo_t::component_tag
int16_t component_tag
Definição
ts-demux.h:63
TsPidInfo_t::is_pmt
bool is_pmt
Definição
ts-demux.h:59
TsPidInfo_t::is_es
bool is_es
Definição
ts-demux.h:61
ts_demux_get_pid_info
const TsPidInfo_t * ts_demux_get_pid_info(const TsDemux_t *demux, uint16_t pid)
ts_demux_free
void ts_demux_free(TsDemux_t *demux)
ts_demux_describe_pid
const char * ts_demux_describe_pid(const TsDemux_t *demux, uint16_t pid, char *buf, size_t len)
ts_demux_flush
void ts_demux_flush(TsDemux_t *demux)
TsDemux_t
struct TsDemux_s TsDemux_t
Definição
ts-demux.h:82
ts_demux_set_pes_callback
void ts_demux_set_pes_callback(TsDemux_t *demux, uint16_t pid, TsDemuxPesCallback_t callback, void *userdata)
ts_demux_get_caption_pid
uint16_t ts_demux_get_caption_pid(const TsDemux_t *demux)
ts_component_tag_name
const char * ts_component_tag_name(int16_t component_tag)
ts_stream_type_name
const char * ts_stream_type_name(uint8_t stream_type)
ts_system_pid_name
const char * ts_system_pid_name(uint16_t pid)
TsDemuxPesCallback_t
void(* TsDemuxPesCallback_t)(const uint8_t *pes, size_t len, void *userdata)
Definição
ts-demux.h:75
ts_demux_new
TsDemux_t * ts_demux_new(void)
ts_demux_push
void ts_demux_push(TsDemux_t *demux, const uint8_t *packet)
ts-reader.h
Leitura de arquivos MPEG-TS, pacote a pacote.
docs
pt_BR
closedcaption
ts-demux.h
Gerado por
1.9.8