Home | History | Annotate | Download | only in inc
      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:		sf_estim.h
     18 
     19 	Content:	Scale factor estimation functions
     20 
     21 *******************************************************************************/
     22 
     23 #ifndef __SF_ESTIM_H__
     24 #define __SF_ESTIM_H__
     25 /*
     26    Scale factor estimation
     27  */
     28 #include "psy_const.h"
     29 #include "interface.h"
     30 #include "qc_data.h"
     31 
     32 void
     33 CalcFormFactor(Word16          logSfbFormFactor[MAX_CHANNELS][MAX_GROUPED_SFB],
     34                Word16          sfbNRelevantLines[MAX_CHANNELS][MAX_GROUPED_SFB],
     35                Word16          logSfbEnergy[MAX_CHANNELS][MAX_GROUPED_SFB],
     36                PSY_OUT_CHANNEL psyOutChannel[MAX_CHANNELS],
     37                const Word16    nChannels);
     38 
     39 void
     40 EstimateScaleFactors(PSY_OUT_CHANNEL psyOutChannel[MAX_CHANNELS],
     41                      QC_OUT_CHANNEL  qcOutChannel[MAX_CHANNELS],
     42                      Word16          logSfbEnergy[MAX_CHANNELS][MAX_GROUPED_SFB],
     43                      Word16          logSfbFormFactor[MAX_CHANNELS][MAX_GROUPED_SFB],
     44                      Word16          sfbNRelevantLines[MAX_CHANNELS][MAX_GROUPED_SFB],
     45                      const Word16    nChannels);
     46 #endif