libdvbpsi
0.2.2
|
00001 /***************************************************************************** 00002 * dr_59.h 00003 * Copyright (C) 2001-2010 VideoLAN 00004 * $Id$ 00005 * 00006 * Authors: Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr> 00007 * Tristan Leteurtre <tristan.leteurtre@anevia.com> 00008 * 00009 * This library is free software; you can redistribute it and/or 00010 * modify it under the terms of the GNU Lesser General Public 00011 * License as published by the Free Software Foundation; either 00012 * version 2.1 of the License, or (at your option) any later version. 00013 * 00014 * This library is distributed in the hope that it will be useful, 00015 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00017 * Lesser General Public License for more details. 00018 * 00019 * You should have received a copy of the GNU Lesser General Public 00020 * License along with this library; if not, write to the Free Software 00021 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00022 * 00023 *****************************************************************************/ 00024 00034 #ifndef _DVBPSI_DR_59_H_ 00035 #define _DVBPSI_DR_59_H_ 00036 00037 #ifdef __cplusplus 00038 extern "C" { 00039 #endif 00040 00041 /***************************************************************************** 00042 * dvbpsi_subtitle_t 00043 *****************************************************************************/ 00055 typedef struct dvbpsi_subtitle_s 00056 { 00057 uint8_t i_iso6392_language_code[3]; 00058 uint8_t i_subtitling_type; 00059 uint16_t i_composition_page_id; 00060 uint16_t i_ancillary_page_id; 00061 00062 } dvbpsi_subtitle_t; 00063 00064 00065 /***************************************************************************** 00066 * dvbpsi_subtitling_dr_t 00067 *****************************************************************************/ 00079 typedef struct dvbpsi_subtitling_dr_s 00080 { 00081 uint8_t i_subtitles_number; 00082 dvbpsi_subtitle_t p_subtitle[20]; 00083 00084 } dvbpsi_subtitling_dr_t; 00085 00086 00087 /***************************************************************************** 00088 * dvbpsi_DecodeSubtitlingDataDr 00089 *****************************************************************************/ 00098 dvbpsi_subtitling_dr_t* dvbpsi_DecodeSubtitlingDr( 00099 dvbpsi_descriptor_t * p_descriptor); 00100 00101 00102 /***************************************************************************** 00103 * dvbpsi_GenSubtitlingDataDr 00104 *****************************************************************************/ 00115 dvbpsi_descriptor_t * dvbpsi_GenSubtitlingDr( 00116 dvbpsi_subtitling_dr_t * p_decoded, 00117 int b_duplicate); 00118 00119 00120 #ifdef __cplusplus 00121 }; 00122 #endif 00123 00124 #else 00125 #error "Multiple inclusions of dr_59.h" 00126 #endif 00127