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: ./include/apply_tns.h 21 22 ------------------------------------------------------------------------------ 23 REVISION HISTORY 24 25 Description: Updated per review comments. 26 27 Description: Changed function prototype to mirror changes made in apply_tns.c 28 29 Description: The scratch memory was mistakenly declared here as type "Int32" 30 It should have been "Int" 31 32 Who: Date: 33 Description: 34 35 36 ------------------------------------------------------------------------------ 37 INCLUDE DESCRIPTION 38 39 This include file contains the function declaration for 40 apply_tns.c 41 42 ------------------------------------------------------------------------------ 43 */ 44 45 /*---------------------------------------------------------------------------- 46 ; CONTINUE ONLY IF NOT ALREADY DEFINED 47 ----------------------------------------------------------------------------*/ 48 #ifndef APPLY_TNS_H 49 #define APPLY_TNS_H 50 51 /*---------------------------------------------------------------------------- 52 ; INCLUDES 53 ----------------------------------------------------------------------------*/ 54 #include "pv_audio_type_defs.h" 55 #include "s_tns_frame_info.h" 56 #include "s_frameinfo.h" 57 58 /*---------------------------------------------------------------------------- 59 ; MACROS 60 ; Define module specific macros here 61 ----------------------------------------------------------------------------*/ 62 63 /*---------------------------------------------------------------------------- 64 ; DEFINES 65 ; Include all pre-processor statements here. 66 ----------------------------------------------------------------------------*/ 67 68 /*---------------------------------------------------------------------------- 69 ; EXTERNAL VARIABLES REFERENCES 70 ; Declare variables used in this module but defined elsewhere 71 ----------------------------------------------------------------------------*/ 72 73 /*---------------------------------------------------------------------------- 74 ; SIMPLE TYPEDEF'S 75 ----------------------------------------------------------------------------*/ 76 77 /*---------------------------------------------------------------------------- 78 ; ENUMERATED TYPEDEF'S 79 ----------------------------------------------------------------------------*/ 80 81 /*---------------------------------------------------------------------------- 82 ; STRUCTURES TYPEDEF'S 83 ----------------------------------------------------------------------------*/ 84 85 /*---------------------------------------------------------------------------- 86 ; GLOBAL FUNCTION DEFINITIONS 87 ; Function Prototype declaration 88 ----------------------------------------------------------------------------*/ 89 90 #ifdef __cplusplus 91 extern "C" 92 { 93 #endif 94 95 void apply_tns( 96 Int32 coef[], 97 Int q_format[], 98 const FrameInfo * const pFrameInfo, 99 TNS_frame_info * const pTNS_frame_info, 100 const Bool inverse_flag, 101 Int32 scratch_Int_buffer[]); 102 103 104 #ifdef __cplusplus 105 } 106 #endif 107 108 /*---------------------------------------------------------------------------- 109 ; END 110 ----------------------------------------------------------------------------*/ 111 #endif 112 113 114