libdvbv5  1.10.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 <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  */
20 
21 #ifndef _ATSC_SERVICE_LOCATION_H
22 #define _ATSC_SERVICE_LOCATION_H
23 
24 #include <libdvbv5/descriptors.h>
25 
53  uint8_t stream_type;
54  union {
55  uint16_t bitfield;
56  struct {
57  uint16_t elementary_pid:13;
58  uint16_t reserved:3;
59  } __attribute__((packed));
60  } __attribute__((packed));
62 } __attribute__((packed));
63 
77  uint8_t type;
78  uint8_t length;
79  struct dvb_desc *next;
80 
82 
83  union {
84  uint16_t bitfield;
85  struct {
86  uint16_t pcr_pid:13;
87  uint16_t reserved:3;
88  } __attribute__((packed));
89  } __attribute__((packed));
90 
91  uint8_t number_elements;
92 } __attribute__((packed));
93 
94 struct dvb_v5_fe_parms;
95 
96 #ifdef __cplusplus
97 extern "C" {
98 #endif
99 
116  const uint8_t *buf,
117  struct dvb_desc *desc);
118 
127  const struct dvb_desc *desc);
128 
135 void atsc_desc_service_location_free(struct dvb_desc *desc);
136 
137 #ifdef __cplusplus
138 }
139 #endif
140 
141 #endif
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.
void atsc_desc_service_location_free(struct dvb_desc *desc)
Frees all data allocated by 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.
Describes the elementary streams inside a PAT table for ATSC.
Keeps data needed to handle the DVB frontend.
Definition: dvb-fe.h:118
struct atsc_desc_service_location_elementary * elementary
Linked list containing the several descriptors found on a MPEG-TS table.
Definition: descriptors.h:118
service location elementary descriptors
Provides a way to handle MPEG-TS descriptors found on Digital TV streams.