libdvbv5  1.8.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
5  * modify it under the terms of the GNU General Public License
6  * as published by the Free Software Foundation version 2
7  * of the License.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17  * Or, point your browser to http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
18  *
19  * Described on ARIB STD-B10 as TS information descriptor
20  */
21 
42 #ifndef _TS_INFO_H
43 #define _TS_INFO_H
44 
45 #include <libdvbv5/descriptors.h>
46 
57  uint8_t num_of_service;
58 } __attribute__((packed));
59 
78  uint8_t type;
79  uint8_t length;
80  struct dvb_desc *next;
81 
84  uint16_t *service_id;
85 
86  union {
87  uint16_t bitfield;
88  struct {
90  uint8_t length_of_ts_name:6;
92  } __attribute__((packed));
93  };
94 } __attribute__((packed));
95 
96 struct dvb_v5_fe_parms;
97 
98 #ifdef __cplusplus
99 extern "C" {
100 #endif
101 
118 int dvb_desc_ts_info_init(struct dvb_v5_fe_parms *parms,
119  const uint8_t *buf, struct dvb_desc *desc);
120 
129 void dvb_desc_ts_info_print(struct dvb_v5_fe_parms *parms,
130  const struct dvb_desc *desc);
131 
139 void dvb_desc_ts_info_free(struct dvb_desc *desc);
140 
141 #ifdef __cplusplus
142 }
143 #endif
144 
145 #endif
struct dvb_desc_ts_info_transmission_type transmission_type
Definition: desc_ts_info.h:83
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:91
struct dvb_desc * next
Definition: desc_ts_info.h:80
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:55
Keeps data needed to handle the DVB frontend.
Definition: dvb-fe.h:118
Linked list containing the several descriptors found on a MPEG-TS table.
Definition: descriptors.h:118
uint16_t * service_id
Definition: desc_ts_info.h:84
uint8_t transmission_type_count
Definition: desc_ts_info.h:89
uint16_t bitfield
Definition: desc_ts_info.h:87
Structure describing the ISDB TS information descriptor.
Definition: desc_ts_info.h:77
Provides a way to handle MPEG-TS descriptors found on Digital TV streams.
uint8_t length_of_ts_name
Definition: desc_ts_info.h:90