2013-07-03 15:59:02 +00:00
|
|
|
/*
|
2018-11-05 15:21:35 +00:00
|
|
|
* mpegtspacketizer.h -
|
2013-07-03 15:59:02 +00:00
|
|
|
* Copyright (C) 2013 Edward Hervey
|
2018-11-05 15:21:35 +00:00
|
|
|
*
|
2013-07-03 15:59:02 +00:00
|
|
|
* Authors:
|
|
|
|
* Edward Hervey <edward@collabora.com>
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Library General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library 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
|
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
|
|
* License along with this library; if not, write to the
|
|
|
|
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
|
|
* Boston, MA 02110-1301, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef GST_DVB_SECTION_H
|
|
|
|
#define GST_DVB_SECTION_H
|
|
|
|
|
|
|
|
#include <gst/gst.h>
|
|
|
|
#include <gst/mpegts/gstmpegtssection.h>
|
|
|
|
#include <gst/mpegts/gstmpegtsdescriptor.h>
|
|
|
|
|
2014-01-06 15:01:22 +00:00
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
2013-07-03 15:59:02 +00:00
|
|
|
/**
|
2014-06-25 12:50:05 +00:00
|
|
|
* GstMpegtsSectionDVBTableID:
|
2020-12-14 09:50:02 +00:00
|
|
|
* @GST_MTS_TABLE_ID_NETWORK_INFORMATION_ACTUAL_NETWORK: Network Information Table (NIT), Actual Network
|
|
|
|
* @GST_MTS_TABLE_ID_NETWORK_INFORMATION_OTHER_NETWORK: Network Information Table (NIT), Other Network
|
|
|
|
* @GST_MTS_TABLE_ID_SERVICE_DESCRIPTION_ACTUAL_TS: Service Description Table (SDT), Actual Transport Stream
|
|
|
|
* @GST_MTS_TABLE_ID_SERVICE_DESCRIPTION_OTHER_TS: Service Description Table (SDT), Other Transport Stream
|
|
|
|
* @GST_MTS_TABLE_ID_BOUQUET_ASSOCIATION: Bouquet Association Table (BAT)
|
|
|
|
* @GST_MTS_TABLE_ID_EVENT_INFORMATION_ACTUAL_TS_PRESENT: Event Information Table (EIT), Actual Transport Stream, present/following
|
|
|
|
* @GST_MTS_TABLE_ID_EVENT_INFORMATION_OTHER_TS_PRESENT: Event Information Table (EIT), Other Transport Stream, present/following
|
|
|
|
* @GST_MTS_TABLE_ID_EVENT_INFORMATION_ACTUAL_TS_SCHEDULE_1: Event Information Table (EIT), Actual Transport Stream, Schedule (first)
|
|
|
|
* @GST_MTS_TABLE_ID_EVENT_INFORMATION_ACTUAL_TS_SCHEDULE_N: Event Information Table (EIT), Actual Transport Stream, Schedule (last)
|
|
|
|
* @GST_MTS_TABLE_ID_EVENT_INFORMATION_OTHER_TS_SCHEDULE_1: Event Information Table (EIT), Other Transport Stream, Schedule (first)
|
|
|
|
* @GST_MTS_TABLE_ID_EVENT_INFORMATION_OTHER_TS_SCHEDULE_N: Event Information Table (EIT), Other Transport Stream, Schedule (last)
|
|
|
|
* @GST_MTS_TABLE_ID_TIME_DATE: Time Date Table (TDT)
|
|
|
|
* @GST_MTS_TABLE_ID_RUNNING_STATUS: Running Status Table (RST)
|
|
|
|
* @GST_MTS_TABLE_ID_STUFFING: Stuffing Table (ST)
|
|
|
|
* @GST_MTS_TABLE_ID_TIME_OFFSET: Time Offset Table (TOT)
|
|
|
|
* @GST_MTS_TABLE_ID_APPLICATION_INFORMATION_TABLE: ETSI TS 102 323: Application Information Table (AIT)
|
|
|
|
* @GST_MTS_TABLE_ID_CONTAINER: ETSI TS 102 323: Container Section
|
|
|
|
* @GST_MTS_TABLE_ID_RELATED_CONTENT: ETSI TS 102 323: Related Content Table (RCT)
|
|
|
|
* @GST_MTS_TABLE_ID_CONTENT_IDENTIFIER: ETSI TS 102 323: Content Identifier Table (CIT)
|
|
|
|
* @GST_MTS_TABLE_ID_MPE_FEC: ETSI TS 301 192: MPE-FEC Section
|
|
|
|
* @GST_MTS_TABLE_ID_RESOLUTION_NOTIFICATION: ETSI 103 323: Resolution Provider Notification Table (RNT)
|
|
|
|
* @GST_MTS_TABLE_ID_MPE_IFEC: ETSI TS 102 772: MPE-IFEC Section
|
|
|
|
* @GST_MTS_TABLE_ID_DISCONTINUITY_INFORMATION: Discontinuity Information Table (DIT)
|
|
|
|
* @GST_MTS_TABLE_ID_SELECTION_INFORMATION: Selection Information Table (SIT)
|
|
|
|
* @GST_MTS_TABLE_ID_CA_MESSAGE_ECM_0: ETSI TR 289: CA Message Table (CMT): ECM 0
|
|
|
|
* @GST_MTS_TABLE_ID_CA_MESSAGE_ECM_1: ETSI TR 289: CA Message Table (CMT): ECM 1
|
|
|
|
* @GST_MTS_TABLE_ID_CA_MESSAGE_SYSTEM_PRIVATE_1: ETSI TR 289: CA Message Table (CMT): CA System Private (First)
|
|
|
|
* @GST_MTS_TABLE_ID_CA_MESSAGE_SYSTEM_PRIVATE_N: ETSI TR 289: CA Message Table (CMT): CA System Private (Last)
|
2013-07-03 15:59:02 +00:00
|
|
|
*
|
2014-06-25 12:50:05 +00:00
|
|
|
* Values for a #GstMpegtsSection table_id.
|
2013-07-03 15:59:02 +00:00
|
|
|
*
|
2020-12-14 09:50:02 +00:00
|
|
|
* These are the registered DVB table_id variants. Unless specified otherwise,
|
|
|
|
* they come from the DVB Specification for SI (ETSI EN 300 468).
|
2013-07-03 15:59:02 +00:00
|
|
|
*
|
2014-06-25 12:50:05 +00:00
|
|
|
* see also: #GstMpegtsSectionTableID
|
2013-07-03 15:59:02 +00:00
|
|
|
*/
|
|
|
|
typedef enum {
|
|
|
|
/* EN 300 468 (DVB) v 1.12.1 */
|
|
|
|
GST_MTS_TABLE_ID_NETWORK_INFORMATION_ACTUAL_NETWORK = 0x40,
|
|
|
|
GST_MTS_TABLE_ID_NETWORK_INFORMATION_OTHER_NETWORK = 0x41,
|
|
|
|
GST_MTS_TABLE_ID_SERVICE_DESCRIPTION_ACTUAL_TS = 0x42,
|
|
|
|
GST_MTS_TABLE_ID_SERVICE_DESCRIPTION_OTHER_TS = 0x46,
|
|
|
|
GST_MTS_TABLE_ID_BOUQUET_ASSOCIATION = 0x4A,
|
2020-12-14 09:50:02 +00:00
|
|
|
|
|
|
|
/* ETSI TS 102 006 */
|
|
|
|
/**
|
|
|
|
* GST_MTS_TABLE_ID_UPDATE_NOTIFICATION:
|
|
|
|
*
|
|
|
|
* ETSI TS 102 006: Update Notification Table (UNT)
|
|
|
|
*
|
|
|
|
* Since: 1.20
|
|
|
|
*/
|
|
|
|
GST_MTS_TABLE_ID_UPDATE_NOTIFICATION = 0x4B,
|
|
|
|
|
|
|
|
/* ETSI EN 303 560 */
|
|
|
|
/**
|
|
|
|
* GST_MTS_TABLE_ID_DOWNLOADABLE_FONT_INFO:
|
|
|
|
*
|
|
|
|
* ETSI EN 303 560: Downloadable Font Info
|
|
|
|
*
|
|
|
|
* Since: 1.20
|
|
|
|
*/
|
|
|
|
GST_MTS_TABLE_ID_DOWNLOADABLE_FONT_INFO = 0x4C,
|
|
|
|
|
|
|
|
/* EN 300 468 */
|
2013-07-03 15:59:02 +00:00
|
|
|
GST_MTS_TABLE_ID_EVENT_INFORMATION_ACTUAL_TS_PRESENT = 0x4E,
|
|
|
|
GST_MTS_TABLE_ID_EVENT_INFORMATION_OTHER_TS_PRESENT = 0x4F,
|
|
|
|
GST_MTS_TABLE_ID_EVENT_INFORMATION_ACTUAL_TS_SCHEDULE_1 = 0x50,
|
|
|
|
GST_MTS_TABLE_ID_EVENT_INFORMATION_ACTUAL_TS_SCHEDULE_N = 0x5F,
|
|
|
|
GST_MTS_TABLE_ID_EVENT_INFORMATION_OTHER_TS_SCHEDULE_1 = 0x60,
|
|
|
|
GST_MTS_TABLE_ID_EVENT_INFORMATION_OTHER_TS_SCHEDULE_N = 0x6F,
|
|
|
|
GST_MTS_TABLE_ID_TIME_DATE = 0x70,
|
|
|
|
GST_MTS_TABLE_ID_RUNNING_STATUS = 0x71,
|
|
|
|
GST_MTS_TABLE_ID_STUFFING = 0x72,
|
|
|
|
GST_MTS_TABLE_ID_TIME_OFFSET = 0x73,
|
|
|
|
|
|
|
|
/* TS 102 812 (MHP v1.1.3) */
|
|
|
|
GST_MTS_TABLE_ID_APPLICATION_INFORMATION_TABLE = 0x74,
|
|
|
|
|
|
|
|
/* TS 102 323 (DVB TV Anytime v1.5.1) */
|
|
|
|
GST_MTS_TABLE_ID_CONTAINER = 0x75,
|
|
|
|
GST_MTS_TABLE_ID_RELATED_CONTENT = 0x76,
|
|
|
|
GST_MTS_TABLE_ID_CONTENT_IDENTIFIER = 0x77,
|
2018-11-05 15:21:35 +00:00
|
|
|
|
2013-07-03 15:59:02 +00:00
|
|
|
/* EN 301 192 (DVB specification for data broadcasting) */
|
|
|
|
GST_MTS_TABLE_ID_MPE_FEC = 0x78,
|
|
|
|
|
|
|
|
/* TS 102 323 (DVB TV Anytime v1.5.1) */
|
|
|
|
GST_MTS_TABLE_ID_RESOLUTION_NOTIFICATION = 0x79,
|
|
|
|
|
|
|
|
/* TS 102 772 (DVB-SH Multi-Protocol Encapsulation) */
|
|
|
|
GST_MTS_TABLE_ID_MPE_IFEC = 0x7A,
|
2018-11-05 15:21:35 +00:00
|
|
|
|
2020-12-14 09:50:02 +00:00
|
|
|
/* TS 102 809 (DVB Hybrid Broadcast/Broadband) */
|
|
|
|
/**
|
|
|
|
* GST_MTS_TABLE_ID_PROTECTION_MESSAGE:
|
|
|
|
*
|
|
|
|
* ETSI TS 102 809: Protection Message Section
|
|
|
|
*
|
|
|
|
* Since: 1.20
|
|
|
|
*/
|
|
|
|
GST_MTS_TABLE_ID_PROTECTION_MESSAGE = 0x7B,
|
|
|
|
|
2013-07-03 15:59:02 +00:00
|
|
|
/* EN 300 468 (DVB) v 1.12.1 */
|
|
|
|
GST_MTS_TABLE_ID_DISCONTINUITY_INFORMATION = 0x7E,
|
|
|
|
GST_MTS_TABLE_ID_SELECTION_INFORMATION = 0x7F,
|
|
|
|
|
|
|
|
/* ETR 289 (DVB Support for use of scrambling and CA) */
|
|
|
|
GST_MTS_TABLE_ID_CA_MESSAGE_ECM_0 = 0x80,
|
|
|
|
GST_MTS_TABLE_ID_CA_MESSAGE_ECM_1 = 0x81,
|
|
|
|
GST_MTS_TABLE_ID_CA_MESSAGE_SYSTEM_PRIVATE_1 = 0x82,
|
|
|
|
GST_MTS_TABLE_ID_CA_MESSAGE_SYSTEM_PRIVATE_N = 0x8F,
|
|
|
|
|
|
|
|
/* ... */
|
|
|
|
|
|
|
|
/* EN 301 790 (DVB interaction channel for satellite distribution channels) */
|
2020-12-14 09:50:02 +00:00
|
|
|
/* Note: Not 100% sure we want those exposed here ... */
|
2013-07-03 15:59:02 +00:00
|
|
|
GST_MTS_TABLE_ID_SCT = 0xA0,
|
|
|
|
GST_MTS_TABLE_ID_FCT = 0xA1,
|
|
|
|
GST_MTS_TABLE_ID_TCT = 0xA2,
|
|
|
|
GST_MTS_TABLE_ID_SPT = 0xA3,
|
|
|
|
GST_MTS_TABLE_ID_CMT = 0xA4,
|
|
|
|
GST_MTS_TABLE_ID_TBTP = 0xA5,
|
|
|
|
GST_MTS_TABLE_ID_PCR_PACKET_PAYLOAD = 0xA6,
|
|
|
|
GST_MTS_TABLE_ID_TRANSMISSION_MODE_SUPPORT_PAYLOAD = 0xAA,
|
|
|
|
GST_MTS_TABLE_ID_TIM = 0xB0,
|
|
|
|
GST_MTS_TABLE_ID_LL_FEC_PARITY_DATA_TABLE = 0xB1
|
|
|
|
|
2014-06-25 12:50:05 +00:00
|
|
|
} GstMpegtsSectionDVBTableID;
|
2013-07-03 15:59:02 +00:00
|
|
|
|
|
|
|
/**
|
2014-06-25 12:50:05 +00:00
|
|
|
* GstMpegtsRunningStatus:
|
2013-07-03 15:59:02 +00:00
|
|
|
*
|
|
|
|
* Running status of a service.
|
|
|
|
*
|
|
|
|
* Corresponds to table 6 of ETSI EN 300 468 (v1.13.0)
|
|
|
|
*/
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GST_MPEGTS_RUNNING_STATUS_UNDEFINED = 0,
|
|
|
|
GST_MPEGTS_RUNNING_STATUS_NOT_RUNNING,
|
|
|
|
GST_MPEGTS_RUNNING_STATUS_STARTS_IN_FEW_SECONDS,
|
|
|
|
GST_MPEGTS_RUNNING_STATUS_PAUSING,
|
|
|
|
GST_MPEGTS_RUNNING_STATUS_RUNNING,
|
|
|
|
GST_MPEGTS_RUNNING_STATUS_OFF_AIR
|
2014-06-25 12:50:05 +00:00
|
|
|
} GstMpegtsRunningStatus;
|
2013-07-03 15:59:02 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* NIT */
|
|
|
|
|
2014-06-25 12:50:05 +00:00
|
|
|
typedef struct _GstMpegtsNITStream GstMpegtsNITStream;
|
|
|
|
typedef struct _GstMpegtsNIT GstMpegtsNIT;
|
2013-07-03 15:59:02 +00:00
|
|
|
|
|
|
|
#define GST_TYPE_MPEGTS_NIT (gst_mpegts_nit_get_type())
|
|
|
|
#define GST_TYPE_MPEGTS_NIT_STREAM (gst_mpegts_nit_stream_get_type())
|
|
|
|
|
|
|
|
/**
|
2014-06-25 12:50:05 +00:00
|
|
|
* GstMpegtsNITStream:
|
2013-07-03 15:59:02 +00:00
|
|
|
* @transport_stream_id:
|
|
|
|
* @original_network_id:
|
2014-06-25 12:50:05 +00:00
|
|
|
* @descriptors: (element-type GstMpegtsDescriptor):
|
2013-07-03 15:59:02 +00:00
|
|
|
*
|
|
|
|
*/
|
2014-06-25 12:50:05 +00:00
|
|
|
struct _GstMpegtsNITStream
|
2013-07-03 15:59:02 +00:00
|
|
|
{
|
|
|
|
guint16 transport_stream_id;
|
|
|
|
guint16 original_network_id;
|
|
|
|
|
2013-08-21 06:40:16 +00:00
|
|
|
GPtrArray *descriptors;
|
2013-07-03 15:59:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
2014-06-25 12:50:05 +00:00
|
|
|
* GstMpegtsNIT:
|
2013-07-03 15:59:02 +00:00
|
|
|
* @actual_network: Whether this NIT corresponds to the actual stream
|
2013-10-28 13:26:39 +00:00
|
|
|
* @network_id: ID of the network that this NIT describes
|
2014-06-25 12:50:05 +00:00
|
|
|
* @descriptors: (element-type GstMpegtsDescriptor): the global descriptors
|
|
|
|
* @streams: (element-type GstMpegtsNITStream): the streams
|
2013-07-03 15:59:02 +00:00
|
|
|
*
|
|
|
|
* Network Information Table (ISO/IEC 13818-1 / EN 300 468)
|
|
|
|
*
|
|
|
|
*/
|
2014-06-25 12:50:05 +00:00
|
|
|
struct _GstMpegtsNIT
|
2013-07-03 15:59:02 +00:00
|
|
|
{
|
|
|
|
gboolean actual_network;
|
2013-10-28 13:26:39 +00:00
|
|
|
guint16 network_id;
|
2013-07-03 15:59:02 +00:00
|
|
|
|
2013-11-08 19:23:27 +00:00
|
|
|
GPtrArray *descriptors;
|
2013-07-03 15:59:02 +00:00
|
|
|
|
|
|
|
GPtrArray *streams;
|
|
|
|
};
|
|
|
|
|
2018-03-13 12:47:03 +00:00
|
|
|
GST_MPEGTS_API
|
2013-07-03 15:59:02 +00:00
|
|
|
GType gst_mpegts_nit_get_type (void);
|
2017-07-18 00:10:56 +00:00
|
|
|
|
2018-03-13 12:47:03 +00:00
|
|
|
GST_MPEGTS_API
|
2013-07-03 15:59:02 +00:00
|
|
|
GType gst_mpegts_nit_stream_get_type (void);
|
|
|
|
|
2018-03-13 12:47:03 +00:00
|
|
|
GST_MPEGTS_API
|
2014-06-25 12:50:05 +00:00
|
|
|
const GstMpegtsNIT *gst_mpegts_section_get_nit (GstMpegtsSection *section);
|
2017-07-18 00:10:56 +00:00
|
|
|
|
2018-03-13 12:47:03 +00:00
|
|
|
GST_MPEGTS_API
|
2014-06-25 12:50:05 +00:00
|
|
|
GstMpegtsSection *gst_mpegts_section_from_nit (GstMpegtsNIT *nit);
|
2013-10-28 13:48:13 +00:00
|
|
|
|
2018-03-13 12:47:03 +00:00
|
|
|
GST_MPEGTS_API
|
2014-06-25 12:50:05 +00:00
|
|
|
GstMpegtsNIT *gst_mpegts_nit_new (void);
|
2017-07-18 00:10:56 +00:00
|
|
|
|
2018-03-13 12:47:03 +00:00
|
|
|
GST_MPEGTS_API
|
2014-06-25 12:50:05 +00:00
|
|
|
GstMpegtsNITStream *gst_mpegts_nit_stream_new (void);
|
2013-10-28 13:48:13 +00:00
|
|
|
|
2013-07-03 15:59:02 +00:00
|
|
|
|
|
|
|
/* BAT */
|
|
|
|
|
2014-06-25 12:50:05 +00:00
|
|
|
typedef struct _GstMpegtsBATStream GstMpegtsBATStream;
|
|
|
|
typedef struct _GstMpegtsBAT GstMpegtsBAT;
|
2013-07-03 15:59:02 +00:00
|
|
|
|
|
|
|
#define GST_TYPE_MPEGTS_BAT (gst_mpegts_bat_get_type())
|
2013-07-08 06:42:18 +00:00
|
|
|
#define GST_TYPE_MPEGTS_BAT_STREAM (gst_mpegts_bat_get_type())
|
2013-07-03 15:59:02 +00:00
|
|
|
|
2014-06-25 12:50:05 +00:00
|
|
|
struct _GstMpegtsBATStream
|
2013-07-03 15:59:02 +00:00
|
|
|
{
|
|
|
|
guint16 transport_stream_id;
|
|
|
|
guint16 original_network_id;
|
|
|
|
|
2013-08-21 06:40:16 +00:00
|
|
|
GPtrArray *descriptors;
|
2013-07-03 15:59:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
2014-06-25 12:50:05 +00:00
|
|
|
* GstMpegtsBAT:
|
|
|
|
* @descriptors: (element-type GstMpegtsDescriptor):
|
|
|
|
* @streams: (element-type GstMpegtsBATStream):
|
2013-07-03 15:59:02 +00:00
|
|
|
*
|
|
|
|
* DVB Bouquet Association Table (EN 300 468)
|
|
|
|
*/
|
2014-06-25 12:50:05 +00:00
|
|
|
struct _GstMpegtsBAT
|
2013-07-03 15:59:02 +00:00
|
|
|
{
|
2014-06-24 13:41:36 +00:00
|
|
|
GPtrArray *descriptors;
|
2013-07-03 15:59:02 +00:00
|
|
|
|
|
|
|
GPtrArray *streams;
|
|
|
|
};
|
|
|
|
|
2018-03-13 12:47:03 +00:00
|
|
|
GST_MPEGTS_API
|
2013-07-03 15:59:02 +00:00
|
|
|
GType gst_mpegts_bat_get_type (void);
|
2017-07-18 00:10:56 +00:00
|
|
|
|
2018-03-13 12:47:03 +00:00
|
|
|
GST_MPEGTS_API
|
2013-07-08 06:42:18 +00:00
|
|
|
GType gst_mpegts_bat_stream_get_type (void);
|
|
|
|
|
2018-03-13 12:47:03 +00:00
|
|
|
GST_MPEGTS_API
|
2014-06-25 12:50:05 +00:00
|
|
|
const GstMpegtsBAT *gst_mpegts_section_get_bat (GstMpegtsSection *section);
|
2013-07-03 15:59:02 +00:00
|
|
|
|
|
|
|
/* SDT */
|
|
|
|
#define GST_TYPE_MPEGTS_SDT (gst_mpegts_sdt_get_type())
|
|
|
|
#define GST_TYPE_MPEGTS_SDT_SERVICE (gst_mpegts_sdt_service_get_type())
|
|
|
|
|
2014-06-25 12:50:05 +00:00
|
|
|
typedef struct _GstMpegtsSDTService GstMpegtsSDTService;
|
|
|
|
typedef struct _GstMpegtsSDT GstMpegtsSDT;
|
2013-07-03 15:59:02 +00:00
|
|
|
|
2013-11-08 19:23:27 +00:00
|
|
|
/**
|
2014-06-25 12:50:05 +00:00
|
|
|
* GstMpegtsSDTService:
|
2014-02-22 15:47:57 +00:00
|
|
|
* @service_id: The program number this table belongs to
|
|
|
|
* @EIT_schedule_flag: EIT schedule information is present in this transport stream
|
|
|
|
* @EIT_present_following_flag: EIT present/following information is present in this transport stream
|
|
|
|
* @running_status: Status of this service
|
|
|
|
* @free_CA_mode: True if one or more streams is controlled by a CA system
|
2014-06-25 12:50:05 +00:00
|
|
|
* @descriptors: (element-type GstMpegtsDescriptor): List of descriptors
|
2013-11-08 19:23:27 +00:00
|
|
|
*
|
|
|
|
*/
|
2014-06-25 12:50:05 +00:00
|
|
|
struct _GstMpegtsSDTService
|
2013-07-03 15:59:02 +00:00
|
|
|
{
|
|
|
|
guint16 service_id;
|
|
|
|
|
|
|
|
gboolean EIT_schedule_flag;
|
|
|
|
gboolean EIT_present_following_flag;
|
2014-06-25 12:50:05 +00:00
|
|
|
GstMpegtsRunningStatus running_status;
|
2013-07-03 15:59:02 +00:00
|
|
|
gboolean free_CA_mode;
|
|
|
|
|
2013-08-21 06:40:16 +00:00
|
|
|
GPtrArray *descriptors;
|
2013-07-03 15:59:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
2014-06-25 12:50:05 +00:00
|
|
|
* GstMpegtsSDT:
|
2014-02-22 15:41:22 +00:00
|
|
|
* @original_network_id: Network ID of the originating delivery system
|
|
|
|
* @actual_ts: True if the table describes this transport stream
|
|
|
|
* @transport_stream_id: ID of this transport stream
|
2014-06-25 12:50:05 +00:00
|
|
|
* @services: (element-type GstMpegtsSDTService): List of services
|
2013-11-08 19:23:27 +00:00
|
|
|
*
|
2013-07-03 15:59:02 +00:00
|
|
|
* Service Description Table (EN 300 468)
|
2013-11-08 19:23:27 +00:00
|
|
|
*
|
2013-07-03 15:59:02 +00:00
|
|
|
*/
|
2014-06-25 12:50:05 +00:00
|
|
|
struct _GstMpegtsSDT
|
2013-07-03 15:59:02 +00:00
|
|
|
{
|
|
|
|
guint16 original_network_id;
|
|
|
|
gboolean actual_ts;
|
2014-02-22 15:41:22 +00:00
|
|
|
guint16 transport_stream_id;
|
2013-07-03 15:59:02 +00:00
|
|
|
|
|
|
|
GPtrArray *services;
|
|
|
|
};
|
|
|
|
|
2018-03-13 12:47:03 +00:00
|
|
|
GST_MPEGTS_API
|
2013-07-03 15:59:02 +00:00
|
|
|
GType gst_mpegts_sdt_get_type (void);
|
2017-07-18 00:10:56 +00:00
|
|
|
|
2018-03-13 12:47:03 +00:00
|
|
|
GST_MPEGTS_API
|
2013-07-03 15:59:02 +00:00
|
|
|
GType gst_mpegts_sdt_service_get_type (void);
|
|
|
|
|
2018-03-13 12:47:03 +00:00
|
|
|
GST_MPEGTS_API
|
2014-06-25 12:50:05 +00:00
|
|
|
const GstMpegtsSDT *gst_mpegts_section_get_sdt (GstMpegtsSection *section);
|
2013-07-03 15:59:02 +00:00
|
|
|
|
2018-03-13 12:47:03 +00:00
|
|
|
GST_MPEGTS_API
|
2014-06-25 12:50:05 +00:00
|
|
|
GstMpegtsSection *gst_mpegts_section_from_sdt (GstMpegtsSDT * sdt);
|
2014-02-22 15:47:57 +00:00
|
|
|
|
2018-03-13 12:47:03 +00:00
|
|
|
GST_MPEGTS_API
|
2014-06-25 12:50:05 +00:00
|
|
|
GstMpegtsSDT *gst_mpegts_sdt_new (void);
|
2017-07-18 00:10:56 +00:00
|
|
|
|
2018-03-13 12:47:03 +00:00
|
|
|
GST_MPEGTS_API
|
2014-06-25 12:50:05 +00:00
|
|
|
GstMpegtsSDTService *gst_mpegts_sdt_service_new (void);
|
2014-02-22 15:47:57 +00:00
|
|
|
|
2013-07-03 15:59:02 +00:00
|
|
|
/* EIT */
|
|
|
|
|
|
|
|
#define GST_TYPE_MPEGTS_EIT (gst_mpegts_eit_get_type())
|
|
|
|
#define GST_TYPE_MPEGTS_EIT_EVENT (gst_mpegts_eit_event_get_type())
|
|
|
|
|
2014-06-25 12:50:05 +00:00
|
|
|
typedef struct _GstMpegtsEITEvent GstMpegtsEITEvent;
|
|
|
|
typedef struct _GstMpegtsEIT GstMpegtsEIT;
|
2013-07-03 15:59:02 +00:00
|
|
|
|
|
|
|
/**
|
2014-06-25 12:50:05 +00:00
|
|
|
* GstMpegtsEITEvent:
|
|
|
|
* @descriptors: (element-type GstMpegtsDescriptor): List of descriptors
|
2013-11-08 19:23:27 +00:00
|
|
|
*
|
2014-06-25 12:50:05 +00:00
|
|
|
* Event from a @GstMpegtsEIT
|
2013-07-03 15:59:02 +00:00
|
|
|
*/
|
2014-06-25 12:50:05 +00:00
|
|
|
struct _GstMpegtsEITEvent
|
2013-07-03 15:59:02 +00:00
|
|
|
{
|
|
|
|
guint16 event_id;
|
|
|
|
|
|
|
|
GstDateTime *start_time;
|
|
|
|
guint32 duration;
|
|
|
|
|
2014-06-25 12:50:05 +00:00
|
|
|
GstMpegtsRunningStatus running_status;
|
2013-07-03 15:59:02 +00:00
|
|
|
gboolean free_CA_mode;
|
|
|
|
|
2014-06-24 13:41:36 +00:00
|
|
|
GPtrArray *descriptors;
|
2013-07-03 15:59:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
2014-06-25 12:50:05 +00:00
|
|
|
* GstMpegtsEIT:
|
|
|
|
* @events: (element-type GstMpegtsEITEvent): List of events
|
2013-11-08 19:23:27 +00:00
|
|
|
*
|
2013-07-03 15:59:02 +00:00
|
|
|
* Event Information Table (EN 300 468)
|
2013-11-08 19:23:27 +00:00
|
|
|
*
|
2013-07-03 15:59:02 +00:00
|
|
|
*/
|
2014-06-25 12:50:05 +00:00
|
|
|
struct _GstMpegtsEIT
|
2013-07-03 15:59:02 +00:00
|
|
|
{
|
|
|
|
guint16 transport_stream_id;
|
|
|
|
guint16 original_network_id;
|
|
|
|
guint8 segment_last_section_number;
|
|
|
|
guint8 last_table_id;
|
|
|
|
|
|
|
|
gboolean actual_stream;
|
|
|
|
gboolean present_following;
|
|
|
|
|
|
|
|
GPtrArray *events;
|
|
|
|
};
|
|
|
|
|
2018-03-13 12:47:03 +00:00
|
|
|
GST_MPEGTS_API
|
2013-07-03 15:59:02 +00:00
|
|
|
GType gst_mpegts_eit_get_type (void);
|
2017-07-18 00:10:56 +00:00
|
|
|
|
2018-03-13 12:47:03 +00:00
|
|
|
GST_MPEGTS_API
|
2013-07-03 15:59:02 +00:00
|
|
|
GType gst_mpegts_eit_event_get_type (void);
|
|
|
|
|
2018-03-13 12:47:03 +00:00
|
|
|
GST_MPEGTS_API
|
2014-06-25 12:50:05 +00:00
|
|
|
const GstMpegtsEIT *gst_mpegts_section_get_eit (GstMpegtsSection *section);
|
2013-07-03 15:59:02 +00:00
|
|
|
|
|
|
|
/* TDT */
|
2017-07-18 00:10:56 +00:00
|
|
|
|
2018-03-13 12:47:03 +00:00
|
|
|
GST_MPEGTS_API
|
2014-06-25 12:50:05 +00:00
|
|
|
GstDateTime *gst_mpegts_section_get_tdt (GstMpegtsSection *section);
|
2013-07-03 15:59:02 +00:00
|
|
|
|
|
|
|
/* TOT */
|
|
|
|
|
2014-06-25 12:50:05 +00:00
|
|
|
typedef struct _GstMpegtsTOT GstMpegtsTOT;
|
2013-07-03 15:59:02 +00:00
|
|
|
#define GST_TYPE_MPEGTS_TOT (gst_mpegts_tot_get_type())
|
|
|
|
/**
|
2014-06-25 12:50:05 +00:00
|
|
|
* GstMpegtsTOT:
|
|
|
|
* @descriptors: (element-type GstMpegtsDescriptor): List of descriptors
|
2013-11-08 19:23:27 +00:00
|
|
|
*
|
2013-07-03 15:59:02 +00:00
|
|
|
* Time Offset Table (EN 300 468)
|
2013-11-08 19:23:27 +00:00
|
|
|
*
|
2013-07-03 15:59:02 +00:00
|
|
|
*/
|
2014-06-25 12:50:05 +00:00
|
|
|
struct _GstMpegtsTOT
|
2013-07-03 15:59:02 +00:00
|
|
|
{
|
|
|
|
GstDateTime *utc_time;
|
|
|
|
|
2014-06-24 13:41:36 +00:00
|
|
|
GPtrArray *descriptors;
|
2013-07-03 15:59:02 +00:00
|
|
|
};
|
|
|
|
|
2018-03-13 12:47:03 +00:00
|
|
|
GST_MPEGTS_API
|
2013-07-03 15:59:02 +00:00
|
|
|
GType gst_mpegts_tot_get_type (void);
|
2017-07-18 00:10:56 +00:00
|
|
|
|
2018-03-13 12:47:03 +00:00
|
|
|
GST_MPEGTS_API
|
2014-06-25 12:50:05 +00:00
|
|
|
const GstMpegtsTOT *gst_mpegts_section_get_tot (GstMpegtsSection *section);
|
2013-07-03 15:59:02 +00:00
|
|
|
|
2020-11-22 17:48:08 +00:00
|
|
|
/* SIT */
|
|
|
|
|
|
|
|
typedef struct _GstMpegtsSITService GstMpegtsSITService;
|
|
|
|
/**
|
|
|
|
* GST_TYPE_MPEGTS_SIT_SERVICE:
|
|
|
|
*
|
|
|
|
* Since: 1.20
|
|
|
|
*/
|
|
|
|
#define GST_TYPE_MPEGTS_SIT_SERVICE (gst_mpegts_sit_service_get_type())
|
|
|
|
|
|
|
|
typedef struct _GstMpegtsSIT GstMpegtsSIT;
|
|
|
|
/**
|
|
|
|
* GST_TYPE_MPEGTS_SIT:
|
|
|
|
*
|
|
|
|
* Since: 1.20
|
|
|
|
*/
|
|
|
|
#define GST_TYPE_MPEGTS_SIT (gst_mpegts_sit_get_type())
|
|
|
|
|
|
|
|
/**
|
|
|
|
* GstMpegtsSITService:
|
|
|
|
* @service_id: The Program number this table belongs to
|
|
|
|
* @running_status: Status of this service
|
|
|
|
* @descriptors: (element-type GstMpegtsDescriptor): List of descriptors
|
|
|
|
*
|
|
|
|
* SIT Service entry
|
|
|
|
*
|
|
|
|
* Since: 1.20
|
|
|
|
*/
|
|
|
|
struct _GstMpegtsSITService
|
|
|
|
{
|
|
|
|
guint16 service_id;
|
|
|
|
GstMpegtsRunningStatus running_status;
|
|
|
|
|
|
|
|
GPtrArray *descriptors;
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* GstMpegtsSIT:
|
|
|
|
* @descriptors: (element-type GstMpegtsDescriptor): List of descriptors
|
|
|
|
* @services: (element-type GstMpegtsSITService): List of services
|
|
|
|
*
|
|
|
|
* Selection Information Table (EN 300 468)
|
|
|
|
*
|
|
|
|
* Since: 1.20
|
|
|
|
*/
|
|
|
|
struct _GstMpegtsSIT
|
|
|
|
{
|
|
|
|
GPtrArray *descriptors;
|
|
|
|
GPtrArray *services;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
GST_MPEGTS_API
|
|
|
|
GType gst_mpegts_sit_get_type (void);
|
|
|
|
|
|
|
|
GST_MPEGTS_API
|
|
|
|
GType gst_mpegts_sit_service_get_type (void);
|
|
|
|
|
|
|
|
GST_MPEGTS_API
|
|
|
|
const GstMpegtsSIT *gst_mpegts_section_get_sit (GstMpegtsSection *section);
|
|
|
|
|
|
|
|
|
2014-01-06 15:01:22 +00:00
|
|
|
G_END_DECLS
|
|
|
|
|
2013-07-03 15:59:02 +00:00
|
|
|
#endif /* GST_MPEGTS_SECTION_H */
|