| 1 | /* |
| 2 | ** Copyright 2003-2010, VisualOn, Inc. |
| 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 express or implied. |
| 13 | ** See the License for the specific language governing permissions and |
| 14 | ** limitations under the License. |
| 15 | */ |
| 16 | /******************************************************************************* |
| 17 | File: adj_thr.h |
| 18 | |
| 19 | Content: Threshold compensation function |
| 20 | |
| 21 | *******************************************************************************/ |
| 22 | |
| 23 | #ifndef __ADJ_THR_H |
| 24 | #define __ADJ_THR_Hcxx . . $ `aacenc/inc/adj_thr.h:24:9`! |
| 25 | |
| 26 | #include "adj_thr_data.h"cxx . . $ `<file>/aacenc/inc/adj_thr_data.h`/ |
| 27 | #include "qc_data.h"cxx . . $ `<file>/aacenc/inc/qc_data.h`/ |
| 28 | #include "interface.h"cxx . . $ `<file>/aacenc/inc/interface.h`/ |
| 29 | |
| 30 | Word16cxx . . $ Word16# bits2pecxx . . $ bits2pe(14a1761c3ef4450f).(const Word16cxx . . $ Word16# bits); |
| 31 | |
| 32 | Word32cxx . . $ Word32# AdjThrNewcxx . . $ AdjThrNew(b2b7d47aaee4289).(ADJ_THR_STATEcxx . . $ ADJ_THR_STATE#** phAdjThr, |
| 33 | Word32cxx . . $ Word32# nElements); |
| 34 | |
| 35 | void AdjThrDeletecxx . . $ AdjThrDelete(2e07e1fe63198d2f).(ADJ_THR_STATEcxx . . $ ADJ_THR_STATE# *hAdjThr); |
| 36 | |
| 37 | void AdjThrInitcxx . . $ AdjThrInit(34726fa6bff178e0).(ADJ_THR_STATEcxx . . $ ADJ_THR_STATE# *hAdjThr, |
| 38 | const Word32cxx . . $ Word32# peMean, |
| 39 | Word32cxx . . $ Word32# chBitrate); |
| 40 | |
| 41 | void AdjustThresholdscxx . . $ AdjustThresholds(68b29d085f80395b).(ADJ_THR_STATEcxx . . $ ADJ_THR_STATE# *adjThrState, |
| 42 | ATS_ELEMENTcxx . . $ ATS_ELEMENT#* AdjThrStateElement, |
| 43 | PSY_OUT_CHANNELcxx . . $ PSY_OUT_CHANNEL# psyOutChannel[MAX_CHANNELScxx . . $ `aacenc/inc/config.h:26:9`!], |
| 44 | PSY_OUT_ELEMENTcxx . . $ PSY_OUT_ELEMENT# *psyOutElement, |
| 45 | Word16cxx . . $ Word16# *chBitDistribution, |
| 46 | Word16cxx . . $ Word16# logSfbEnergy[MAX_CHANNELScxx . . $ `aacenc/inc/config.h:26:9`!][MAX_GROUPED_SFBcxx . . $ `aacenc/inc/psy_const.h:67:9`!], |
| 47 | Word16cxx . . $ Word16# sfbNRelevantLines[MAX_CHANNELScxx . . $ `aacenc/inc/config.h:26:9`!][MAX_GROUPED_SFBcxx . . $ `aacenc/inc/psy_const.h:67:9`!], |
| 48 | QC_OUT_ELEMENTcxx . . $ QC_OUT_ELEMENT#* qcOE, |
| 49 | ELEMENT_BITScxx . . $ ELEMENT_BITS#* elBits, |
| 50 | const Word16cxx . . $ Word16# nChannels, |
| 51 | const Word16cxx . . $ Word16# maxBitFac); |
| 52 | |
| 53 | void AdjThrUpdatecxx . . $ AdjThrUpdate(d9e5ef968ef0488b).(ATS_ELEMENTcxx . . $ ATS_ELEMENT# *AdjThrStateElement, |
| 54 | const Word16cxx . . $ Word16# dynBitsUsed); |
| 55 | |
| 56 | |
| 57 | #endif |