libdvbpsi 0.2.0
dr_42.h
Go to the documentation of this file.
00001 /*****************************************************************************
00002  * dr_42.h
00003  * Copyright (C) 2001-2010 VideoLAN
00004  * $Id$
00005  *
00006  * Authors: Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr>
00007  *          Johan Bilien <jobi@via.ecp.fr>
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 
00036 #ifndef _DVBPSI_DR_42_H_
00037 #define _DVBPSI_DR_42_H_
00038 
00039 #ifdef __cplusplus
00040 extern "C" {
00041 #endif
00042 
00043 
00044 /*****************************************************************************
00045  * dvbpsi_stuffing_dr_t
00046  *****************************************************************************/
00058 typedef struct dvbpsi_stuffing_dr_s
00059 {
00060   uint8_t      i_stuffing_length;            
00062   uint8_t      i_stuffing_byte[255];         
00064 } dvbpsi_stuffing_dr_t;
00065 
00066 
00067 /*****************************************************************************
00068  * dvbpsi_DecodeStuffingDr
00069  *****************************************************************************/
00078 dvbpsi_stuffing_dr_t* dvbpsi_DecodeStuffingDr(
00079                                         dvbpsi_descriptor_t * p_descriptor);
00080 
00081 
00082 /*****************************************************************************
00083  * dvbpsi_GenStuffingDr
00084  *****************************************************************************/
00095 dvbpsi_descriptor_t * dvbpsi_GenStuffingDr(
00096                                         dvbpsi_stuffing_dr_t * p_decoded,
00097                                         int b_duplicate);
00098 
00099 
00100 #ifdef __cplusplus
00101 };
00102 #endif
00103 
00104 #else
00105 #error "Multiple inclusions of dr_42.h"
00106 #endif
00107