libdvbv5: lib/include/libdvbv5/desc_ts_info.h Source File

libdvbv5 1.26.1 Library to work with Digital TV devices on Linux

desc_ts_info.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2013-2014 - Mauro Carvalho Chehab <mchehab@kernel.org>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation version 2.1 of the License.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU Lesser General Public License for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16 * Or, point your browser to http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
17 *
18 * Described on ARIB STD-B10 as TS information descriptor
19 */
20
41#ifndef _TS_INFO_H
42#define _TS_INFO_H
43
44#include <libdvbv5/descriptors.h>
45
54 struct dvb_desc_ts_info_transmission_type {
55 uint8_t transmission_type_info;
56 uint8_t num_of_service;
57} __attribute__((packed));
58
76 struct dvb_desc_ts_info {
77 uint8_t type;
78 uint8_t length;
79 struct dvb_desc *next;
80
81 char *ts_name, *ts_name_emph;
82 struct dvb_desc_ts_info_transmission_type transmission_type;
83 uint16_t *service_id;
84
85 union {
86 uint16_t bitfield;
87 struct {
88 uint8_t transmission_type_count:2;
89 uint8_t length_of_ts_name:6;
90 uint8_t remote_control_key_id:8;
91 } __attribute__((packed));
92 };
93} __attribute__((packed));
94
95struct dvb_v5_fe_parms;
96
97#ifdef __cplusplus
98extern "C" {
99#endif
100
117 int dvb_desc_ts_info_init(struct dvb_v5_fe_parms *parms,
118 const uint8_t *buf, struct dvb_desc *desc);
119
128 void dvb_desc_ts_info_print(struct dvb_v5_fe_parms *parms,
129 const struct dvb_desc *desc);
130
138 void dvb_desc_ts_info_free(struct dvb_desc *desc);
139
140#ifdef __cplusplus
141}
142#endif
143
144#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