libdvbpsi
1.3.0
|
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; 00059 } dvbpsi_parental_rating_t; 00060 00066 #define DVBPSI_PARENTAL_RATING_DR_MAX 64 00067 00068 /***************************************************************************** 00069 * dvbpsi_parental_rating_dr_t 00070 *****************************************************************************/ 00082 typedef struct dvbpsi_parental_rating_dr_s 00083 { 00084 uint8_t i_ratings_number; 00085 dvbpsi_parental_rating_t 00086 p_parental_rating[DVBPSI_PARENTAL_RATING_DR_MAX]; 00088 } dvbpsi_parental_rating_dr_t; 00089 00090 00091 /***************************************************************************** 00092 * dvbpsi_DecodeParentalRatingDataDr 00093 *****************************************************************************/ 00102 dvbpsi_parental_rating_dr_t* dvbpsi_DecodeParentalRatingDr( 00103 dvbpsi_descriptor_t * p_descriptor); 00104 00105 00106 /***************************************************************************** 00107 * dvbpsi_GenParentalRatingDataDr 00108 *****************************************************************************/ 00119 dvbpsi_descriptor_t * dvbpsi_GenParentalRatingDr( 00120 dvbpsi_parental_rating_dr_t * p_decoded, 00121 bool b_duplicate); 00122 00123 00124 #ifdef __cplusplus 00125 }; 00126 #endif 00127 00128 #else 00129 #error "Multiple inclusions of dr_55.h" 00130 #endif 00131