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: get_tns.h 21 22 Author: 23 Date: 03/08/2001 24 25 ------------------------------------------------------------------------------ 26 REVISION HISTORY 27 28 Description: 29 (1) Modified to include the lines... 30 31 #ifdef __cplusplus 32 extern "C" { 33 #endif 34 35 #ifdef __cplusplus 36 } 37 #endif 38 39 (2) Updated the copyright header. 40 41 Description: Modified to include updated function declaration, which reflects 42 the combination of the get_tns and tns_setup_filter routines. Also, moved 43 pInputStream to be the 2nd parameter, for a slight optimization. 44 45 Who: Date: 46 Description: 47 48 ------------------------------------------------------------------------------ 49 INCLUDE DESCRIPTION 50 51 This file includes the function definition for get_tns.c 52 53 ------------------------------------------------------------------------------ 54 */ 55 56 /*---------------------------------------------------------------------------- 57 ; CONTINUE ONLY IF NOT ALREADY DEFINED 58 ----------------------------------------------------------------------------*/ 59 #ifndef GET_TNS_H 60 #define GET_TNS_H 61 62 #ifdef __cplusplus 63 extern "C" 64 { 65 #endif 66 67 /*---------------------------------------------------------------------------- 68 ; INCLUDES 69 ----------------------------------------------------------------------------*/ 70 #include "pv_audio_type_defs.h" 71 #include "s_frameinfo.h" 72 #include "s_mc_info.h" 73 #include "s_tns_frame_info.h" 74 #include "s_bits.h" 75 #include "e_window_sequence.h" 76 77 /*---------------------------------------------------------------------------- 78 ; MACROS 79 ; Define module specific macros here 80 ----------------------------------------------------------------------------*/ 81 82 /*---------------------------------------------------------------------------- 83 ; DEFINES 84 ; Include all pre-processor statements here. 85 ----------------------------------------------------------------------------*/ 86 87 /*---------------------------------------------------------------------------- 88 ; EXTERNAL VARIABLES REFERENCES 89 ; Declare variables used in this module but defined elsewhere 90 ----------------------------------------------------------------------------*/ 91 92 /*---------------------------------------------------------------------------- 93 ; SIMPLE TYPEDEF'S 94 ----------------------------------------------------------------------------*/ 95 96 /*---------------------------------------------------------------------------- 97 ; ENUMERATED TYPEDEF'S 98 ----------------------------------------------------------------------------*/ 99 100 /*---------------------------------------------------------------------------- 101 ; STRUCTURES TYPEDEF'S 102 ----------------------------------------------------------------------------*/ 103 104 /*---------------------------------------------------------------------------- 105 ; GLOBAL FUNCTION DEFINITIONS 106 ; Function Prototype declaration 107 ----------------------------------------------------------------------------*/ 108 void get_tns( 109 const Int max_bands, 110 BITS * const pInputStream, 111 const WINDOW_SEQUENCE wnd_seq, 112 const FrameInfo * const pFrameInfo, 113 const MC_Info * const pMC_Info, 114 TNS_frame_info * const pTnsFrameInfo, 115 Int32 scratchTnsDecCoefMem[]); 116 117 118 #ifdef __cplusplus 119 } 120 #endif 121 122 #endif /* GET_TNS_H */ 123 124 125