|
@@ -137,6 +137,7 @@ void ts_section_data_gen_ts_packets (struct ts_header *ts_header, uint8_t *
|
137
|
137
|
|
138
|
138
|
// PAT
|
139
|
139
|
struct ts_pat * ts_pat_alloc (void);
|
|
140
|
+struct ts_pat * ts_pat_init (struct ts_pat *pat, uint16_t transport_stream_id);
|
140
|
141
|
struct ts_pat * ts_pat_alloc_init (uint16_t transport_stream_id);
|
141
|
142
|
struct ts_pat * ts_pat_push_packet (struct ts_pat *pat, uint8_t *ts_packet);
|
142
|
143
|
void ts_pat_clear (struct ts_pat *pat);
|
|
@@ -177,7 +178,6 @@ int ts_get_ecm_info_by_pid (struct ts_pmt *pmt, uint16_t *caid, uint16_t ca_p
|
177
|
178
|
|
178
|
179
|
// PMT
|
179
|
180
|
struct ts_pmt * ts_pmt_alloc (void);
|
180
|
|
-struct ts_pmt * ts_pmt_alloc_init (uint16_t org_network_id, uint16_t transport_stream_id);
|
181
|
181
|
struct ts_pmt * ts_pmt_push_packet (struct ts_pmt *pmt, uint8_t *ts_packet);
|
182
|
182
|
void ts_pmt_clear (struct ts_pmt *pmt);
|
183
|
183
|
void ts_pmt_free (struct ts_pmt **pmt);
|
|
@@ -192,6 +192,7 @@ int ts_pmt_is_same (struct ts_pmt *pmt1, struct ts_pmt *pmt2);
|
192
|
192
|
|
193
|
193
|
// NIT
|
194
|
194
|
struct ts_nit * ts_nit_alloc (void);
|
|
195
|
+struct ts_nit * ts_nit_init (struct ts_nit *nit, uint16_t network_id);
|
195
|
196
|
struct ts_nit * ts_nit_alloc_init (uint16_t network_id);
|
196
|
197
|
struct ts_nit * ts_nit_push_packet (struct ts_nit *nit, uint8_t *ts_packet);
|
197
|
198
|
void ts_nit_clear (struct ts_nit *nit);
|
|
@@ -210,6 +211,7 @@ int ts_nit_is_same (struct ts_nit *nit1, struct ts_nit *nit2);
|
210
|
211
|
|
211
|
212
|
// SDT
|
212
|
213
|
struct ts_sdt * ts_sdt_alloc (void);
|
|
214
|
+struct ts_sdt * ts_sdt_init (struct ts_sdt *sdt, uint16_t org_network_id, uint16_t transport_stream_id);
|
213
|
215
|
struct ts_sdt * ts_sdt_alloc_init (uint16_t org_network_id, uint16_t transport_stream_id);
|
214
|
216
|
struct ts_sdt * ts_sdt_push_packet (struct ts_sdt *sdt, uint8_t *ts_packet);
|
215
|
217
|
void ts_sdt_clear (struct ts_sdt *sdt);
|
|
@@ -225,6 +227,7 @@ int ts_sdt_is_same (struct ts_sdt *sdt1, struct ts_sdt *sdt2);
|
225
|
227
|
|
226
|
228
|
// EIT
|
227
|
229
|
struct ts_eit * ts_eit_alloc (void);
|
|
230
|
+struct ts_eit * ts_eit_init (struct ts_eit *eit, uint16_t service_id, uint16_t transport_stream_id, uint16_t org_network_id, uint8_t table_id, uint8_t sec_number, uint8_t last_sec_number);
|
228
|
231
|
struct ts_eit * ts_eit_alloc_init (uint16_t service_id, uint16_t transport_stream_id, uint16_t org_network_id, uint8_t table_id, uint8_t sec_number, uint8_t last_sec_number);
|
229
|
232
|
struct ts_eit * ts_eit_alloc_init_pf (uint16_t service_id, uint16_t transport_stream_id, uint16_t org_network_id, uint8_t sec_number, uint8_t last_sec_number); // Shortcut using table_id 0x4e
|
230
|
233
|
struct ts_eit * ts_eit_alloc_init_schedule (uint16_t service_id, uint16_t transport_stream_id, uint16_t org_network_id, uint8_t sec_number, uint8_t last_sec_number); // Shortcut using table_id 0x50
|
|
@@ -247,6 +250,8 @@ int ts_eit_is_same (struct ts_eit *eit1, struct ts_eit *eit2);
|
247
|
250
|
|
248
|
251
|
// TDT
|
249
|
252
|
struct ts_tdt * ts_tdt_alloc(void);
|
|
253
|
+struct ts_tdt * ts_tdt_init (struct ts_tdt *tdt, time_t ts);
|
|
254
|
+struct ts_tdt * ts_tot_init (struct ts_tdt *tot, time_t ts);
|
250
|
255
|
struct ts_tdt * ts_tdt_alloc_init (time_t ts);
|
251
|
256
|
struct ts_tdt * ts_tot_alloc_init (time_t ts);
|
252
|
257
|
void ts_tdt_clear (struct ts_tdt *tdt);
|