libdvbpsi  1.3.0
dr_59.h
Go to the documentation of this file.
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;         
00062 } dvbpsi_subtitle_t;
00063 
00069 #define DVBPSI_SUBTITLING_DR_MAX 20
00070 
00071 /*****************************************************************************
00072  * dvbpsi_subtitling_dr_t
00073  *****************************************************************************/
00085 typedef struct dvbpsi_subtitling_dr_s
00086 {
00087   uint8_t      i_subtitles_number;  
00088   dvbpsi_subtitle_t p_subtitle[DVBPSI_SUBTITLING_DR_MAX]; 
00090 } dvbpsi_subtitling_dr_t;
00091 
00092 
00093 /*****************************************************************************
00094  * dvbpsi_DecodeSubtitlingDataDr
00095  *****************************************************************************/
00104 dvbpsi_subtitling_dr_t* dvbpsi_DecodeSubtitlingDr(
00105                                         dvbpsi_descriptor_t * p_descriptor);
00106 
00107 
00108 /*****************************************************************************
00109  * dvbpsi_GenSubtitlingDataDr
00110  *****************************************************************************/
00121 dvbpsi_descriptor_t * dvbpsi_GenSubtitlingDr(
00122                                         dvbpsi_subtitling_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_59.h"
00132 #endif
00133