libdvbpsi  1.3.0
dr_81.h
Go to the documentation of this file.
00001 /*
00002 Copyright (C) 2013-2014  Michael Ira Krufky
00003 
00004 This library is free software; you can redistribute it and/or
00005 modify it under the terms of the GNU Lesser General Public
00006 License as published by the Free Software Foundation; either
00007 version 2.1 of the License, or (at your option) any later version.
00008 
00009 This library is distributed in the hope that it will be useful,
00010 but WITHOUT ANY WARRANTY; without even the implied warranty of
00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012 Lesser General Public License for more details.
00013 
00014 You should have received a copy of the GNU Lesser General Public
00015 License along with this library; if not, write to the Free Software
00016 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00017 
00018 dr_81.h
00019 
00020 Decode AC-3 Audio Descriptor.
00021 
00022 */
00023 
00030 #ifndef _DR_81_H
00031 #define _DR_81_H
00032 
00033 #ifdef __cplusplus
00034 extern "C" {
00035 #endif
00036 
00037 /*****************************************************************************
00038  * dvbpsi_ac3_audio_dr_s
00039  *****************************************************************************/
00050 typedef struct dvbpsi_ac3_audio_dr_s
00051 {
00052     uint8_t  i_sample_rate_code; 
00053     uint8_t  i_bsid;             
00054     uint8_t  i_bit_rate_code;    
00055     uint8_t  i_surround_mode;    
00056     uint8_t  i_bsmod;            
00057     uint8_t  i_num_channels;     
00058     int      b_full_svc;         
00059     uint8_t  i_lang_code;        
00060     uint8_t  i_lang_code2;       
00061     uint8_t  i_mainid;           
00062     uint8_t  i_priority;         
00063     uint8_t  i_asvcflags;        
00064     uint8_t  i_textlen;          
00065     int      b_text_code;        
00066     unsigned char text[128];     
00067     int      b_language_flag;    
00068     int      b_language_flag_2;  
00069     uint8_t  language[3];        
00070     uint8_t  language_2[3];      
00071 }dvbpsi_ac3_audio_dr_t;
00072 
00073 /*****************************************************************************
00074  * dvbpsi_DecodeAc3AudioDr
00075  *****************************************************************************/
00083 dvbpsi_ac3_audio_dr_t *dvbpsi_DecodeAc3AudioDr(dvbpsi_descriptor_t *p_descriptor);
00084 
00085 #ifdef __cplusplus
00086 }
00087 #endif
00088 
00089 #endif
00090