?? biaridecod.h
字號(hào):
/***************************************************************************
*
* Module : biaridecod.h
*
* Authors : Detlev Marpe
* Gabi Bl鋞termann
*
*
* Date : 21. Oct 2000
*
* Description : Headerfile for
* binary arithmetic
* decoder routines
*
* Copyright (C) 2000 HEINRICH HERTZ INSTITUTE All Rights Reserved.
*
**************************************************************************
*/
#ifndef _BIARIDECOD_H_
#define _BIARIDECOD_H_
#define AAC_FRAC_TABLE 0 /* replaces division in the AC by a table lookup
IMPORTANT NOTE: Should be changed according to
the definition in the encoder */
/************************************************************************
* C o n s t a n t s
***********************************************************************
*/
/* precision for arithmetic */
#define CODE_VALUE_BITS 16
/* 1/4 2/4 3/4 of interval */
#define FIRST_QTR 0x4000 //(1<<(CODE_VALUE_BITS-2))
#define HALF 0x8000 //(FIRST_QTR+FIRST_QTR)
#define THIRD_QTR 0xC000 //(HALF+FIRST_QTR)
/* maximum value of range */
#define TOP_VALUE 0xFFFF //((1<<CODE_VALUE_BITS)-1)
#ifdef AAC_FRAC_TABLE
// ARITH_CUM_FREQ_TABLE[i]=(unsigned int)((pow(2,26)/i)+0.5);
const unsigned int ARITH_CUM_FREQ_TABLE[128] =
{
0, 0, 33554432, 22369621, 16777216, 13421773, 11184811, 9586981, 8388608, 7456540,
6710886, 6100806, 5592405, 5162220, 4793490, 4473924, 4194304, 3947580, 3728270, 3532045,
3355443, 3195660, 3050403, 2917777, 2796203, 2684355, 2581110, 2485513, 2396745, 2314099,
2236962, 2164802, 2097152, 2033602, 1973790, 1917396, 1864135, 1813753, 1766023, 1720740,
1677722, 1636802, 1597830, 1560671, 1525201, 1491308, 1458888, 1427848, 1398101, 1369569,
1342177, 1315860, 1290555, 1266205, 1242757, 1220161, 1198373, 1177348, 1157049, 1137438,
1118481, 1100145, 1082401, 1065220, 1048576, 1032444, 1016801, 1001625, 986895, 972592,
958698, 945195, 932068, 919300, 906877, 894785, 883011, 871544, 860370, 849479,
838861, 828504, 818401, 808541, 798915, 789516, 780336, 771366, 762601, 754032,
745654, 737460, 729444, 721601, 713924, 706409, 699051, 691844, 684784, 677867,
671089, 664444, 657930, 651542, 645278, 639132, 633102, 627186, 621378, 615678,
610081, 604584, 599186, 593884, 588674, 583555, 578525, 573580, 568719, 563940,
559241, 554619, 550073, 545601, 541201, 536871, 532610, 528416
};
#endif
/************************************************************************
* D e f i n i t i o n s
***********************************************************************
*/
/* some definitions to increase the readability of the source code below */
//#define Dlow (dep->Dlow)
//#define Dhigh (dep->Dhigh)
//#define Dvalue (dep->Dvalue)
#define Dbuffer (dep->Dbuffer)
#define Dbits_to_go (dep->Dbits_to_go)
#define Dcodestrm (dep->Dcodestrm)
#define Dcodestrm_len (dep->Dcodestrm_len)
#endif /* BIARIDECOD_H */
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -