/****************************************************************************** * * * Copyright (C) 2023 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * ***************************************************************************** * Originally developed and contributed by Ittiam Systems Pvt. Ltd, Bangalore */ #pragma once #define FD_MODE 2 #define TD_MODE 0 #define MIN_POW -200 #define INDEXOFLOWFREQUENCY 160 #define NFRAMEAHEAD 1 #define AVE_TONAL_LENGTH 100 #define AVE_TONAL_LENGTH_SHORT 10 #define SPECTRAL_TILT_LENGTH 80 #define SPECTRAL_TILT_LENGTH_SHORT 20 #define SMOOTHING_LENGTH 100 #define NO_BORDER 0 #define BORDER_MUSIC_SPEECH 1 #define BORDER_MUSIC_SPEECH_DEFINITE 2 #define BORDER_SPEECH_MUSIC 3 #define BORDER_SPEECH_MUSIC_DEFINITE 4 #define TBD 0 #define SPEECH_DEFINITE 1 #define SPEECH 2 #define MUSIC_DEFINITE 3 #define MUSIC 4 #define LOG_1024_BASE_10 3.01029995664f #define LOG_768_BASE_10 (2.88536122003f) typedef struct { WORD32 smoothing_result_buf[100]; /**