Skip to content

Commit

Permalink
upipe-ts: add AIT support
Browse files Browse the repository at this point in the history
  • Loading branch information
quarium committed Sep 2, 2024
1 parent 2abf7b2 commit 8aa9e96
Show file tree
Hide file tree
Showing 11 changed files with 975 additions and 3 deletions.
2 changes: 2 additions & 0 deletions include/upipe-ts/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ myinclude_HEADERS = \
upipe_ts_encaps.h \
upipe_ts_pcr_interpolator.h \
upipe_ts_mux.h \
upipe_ts_ait_decoder.h \
upipe_ts_ait_generator.h \
upipe_ts_eit_decoder.h \
upipe_ts_nit_decoder.h \
upipe_ts_cat_decoder.h \
Expand Down
47 changes: 47 additions & 0 deletions include/upipe-ts/upipe_ts_ait_decoder.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/*
* Copyright (C) 2024 EasyTools S.A.S.
*
* Authors: Arnaud de Turckheim
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*/

/** @file
* @short Upipe module decoding the application information table of DVB
* streams
*/

#ifndef _UPIPE_TS_UPIPE_TS_AIT_DECODER_H_
/** @hidden */
#define _UPIPE_TS_UPIPE_TS_AIT_DECODER_H_
#ifdef __cplusplus
extern "C" {
#endif

#include "upipe/upipe.h"
#include "upipe-ts/upipe_ts_demux.h"

#define UPIPE_TS_AITD_SIGNATURE UBASE_FOURCC('t','s',0x74,'d')

/** @This returns the management structure for all ts_aitd pipes.
*
* @return pointer to manager
*/
struct upipe_mgr *upipe_ts_aitd_mgr_alloc(void);

#ifdef __cplusplus
}
#endif
#endif
47 changes: 47 additions & 0 deletions include/upipe-ts/upipe_ts_ait_generator.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/*
* Copyright (C) 2024 EasyTools S.A.S.
*
* Authors: Arnaud de Turckheim
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*/

/** @file
* @short Upipe module generating the application information table of DVB
* streams
*/

#ifndef _UPIPE_TS_UPIPE_TS_AIT_GENRATOR_H_
/** @hidden */
#define _UPIPE_TS_UPIPE_TS_AIT_GENRATOR_H_
#ifdef __cplusplus
extern "C" {
#endif

#include "upipe/upipe.h"
#include "upipe-ts/upipe_ts_demux.h"

#define UPIPE_TS_AITG_SIGNATURE UBASE_FOURCC('t','s',0x74,'g')

/** @This returns the management structure for all ts_aitg pipes.
*
* @return pointer to manager
*/
struct upipe_mgr *upipe_ts_aitg_mgr_alloc(void);

#ifdef __cplusplus
}
#endif
#endif
5 changes: 5 additions & 0 deletions include/upipe-ts/uref_ts_flow.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ UREF_ATTR_UNSIGNED(ts_flow, sdt_descriptors, "t.sdt.descs",
UREF_ATTR_OPAQUE_VA(ts_flow, sdt_descriptor, "t.sdt.desc[%" PRIu64"]",
SDT descriptor, uint64_t nb, nb)
UREF_TS_ATTR_DESCRIPTOR(ts_flow, sdt_descriptor)
UREF_ATTR_UNSIGNED(ts_flow, ait_descriptors, "t.ait.descs",
number of SDT descriptors)
UREF_ATTR_OPAQUE_VA(ts_flow, ait_descriptor, "t.ait.desc[%" PRIu64"]",
SDT descriptor, uint64_t nb, nb)
UREF_TS_ATTR_DESCRIPTOR(ts_flow, ait_descriptor)

/* EIT */
UREF_ATTR_SMALL_UNSIGNED(ts_flow, last_table_id, "t.lasttid",
Expand Down
2 changes: 2 additions & 0 deletions lib/upipe-ts/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ noinst_HEADERS = upipe_ts_psi_decoder.h
libupipe_ts_la_SOURCES = \
upipe_ts_check.c \
upipe_ts_decaps.c \
upipe_ts_ait_decoder.c \
upipe_ts_ait_generator.c \
upipe_ts_eit_decoder.c \
upipe_ts_nit_decoder.c \
upipe_ts_cat_decoder.c \
Expand Down
Loading

0 comments on commit 8aa9e96

Please sign in to comment.