low_com.h
来自「ESS3890+SL原代码(1*16内存)」· C头文件 代码 · 共 54 行
H
54 行
/* Copyright 1997, ESS Technology, Inc. *//* SCCSID @(#)low_com.h 1.1 01/23/02 *//* Based on DVD code version 1.4 10/09/01 */#ifndef __LOWRATE_COMMON_H#define __LOWRATE_COMMON_H#include "w_const.h"/*****************************************************************************//* Encoder/Decoder Separation*//*****************************************************************************//* From lowrate_common.c*/#ifdef ENABLE_ALL_ENCOPT/********************************************************************************************//* Support routines for Resampling indexes to those used when the MaskQ's were last updated*//********************************************************************************************//* This more complex setup (with pre-normalization) is required to deal with 56_WMAv2.wma which ends*//* with 1.5 seconds of DC bias at -890. This results in a single large coef at 0 and the rest 0.*//* Then in the noise band, iShift tries to be == 33...*/#define cDitherFactorMR 0x28F5C28F#define MASKQ_RESAMPLE_OFFSET 6typedef struct MaskResampleInfo{ Int iMaskResampleRatio; Int iMaskResampleRatioPow; Int cValidBarkBandLatestUpdate;} MaskResampleInfo;Int FloatFromFastFloat( FastFloat fflt );void ffltMaskPower10( Int iMaskQ , FastFloat *fflt);Int iUnResampleIndex( Int iResampled, const MaskResampleInfo MRI );Int prvScanForNextBarkIndex( const Int iRecon, Int* piBarkResampled, const int iHighLimit, const Int* const rgiBarkIndexResampled, const MaskResampleInfo MRI );Int iResampleIndex( Int iRecon, const MaskResampleInfo MRI );void CoefPlusNoiseInvQuant( const Int iRecon, const Int iCoefQ, I32 qrand, const Int* rgiCoefQ, I32* rgiCoefRecon, FastFloat ffltQuantizer, Int iShift );void FASTFLOAT_MULT(FastFloat ffltA, FastFloat ffltB , FastFloat *out);void FASTFLOAT_ADD(FastFloat ffltA, FastFloat ffltB, FastFloat *out);void FastFloat_Div(FastFloat a, FastFloat b, FastFloat *out);int FASTFLOAT_CMP(FastFloat ffltA, FastFloat ffltB);int int_sqrt(int x);#endif /* ENABLE_ALL_ENCOPT*/#endif /* __LOWRATE_COMMON_H*/
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?