desc_atsc_service_location.h
Go to the documentation of this file.
/*
* Copyright (c) 2013-2014 - Mauro Carvalho Chehab <mchehab@kernel.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation version 2.1 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
* Or, point your browser to http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*
*/
#ifndef _ATSC_SERVICE_LOCATION_H
#define _ATSC_SERVICE_LOCATION_H
#include <libdvbv5/descriptors.h>
struct atsc_desc_service_location_elementary {
uint8_t stream_type;
union {
uint16_t bitfield;
struct {
uint16_t elementary_pid:13;
uint16_t reserved:3;
} __attribute__((packed));
} __attribute__((packed));
unsigned char ISO_639_language_code[3];
} __attribute__((packed));
struct atsc_desc_service_location {
uint8_t type;
uint8_t length;
struct dvb_desc *next;
struct atsc_desc_service_location_elementary *elementary;
union {
uint16_t bitfield;
struct {
uint16_t pcr_pid:13;
uint16_t reserved:3;
} __attribute__((packed));
} __attribute__((packed));
uint8_t number_elements;
} __attribute__((packed));
struct dvb_v5_fe_parms;
#ifdef __cplusplus
extern "C" {
#endif
int atsc_desc_service_location_init(struct dvb_v5_fe_parms *parms,
const uint8_t *buf,
struct dvb_desc *desc);
void atsc_desc_service_location_print(struct dvb_v5_fe_parms *parms,
const struct dvb_desc *desc);
void atsc_desc_service_location_free(struct dvb_desc *desc);
#ifdef __cplusplus
}
#endif
#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