1 /* ------------------------------------------------------------------ 2 * Copyright (C) 1998-2009 PacketVideo 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 13 * express or implied. 14 * See the License for the specific language governing permissions 15 * and limitations under the License. 16 * ------------------------------------------------------------------- 17 */ 18 /* 19 20 Pathname: chans.h 21 22 ------------------------------------------------------------------------------ 23 REVISION HISTORY 24 25 Description: Placed file in the correct template format. 26 27 ------------------------------------------------------------------------------ 28 INCLUDE DESCRIPTION 29 30 ------------------------------------------------------------------------------ 31 */ 32 33 /*---------------------------------------------------------------------------- 34 ; CONTINUE ONLY IF NOT ALREADY DEFINED 35 ----------------------------------------------------------------------------*/ 36 #ifndef CHANS_H 37 #define CHANS_H 38 39 #ifdef __cplusplus 40 extern "C" 41 { 42 #endif 43 44 /*---------------------------------------------------------------------------- 45 ; INCLUDES 46 ----------------------------------------------------------------------------*/ 47 #include "pv_audio_type_defs.h" 48 49 /*---------------------------------------------------------------------------- 50 ; MACROS 51 ; Define module specific macros here 52 ----------------------------------------------------------------------------*/ 53 54 /*---------------------------------------------------------------------------- 55 ; DEFINES 56 ; Include all pre-processor statements here. 57 ----------------------------------------------------------------------------*/ 58 /* #define is required in order to use these args in #if () directive */ 59 #define ICChans 0 60 #define DCChans 0 61 #define XCChans 0 62 #define CChans 0 63 64 /*---------------------------------------------------------------------------- 65 ; EXTERNAL VARIABLES REFERENCES 66 ; Declare variables used in this module but defined elsewhere 67 ----------------------------------------------------------------------------*/ 68 69 /*---------------------------------------------------------------------------- 70 ; SIMPLE TYPEDEF'S 71 ----------------------------------------------------------------------------*/ 72 73 /*---------------------------------------------------------------------------- 74 ; ENUMERATED TYPEDEF'S 75 ----------------------------------------------------------------------------*/ 76 enum 77 { 78 /* 79 * channels for 5.1 main profile configuration 80 * (modify for any desired decoder configuration) 81 */ 82 FChans = 2, /* front channels: left, center, right */ 83 FCenter = 0, /* 1 if decoder has front center channel */ 84 SChans = 0, /* side channels: */ 85 BChans = 0, /* back channels: left surround, right surround */ 86 BCenter = 0, /* 1 if decoder has back center channel */ 87 LChans = 0, /* LFE channels */ 88 XChans = 0, /* scratch space for parsing unused channels */ 89 90 Chans = FChans + SChans + BChans + LChans + XChans 91 }; 92 /*---------------------------------------------------------------------------- 93 ; STRUCTURES TYPEDEF'S 94 ----------------------------------------------------------------------------*/ 95 96 97 /*---------------------------------------------------------------------------- 98 ; GLOBAL FUNCTION DEFINITIONS 99 ; Function Prototype declaration 100 ----------------------------------------------------------------------------*/ 101 102 #ifdef __cplusplus 103 } 104 #endif 105 106 #endif /* CHANS_H */ 107 108