23 #ifndef AVCODEC_PCM_TABLEGEN_H
24 #define AVCODEC_PCM_TABLEGEN_H
31 #define SIGN_BIT (0x80)
32 #define QUANT_MASK (0xf)
35 #define SEG_MASK (0x70)
52 if(seg) t= (t + t + 1 + 32) << (seg + 2);
53 else t= (t + t + 1 ) << 3;
70 t <<= ((unsigned)u_val & SEG_MASK) >>
SEG_SHIFT;
75 #if CONFIG_HARDCODED_TABLES
76 #define pcm_alaw_tableinit()
77 #define pcm_ulaw_tableinit()
78 #include "libavcodec/pcm_tables.h"
85 int (*xlaw2linear)(
unsigned char),
93 v1 = xlaw2linear(i ^ mask);
94 v2 = xlaw2linear((i + 1) ^ mask);
95 v = (v1 + v2 + 4) >> 3;
100 linear_to_xlaw[8192 + j] = (i ^
mask);
102 linear_to_xlaw[8192 - j] = (i ^ (mask ^ 0x80));
105 linear_to_xlaw[0] = linear_to_xlaw[1];