libdvbv5 1.26.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
24
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
76 uint8_t type;
77 uint8_t length;
78 struct dvb_desc *next;
79
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
91} __attribute__((packed));
92
93struct dvb_v5_fe_parms;
94
95#ifdef __cplusplus
96extern "C" {
97#endif
98
115 const uint8_t *buf,
116 struct dvb_desc *desc);
117
126 const struct dvb_desc *desc);
127
135
136#ifdef __cplusplus
137}
138#endif
139
140#endif
Provides a way to handle MPEG-TS descriptors found on Digital TV streams.
void atsc_desc_service_location_free(struct dvb_desc *desc)
Frees all data allocated by the service location descriptor.
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.
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.
service location elementary descriptors
Describes the elementary streams inside a PAT table for ATSC.
struct atsc_desc_service_location_elementary * elementary
Linked list containing the several descriptors found on a MPEG-TS table.
Keeps data needed to handle the DVB frontend.
Definition dvb-fe.h:117