libdvbv5 1.24.1 Library to work with Digital TV devices on Linux

desc_atsc_service_location.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 */
19
20#ifndef _ATSC_SERVICE_LOCATION_H
21#define _ATSC_SERVICE_LOCATION_H
22
23#include <libdvbv5/descriptors.h>
24
51 struct atsc_desc_service_location_elementary {
52 uint8_t stream_type;
53 union {
54 uint16_t bitfield;
55 struct {
56 uint16_t elementary_pid:13;
57 uint16_t reserved:3;
58 } __attribute__((packed));
59 } __attribute__((packed));
60 unsigned char ISO_639_language_code[3];
61} __attribute__((packed));
62
75 struct atsc_desc_service_location {
76 uint8_t type;
77 uint8_t length;
78 struct dvb_desc *next;
79
80 struct atsc_desc_service_location_elementary *elementary;
81
82 union {
83 uint16_t bitfield;
84 struct {
85 uint16_t pcr_pid:13;
86 uint16_t reserved:3;
87 } __attribute__((packed));
88 } __attribute__((packed));
89
90 uint8_t number_elements;
91} __attribute__((packed));
92
93 struct dvb_v5_fe_parms;
94
95#ifdef __cplusplus
96 extern "C" {
97#endif
98
114 int atsc_desc_service_location_init(struct dvb_v5_fe_parms *parms,
115 const uint8_t *buf,
116 struct dvb_desc *desc);
117
125 void atsc_desc_service_location_print(struct dvb_v5_fe_parms *parms,
126 const struct dvb_desc *desc);
127
134 void atsc_desc_service_location_free(struct dvb_desc *desc);
135
136#ifdef __cplusplus
137}
138#endif
139
140#endif
descriptors.h
Provides a way to handle MPEG-TS descriptors found on Digital TV streams.
atsc_desc_service_location_free
void atsc_desc_service_location_free(struct dvb_desc *desc)
Frees all data allocated by the service location descriptor.
atsc_desc_service_location_print
void atsc_desc_service_location_print(struct dvb_v5_fe_parms *parms, const struct dvb_desc *desc)
Prints the content of the service location descriptor.
atsc_desc_service_location_init
int atsc_desc_service_location_init(struct dvb_v5_fe_parms *parms, const uint8_t *buf, struct dvb_desc *desc)
Initializes and parses the service location descriptor.
atsc_desc_service_location_elementary
service location elementary descriptors
Definition: desc_atsc_service_location.h:51
atsc_desc_service_location_elementary::ISO_639_language_code
unsigned char ISO_639_language_code[3]
Definition: desc_atsc_service_location.h:60
atsc_desc_service_location_elementary::stream_type
uint8_t stream_type
Definition: desc_atsc_service_location.h:52
atsc_desc_service_location_elementary::bitfield
uint16_t bitfield
Definition: desc_atsc_service_location.h:54
atsc_desc_service_location_elementary::reserved
uint16_t reserved
Definition: desc_atsc_service_location.h:57
atsc_desc_service_location_elementary::elementary_pid
uint16_t elementary_pid
Definition: desc_atsc_service_location.h:56
atsc_desc_service_location
Describes the elementary streams inside a PAT table for ATSC.
Definition: desc_atsc_service_location.h:75
atsc_desc_service_location::number_elements
uint8_t number_elements
Definition: desc_atsc_service_location.h:90
atsc_desc_service_location::bitfield
uint16_t bitfield
Definition: desc_atsc_service_location.h:83
atsc_desc_service_location::next
struct dvb_desc * next
Definition: desc_atsc_service_location.h:78
atsc_desc_service_location::elementary
struct atsc_desc_service_location_elementary * elementary
Definition: desc_atsc_service_location.h:80
atsc_desc_service_location::type
uint8_t type
Definition: desc_atsc_service_location.h:76
atsc_desc_service_location::pcr_pid
uint16_t pcr_pid
Definition: desc_atsc_service_location.h:85
atsc_desc_service_location::length
uint8_t length
Definition: desc_atsc_service_location.h:77
atsc_desc_service_location::reserved
uint16_t reserved
Definition: desc_atsc_service_location.h:86
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