libdvbpsi
0.2.2
|
00001 /***************************************************************************** 00002 * dr_55.h 00003 * Copyright (C) 2004-2010 VideoLAN 00004 * $Id: dr_55.h 88 2004-02-24 14:31:18Z sam $ 00005 * 00006 * Authors: Christophe Massiot <massiot@via.ecp.fr> 00007 * 00008 * This library is free software; you can redistribute it and/or 00009 * modify it under the terms of the GNU Lesser General Public 00010 * License as published by the Free Software Foundation; either 00011 * version 2.1 of the License, or (at your option) any later version. 00012 * 00013 * This library 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 GNU 00016 * Lesser General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU Lesser General Public 00019 * License along with this library; if not, write to the Free Software 00020 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00021 * 00022 *****************************************************************************/ 00023 00033 #ifndef _DVBPSI_DR_55_H_ 00034 #define _DVBPSI_DR_55_H_ 00035 00036 #ifdef __cplusplus 00037 extern "C" { 00038 #endif 00039 00040 /***************************************************************************** 00041 * dvbpsi_parental_rating_t 00042 *****************************************************************************/ 00054 typedef struct dvbpsi_parental_rating_s 00055 { 00056 uint32_t i_country_code; 00057 uint8_t i_rating; 00058 00059 } dvbpsi_parental_rating_t; 00060 00061 00062 /***************************************************************************** 00063 * dvbpsi_parental_rating_dr_t 00064 *****************************************************************************/ 00076 typedef struct dvbpsi_parental_rating_dr_s 00077 { 00078 uint8_t i_ratings_number; 00079 dvbpsi_parental_rating_t p_parental_rating[64]; 00080 00081 } dvbpsi_parental_rating_dr_t; 00082 00083 00084 /***************************************************************************** 00085 * dvbpsi_DecodeParentalRatingDataDr 00086 *****************************************************************************/ 00095 dvbpsi_parental_rating_dr_t* dvbpsi_DecodeParentalRatingDr( 00096 dvbpsi_descriptor_t * p_descriptor); 00097 00098 00099 /***************************************************************************** 00100 * dvbpsi_GenParentalRatingDataDr 00101 *****************************************************************************/ 00112 dvbpsi_descriptor_t * dvbpsi_GenParentalRatingDr( 00113 dvbpsi_parental_rating_dr_t * p_decoded, 00114 int b_duplicate); 00115 00116 00117 #ifdef __cplusplus 00118 }; 00119 #endif 00120 00121 #else 00122 #error "Multiple inclusions of dr_55.h" 00123 #endif 00124