libdvbv5  1.11.0
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 <m.chehab@samsung.com>
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 
56  uint8_t num_of_service;
57 } __attribute__((packed));
58 
77  uint8_t type;
78  uint8_t length;
79  struct dvb_desc *next;
80 
83  uint16_t *service_id;
84 
85  union {
86  uint16_t bitfield;
87  struct {
89  uint8_t length_of_ts_name:6;
91  } __attribute__((packed));
92  };
93 } __attribute__((packed));
94 
95 struct dvb_v5_fe_parms;
96 
97 #ifdef __cplusplus
98 extern "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
struct dvb_desc_ts_info_transmission_type transmission_type
Definition: desc_ts_info.h:82
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.
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.
uint8_t remote_control_key_id
Definition: desc_ts_info.h:90
struct dvb_desc * next
Definition: desc_ts_info.h:79
void dvb_desc_ts_info_free(struct dvb_desc *desc)
Frees all data allocated by the ISDB TS information descriptor.
ISDB TS information transmission type.
Definition: desc_ts_info.h:54
Keeps data needed to handle the DVB frontend.
Definition: dvb-fe.h:117
Linked list containing the several descriptors found on a MPEG-TS table.
Definition: descriptors.h:117
uint16_t * service_id
Definition: desc_ts_info.h:83
uint8_t transmission_type_count
Definition: desc_ts_info.h:88
uint16_t bitfield
Definition: desc_ts_info.h:86
Structure describing the ISDB TS information descriptor.
Definition: desc_ts_info.h:76
Provides a way to handle MPEG-TS descriptors found on Digital TV streams.
uint8_t length_of_ts_name
Definition: desc_ts_info.h:89