Skip to content

Commit 11a2869

Browse files
committed
upipe-ts: add AIT support
1 parent 6bdcaed commit 11a2869

File tree

11 files changed

+975
-3
lines changed

11 files changed

+975
-3
lines changed

include/upipe-ts/Makefile.am

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ myinclude_HEADERS = \
99
upipe_ts_encaps.h \
1010
upipe_ts_pcr_interpolator.h \
1111
upipe_ts_mux.h \
12+
upipe_ts_ait_decoder.h \
13+
upipe_ts_ait_generator.h \
1214
upipe_ts_eit_decoder.h \
1315
upipe_ts_nit_decoder.h \
1416
upipe_ts_cat_decoder.h \
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
/*
2+
* Copyright (C) 2024 EasyTools S.A.S.
3+
*
4+
* Authors: Arnaud de Turckheim
5+
*
6+
* This program is free software; you can redistribute it and/or modify it
7+
* under the terms of the GNU Lesser General Public License as published by
8+
* the Free Software Foundation; either version 2.1 of the License, or
9+
* (at your option) any later version.
10+
*
11+
* This program is distributed in the hope that it will be useful,
12+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
* GNU Lesser General Public License for more details.
15+
*
16+
* You should have received a copy of the GNU Lesser General Public License
17+
* along with this program; if not, write to the Free Software Foundation,
18+
* Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
19+
*/
20+
21+
/** @file
22+
* @short Upipe module decoding the application information table of DVB
23+
* streams
24+
*/
25+
26+
#ifndef _UPIPE_TS_UPIPE_TS_AIT_DECODER_H_
27+
/** @hidden */
28+
#define _UPIPE_TS_UPIPE_TS_AIT_DECODER_H_
29+
#ifdef __cplusplus
30+
extern "C" {
31+
#endif
32+
33+
#include "upipe/upipe.h"
34+
#include "upipe-ts/upipe_ts_demux.h"
35+
36+
#define UPIPE_TS_AITD_SIGNATURE UBASE_FOURCC('t','s',0x74,'d')
37+
38+
/** @This returns the management structure for all ts_aitd pipes.
39+
*
40+
* @return pointer to manager
41+
*/
42+
struct upipe_mgr *upipe_ts_aitd_mgr_alloc(void);
43+
44+
#ifdef __cplusplus
45+
}
46+
#endif
47+
#endif
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
/*
2+
* Copyright (C) 2024 EasyTools S.A.S.
3+
*
4+
* Authors: Arnaud de Turckheim
5+
*
6+
* This program is free software; you can redistribute it and/or modify it
7+
* under the terms of the GNU Lesser General Public License as published by
8+
* the Free Software Foundation; either version 2.1 of the License, or
9+
* (at your option) any later version.
10+
*
11+
* This program is distributed in the hope that it will be useful,
12+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
* GNU Lesser General Public License for more details.
15+
*
16+
* You should have received a copy of the GNU Lesser General Public License
17+
* along with this program; if not, write to the Free Software Foundation,
18+
* Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
19+
*/
20+
21+
/** @file
22+
* @short Upipe module generating the application information table of DVB
23+
* streams
24+
*/
25+
26+
#ifndef _UPIPE_TS_UPIPE_TS_AIT_GENRATOR_H_
27+
/** @hidden */
28+
#define _UPIPE_TS_UPIPE_TS_AIT_GENRATOR_H_
29+
#ifdef __cplusplus
30+
extern "C" {
31+
#endif
32+
33+
#include "upipe/upipe.h"
34+
#include "upipe-ts/upipe_ts_demux.h"
35+
36+
#define UPIPE_TS_AITG_SIGNATURE UBASE_FOURCC('t','s',0x74,'g')
37+
38+
/** @This returns the management structure for all ts_aitg pipes.
39+
*
40+
* @return pointer to manager
41+
*/
42+
struct upipe_mgr *upipe_ts_aitg_mgr_alloc(void);
43+
44+
#ifdef __cplusplus
45+
}
46+
#endif
47+
#endif

include/upipe-ts/uref_ts_flow.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,11 @@ UREF_ATTR_UNSIGNED(ts_flow, sdt_descriptors, "t.sdt.descs",
9191
UREF_ATTR_OPAQUE_VA(ts_flow, sdt_descriptor, "t.sdt.desc[%" PRIu64"]",
9292
SDT descriptor, uint64_t nb, nb)
9393
UREF_TS_ATTR_DESCRIPTOR(ts_flow, sdt_descriptor)
94+
UREF_ATTR_UNSIGNED(ts_flow, ait_descriptors, "t.ait.descs",
95+
number of AIT descriptors)
96+
UREF_ATTR_OPAQUE_VA(ts_flow, ait_descriptor, "t.ait.desc[%" PRIu64"]",
97+
AIT descriptor, uint64_t nb, nb)
98+
UREF_TS_ATTR_DESCRIPTOR(ts_flow, ait_descriptor)
9499

95100
/* EIT */
96101
UREF_ATTR_SMALL_UNSIGNED(ts_flow, last_table_id, "t.lasttid",

lib/upipe-ts/Makefile.am

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ noinst_HEADERS = upipe_ts_psi_decoder.h
55
libupipe_ts_la_SOURCES = \
66
upipe_ts_check.c \
77
upipe_ts_decaps.c \
8+
upipe_ts_ait_decoder.c \
9+
upipe_ts_ait_generator.c \
810
upipe_ts_eit_decoder.c \
911
upipe_ts_nit_decoder.c \
1012
upipe_ts_cat_decoder.c \

0 commit comments

Comments
 (0)