libdvbpsi  0.2.2
dr_45.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * dr_45.h
3  * Copyright (C) 2004-2010 VideoLAN
4  * $Id$
5  *
6  * Authors: Jean-Paul Saman <jpsaman@videolan.org>
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2.1 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21  *
22  *****************************************************************************/
23 
35 #ifndef _DVBPSI_DR_45_H_
36 #define _DVBPSI_DR_45_H_
37 
38 #ifdef __cplusplus
39 extern "C" {
40 #endif
41 
42 /*****************************************************************************
43  * dvbpsi_vbidata_line_t
44  *****************************************************************************/
56 typedef struct dvbpsi_vbidata_line_s
57 {
58  uint8_t i_parity; /* 1 bits */
59  uint8_t i_line_offset; /* 5 bits */
60 
62 
63 /*****************************************************************************
64  * dvbpsi_vbidata_t
65  *****************************************************************************/
77 typedef struct dvbpsi_vbidata_s
78 {
79  uint8_t i_data_service_id; /* 8 bits */
80  uint8_t i_lines;
81  dvbpsi_vbidata_line_t p_lines[255];
82 
84 
85 /*****************************************************************************
86  * dvbpsi_vbi_dr_t
87  *****************************************************************************/
99 typedef struct dvbpsi_vbi_dr_s
100 {
101  uint8_t i_services_number;
102  dvbpsi_vbidata_t p_services[85];
103 
105 
106 
107 /*****************************************************************************
108  * dvbpsi_DecodeVBIDataDr
109  *****************************************************************************/
119  dvbpsi_descriptor_t * p_descriptor);
120 
121 
122 /*****************************************************************************
123  * dvbpsi_GenVBIDataDr
124  *****************************************************************************/
136  dvbpsi_vbi_dr_t * p_decoded,
137  int b_duplicate);
138 
139 #ifdef __cplusplus
140 };
141 #endif
142 
143 #else
144 #error "Multiple inclusions of dr_45.h"
145 #endif