libdvbpsi  1.3.0
dr_56.h
Go to the documentation of this file.
00001 /*****************************************************************************
00002  * dr_56.h
00003  * Copyright (C) 2004-2010 VideoLAN
00004  * $Id: dr_56.h 93 2004-10-19 19:17:49Z massiot $
00005  *
00006  * Authors: Derk-Jan Hartman <hartman at videolan dot org>
00007  *
00008  * This library is free software; you can redistribute it and/or
00009  * modify it under the terms of the GNU Lesser General Public
00010  * License as published by the Free Software Foundation; either
00011  * version 2.1 of the License, or (at your option) any later version.
00012  *
00013  * This library is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016  * Lesser General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU Lesser General Public
00019  * License along with this library; if not, write to the Free Software
00020  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00021  *
00022  *****************************************************************************/
00023 
00035 #ifndef _DVBPSI_DR_56_H_
00036 #define _DVBPSI_DR_56_H_
00037 
00038 #ifdef __cplusplus
00039 extern "C" {
00040 #endif
00041 
00042 /*****************************************************************************
00043  * dvbpsi_teletext_t
00044  *****************************************************************************/
00056 typedef struct dvbpsi_teletextpage_s
00057 {
00058   uint8_t      i_iso6392_language_code[3];  
00059   uint8_t      i_teletext_type;             
00060   uint8_t      i_teletext_magazine_number;  
00061   uint8_t      i_teletext_page_number;      
00063 } dvbpsi_teletextpage_t;
00064 
00070 #define DVBPSI_TELETEXT_DR_MAX 51
00071 
00072 /*****************************************************************************
00073  * dvbpsi_teletext_dr_t
00074  *****************************************************************************/
00086 typedef struct dvbpsi_teletext_dr_s
00087 {
00088   uint8_t      i_pages_number;                           
00089   dvbpsi_teletextpage_t p_pages[DVBPSI_TELETEXT_DR_MAX]; 
00091 } dvbpsi_teletext_dr_t;
00092 
00093 /*****************************************************************************
00094  * dvbpsi_DecodeTeletextDataDr
00095  *****************************************************************************/
00104 dvbpsi_teletext_dr_t* dvbpsi_DecodeTeletextDr(
00105                                         dvbpsi_descriptor_t * p_descriptor);
00106 
00107 
00108 /*****************************************************************************
00109  * dvbpsi_GenTeletextDr
00110  *****************************************************************************/
00121 dvbpsi_descriptor_t * dvbpsi_GenTeletextDr(
00122                                         dvbpsi_teletext_dr_t * p_decoded,
00123                                         bool b_duplicate);
00124 
00125 
00126 #ifdef __cplusplus
00127 };
00128 #endif
00129 
00130 #else
00131 #error "Multiple inclusions of dr_56.h"
00132 #endif