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 21 PacketVideo Corp. 22 MP3 Decoder Library 23 24 Pathname: ./include/pvmp3_mdct_18.h 25 26 Date: 09/21/2007 27 28 ------------------------------------------------------------------------------ 29 REVISION HISTORY 30 31 32 Description: 33 34 ------------------------------------------------------------------------------ 35 INCLUDE DESCRIPTION 36 37 This include file defines function mdct_18, dct9, mdct_6 and dct_6 38 39 ------------------------------------------------------------------------------ 40 */ 41 42 /*---------------------------------------------------------------------------- 43 ; CONTINUE ONLY IF NOT ALREADY DEFINED 44 ----------------------------------------------------------------------------*/ 45 #ifndef MDCT_18_H 46 #define MDCT_18_H 47 48 /*---------------------------------------------------------------------------- 49 ; INCLUDES 50 ----------------------------------------------------------------------------*/ 51 #include "pvmp3_audio_type_defs.h" 52 53 /*---------------------------------------------------------------------------- 54 ; MACROS 55 ; Define module specific macros here 56 ----------------------------------------------------------------------------*/ 57 58 /*---------------------------------------------------------------------------- 59 ; DEFINES 60 ; Include all pre-processor statements here. 61 ----------------------------------------------------------------------------*/ 62 #define Qfmt(a) (Int32)((a)*((Int32)1<<28) ) 63 #define Qfmt1(a) (Int32)((a)*((Int32)0x7FFFFFFF)) 64 #define Qfmt2(a) (Int32)((a)*((Int32)1<<27)) 65 66 /*---------------------------------------------------------------------------- 67 ; EXTERNAL VARIABLES REFERENCES 68 ; Declare variables used in this module but defined elsewhere 69 ----------------------------------------------------------------------------*/ 70 71 /*---------------------------------------------------------------------------- 72 ; SIMPLE TYPEDEF'S 73 ----------------------------------------------------------------------------*/ 74 75 /*---------------------------------------------------------------------------- 76 ; ENUMERATED TYPEDEF'S 77 ----------------------------------------------------------------------------*/ 78 79 /*---------------------------------------------------------------------------- 80 ; STRUCTURES TYPEDEF'S 81 ----------------------------------------------------------------------------*/ 82 83 /*---------------------------------------------------------------------------- 84 ; GLOBAL FUNCTION DEFINITIONS 85 ; Function Prototype declaration 86 ----------------------------------------------------------------------------*/ 87 #ifdef __cplusplus 88 extern "C" 89 { 90 #endif 91 92 void pvmp3_mdct_18(int32 vec[], int32 *history, const int32 *window); 93 94 void pvmp3_dct_9(int32 vec[]); 95 96 void pvmp3_mdct_6(int32 vec[], int32 *overlap); 97 98 void pvmp3_dct_6(int32 vec[]); 99 100 #ifdef __cplusplus 101 } 102 #endif 103 104 /*---------------------------------------------------------------------------- 105 ; END 106 ----------------------------------------------------------------------------*/ 107 #endif 108 109 110