00001 /***************************************************************************** 00002 * dr_56.h 00003 * (c)2004 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 00033 #ifndef _DVBPSI_DR_56_H_ 00034 #define _DVBPSI_DR_56_H_ 00035 00036 #ifdef __cplusplus 00037 extern "C" { 00038 #endif 00039 00040 /***************************************************************************** 00041 * dvbpsi_teletext_t 00042 *****************************************************************************/ 00054 typedef struct dvbpsi_teletextpage_s 00055 { 00056 uint8_t i_iso6392_language_code[3]; /* 24 bits */ 00057 uint8_t i_teletext_type; /* 5 bits */ 00058 uint8_t i_teletext_magazine_number; /* 3 bits */ 00059 uint8_t i_teletext_page_number; /* 8 bits */ 00060 00061 } dvbpsi_teletextpage_t; 00062 00063 00064 /***************************************************************************** 00065 * dvbpsi_teletext_dr_t 00066 *****************************************************************************/ 00078 typedef struct dvbpsi_teletext_dr_s 00079 { 00080 uint8_t i_pages_number; 00081 dvbpsi_teletextpage_t p_pages[64]; 00082 00083 } dvbpsi_teletext_dr_t; 00084 00085 00086 /***************************************************************************** 00087 * dvbpsi_DecodeTeletextDataDr 00088 *****************************************************************************/ 00097 dvbpsi_teletext_dr_t* dvbpsi_DecodeTeletextDataDr( 00098 dvbpsi_descriptor_t * p_descriptor); 00099 00100 00101 /***************************************************************************** 00102 * dvbpsi_GenTeletextDr 00103 *****************************************************************************/ 00114 dvbpsi_descriptor_t * dvbpsi_GenTeletextDr( 00115 dvbpsi_teletext_dr_t * p_decoded, 00116 int b_duplicate); 00117 00118 00119 #ifdef __cplusplus 00120 }; 00121 #endif 00122 00123 #else 00124 #error "Multiple inclusions of dr_56.h" 00125 #endif 00126