00001 /***************************************************************************** 00002 * dr_56.h 00003 * (c)2004-2007 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 program is free software; you can redistribute it and/or 00009 * modify it under the terms of the GNU General Public License 00010 * as published by the Free Software Foundation; either version 2 00011 * of the License, or (at your option) any later version. 00012 * 00013 * This program 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 00016 * GNU General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU General Public License 00019 * along with this program; if not, write to the Free Software 00020 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, 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]; /* 24 bits */ 00059 uint8_t i_teletext_type; /* 5 bits */ 00060 uint8_t i_teletext_magazine_number; /* 3 bits */ 00061 uint8_t i_teletext_page_number; /* 8 bits */ 00062 00063 } dvbpsi_teletextpage_t; 00064 00065 00066 /***************************************************************************** 00067 * dvbpsi_teletext_dr_t 00068 *****************************************************************************/ 00080 typedef struct dvbpsi_teletext_dr_s 00081 { 00082 uint8_t i_pages_number; 00083 dvbpsi_teletextpage_t p_pages[64]; 00084 00085 } dvbpsi_teletext_dr_t; 00086 00087 00088 /***************************************************************************** 00089 * dvbpsi_DecodeTeletextDataDr 00090 *****************************************************************************/ 00099 dvbpsi_teletext_dr_t* dvbpsi_DecodeTeletextDr( 00100 dvbpsi_descriptor_t * p_descriptor); 00101 00102 00103 /***************************************************************************** 00104 * dvbpsi_GenTeletextDr 00105 *****************************************************************************/ 00116 dvbpsi_descriptor_t * dvbpsi_GenTeletextDr( 00117 dvbpsi_teletext_dr_t * p_decoded, 00118 int b_duplicate); 00119 00120 00121 #ifdef __cplusplus 00122 }; 00123 #endif 00124 00125 #else 00126 #error "Multiple inclusions of dr_56.h" 00127 #endif 00128