desc_ts_info.h
Go to the documentation of this file.
/*
* Copyright (c) 2013-2014 - Mauro Carvalho Chehab <mchehab@kernel.org>
*
* 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 version 2.1 of the License.
*
* 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
* Or, point your browser to http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*
* Described on ARIB STD-B10 as TS information descriptor
*/
#ifndef _TS_INFO_H
#define _TS_INFO_H
#include <libdvbv5/descriptors.h>
struct dvb_desc_ts_info_transmission_type {
uint8_t transmission_type_info;
uint8_t num_of_service;
} __attribute__((packed));
struct dvb_desc_ts_info {
uint8_t type;
uint8_t length;
struct dvb_desc *next;
char *ts_name, *ts_name_emph;
struct dvb_desc_ts_info_transmission_type transmission_type;
uint16_t *service_id;
union {
uint16_t bitfield;
struct {
uint8_t transmission_type_count:2;
uint8_t length_of_ts_name:6;
uint8_t remote_control_key_id:8;
} __attribute__((packed));
};
} __attribute__((packed));
struct dvb_v5_fe_parms;
#ifdef __cplusplus
extern "C" {
#endif
int dvb_desc_ts_info_init(struct dvb_v5_fe_parms *parms,
const uint8_t *buf, struct dvb_desc *desc);
void dvb_desc_ts_info_print(struct dvb_v5_fe_parms *parms,
const struct dvb_desc *desc);
void dvb_desc_ts_info_free(struct dvb_desc *desc);
#ifdef __cplusplus
}
#endif
#endif
descriptors.h
Provides a way to handle MPEG-TS descriptors found on Digital TV streams.
dvb_desc_ts_info_free
void dvb_desc_ts_info_free(struct dvb_desc *desc)
Frees all data allocated by the ISDB TS information descriptor.
dvb_desc_ts_info_print
void dvb_desc_ts_info_print(struct dvb_v5_fe_parms *parms, const struct dvb_desc *desc)
Prints the content of the ISDB TS information descriptor.
dvb_desc_ts_info_init
int dvb_desc_ts_info_init(struct dvb_v5_fe_parms *parms, const uint8_t *buf, struct dvb_desc *desc)
Initializes and parses the ISDB TS information descriptor.
dvb_desc_ts_info_transmission_type
ISDB TS information transmission type.
Definition desc_ts_info.h:54
dvb_desc_ts_info_transmission_type::num_of_service
uint8_t num_of_service
Definition desc_ts_info.h:56
dvb_desc_ts_info_transmission_type::transmission_type_info
uint8_t transmission_type_info
Definition desc_ts_info.h:55
dvb_desc_ts_info
Structure describing the ISDB TS information descriptor.
Definition desc_ts_info.h:76
dvb_desc_ts_info::type
uint8_t type
Definition desc_ts_info.h:77
dvb_desc_ts_info::service_id
uint16_t * service_id
Definition desc_ts_info.h:83
dvb_desc_ts_info::length
uint8_t length
Definition desc_ts_info.h:78
dvb_desc_ts_info::transmission_type
struct dvb_desc_ts_info_transmission_type transmission_type
Definition desc_ts_info.h:82
dvb_desc_ts_info::length_of_ts_name
uint8_t length_of_ts_name
Definition desc_ts_info.h:89
dvb_desc_ts_info::transmission_type_count
uint8_t transmission_type_count
Definition desc_ts_info.h:88
dvb_desc_ts_info::ts_name_emph
char * ts_name_emph
Definition desc_ts_info.h:81
dvb_desc_ts_info::ts_name
char * ts_name
Definition desc_ts_info.h:81
dvb_desc_ts_info::next
struct dvb_desc * next
Definition desc_ts_info.h:79
dvb_desc_ts_info::bitfield
uint16_t bitfield
Definition desc_ts_info.h:86
dvb_desc_ts_info::remote_control_key_id
uint8_t remote_control_key_id
Definition desc_ts_info.h:90
dvb_desc
Linked list containing the several descriptors found on a MPEG-TS table.
Definition descriptors.h:117
dvb_v5_fe_parms
Keeps data needed to handle the DVB frontend.
Definition dvb-fe.h:117