misc/libtremor/tremor/lsp_lookup.h
changeset 7849 a12155461b34
parent 7697 767d3c4153a1
equal deleted inserted replaced
7848:775a72905708 7849:a12155461b34
    17 
    17 
    18 #ifndef _V_LOOKUP_DATA_H_
    18 #ifndef _V_LOOKUP_DATA_H_
    19 #define _V_LOOKUP_DATA_H_
    19 #define _V_LOOKUP_DATA_H_
    20 
    20 
    21 #include "os_types.h"
    21 #include "os_types.h"
       
    22 
       
    23 #define FROMdB_LOOKUP_SZ 35
       
    24 #define FROMdB2_LOOKUP_SZ 32
       
    25 #define FROMdB_SHIFT 5
       
    26 #define FROMdB2_SHIFT 3
       
    27 #define FROMdB2_MASK 31
       
    28 
       
    29 static const ogg_int32_t FROMdB_LOOKUP[FROMdB_LOOKUP_SZ]={
       
    30   0x003fffff, 0x0028619b, 0x00197a96, 0x0010137a,
       
    31   0x000a24b0, 0x00066666, 0x000409c3, 0x00028c42,
       
    32   0x00019b8c, 0x000103ab, 0x0000a3d7, 0x00006760,
       
    33   0x0000413a, 0x00002928, 0x000019f8, 0x00001062,
       
    34   0x00000a56, 0x00000686, 0x0000041e, 0x00000299,
       
    35   0x000001a3, 0x00000109, 0x000000a7, 0x00000069,
       
    36   0x00000042, 0x0000002a, 0x0000001a, 0x00000011,
       
    37   0x0000000b, 0x00000007, 0x00000004, 0x00000003,
       
    38   0x00000002, 0x00000001, 0x00000001};
       
    39 
       
    40 static const ogg_int32_t FROMdB2_LOOKUP[FROMdB2_LOOKUP_SZ]={
       
    41   0x000001fc, 0x000001f5, 0x000001ee, 0x000001e7,
       
    42   0x000001e0, 0x000001d9, 0x000001d2, 0x000001cc,
       
    43   0x000001c5, 0x000001bf, 0x000001b8, 0x000001b2,
       
    44   0x000001ac, 0x000001a6, 0x000001a0, 0x0000019a,
       
    45   0x00000194, 0x0000018e, 0x00000188, 0x00000183,
       
    46   0x0000017d, 0x00000178, 0x00000172, 0x0000016d,
       
    47   0x00000168, 0x00000163, 0x0000015e, 0x00000159,
       
    48   0x00000154, 0x0000014f, 0x0000014a, 0x00000145,
       
    49 };
    22 
    50 
    23 #define INVSQ_LOOKUP_I_SHIFT 10
    51 #define INVSQ_LOOKUP_I_SHIFT 10
    24 #define INVSQ_LOOKUP_I_MASK 1023
    52 #define INVSQ_LOOKUP_I_MASK 1023
    25 static const long INVSQ_LOOKUP_I[64+1]={
    53 static const long INVSQ_LOOKUP_I[64+1]={
    26 	   92682,   91966,   91267,   90583,
    54 	   92682,   91966,   91267,   90583,