45 2048, 2093, 2139, 2186, 2233, 2282, 2332, 2383,
46 2435, 2489, 2543, 2599, 2656, 2714, 2774, 2834,
47 2896, 2960, 3025, 3091, 3158, 3228, 3298, 3371,
48 3444, 3520, 3597, 3676, 3756, 3838, 3922, 4008
56 -60, 3042, 1198, 538, 334, 172, 58, -30,
57 3042, 1198, 538, 334, 172, 58, -30, -60
60 0, -2557, -1612, -1121, -786, -530, -323, -150,
61 2557, 1612, 1121, 786, 530, 323, 150, 0
64 -17, -17, -17, -17, -3101, -2738, -2376, -2088,
65 -1873, -1689, -1535, -1399, -1279, -1170, -1072, -982,
66 -899, -822, -750, -682, -618, -558, -501, -447,
67 -396, -347, -300, -254, -211, -170, -130, -91,
68 3101, 2738, 2376, 2088, 1873, 1689, 1535, 1399,
69 1279, 1170, 1072, 982, 899, 822, 750, 682,
70 618, 558, 501, 447, 396, 347, 300, 254,
71 211, 170, 130, 91, 54, 17, -54, -17
80 3, -11, 12, 32, -210, 951, 3876, -805, 362, -156, 53, -11,
92 int sg[2], limit, i, cur_qtzd_reconst;
94 const int cur_part_reconst = band->s_zero + cur_diff < 0;
96 sg[0] =
sign_lookup[cur_part_reconst != band->part_reconst_mem[0]];
97 sg[1] =
sign_lookup[cur_part_reconst == band->part_reconst_mem[1]];
98 band->part_reconst_mem[1] = band->part_reconst_mem[0];
99 band->part_reconst_mem[0] = cur_part_reconst;
101 band->pole_mem[1] = av_clip((sg[0] * av_clip(band->pole_mem[0], -8191, 8191) >> 5) +
102 (sg[1] << 7) + (band->pole_mem[1] * 127 >> 7), -12288, 12288);
104 limit = 15360 - band->pole_mem[1];
105 band->pole_mem[0] = av_clip(-192 * sg[0] + (band->pole_mem[0] * 255 >> 8), -limit, limit);
109 for (i = 0; i < 6; i++)
110 band->zero_mem[i] = ((band->zero_mem[i]*255) >> 8) +
111 ((band->diff_mem[i]^cur_diff) < 0 ? -128 : 128);
113 for (i = 0; i < 6; i++)
114 band->zero_mem[i] = (band->zero_mem[i]*255) >> 8;
116 for (i = 5; i > 0; i--)
117 band->diff_mem[i] = band->diff_mem[i-1];
118 band->diff_mem[0] = av_clip_int16(cur_diff << 1);
121 for (i = 5; i >= 0; i--)
122 band->s_zero += (band->zero_mem[i]*band->diff_mem[i]) >> 15;
125 cur_qtzd_reconst = av_clip_int16((band->s_predictor + cur_diff) << 1);
126 band->s_predictor = av_clip_int16(band->s_zero +
127 (band->pole_mem[0] * cur_qtzd_reconst >> 15) +
128 (band->pole_mem[1] * band->prev_qtzd_reconst >> 15));
129 band->prev_qtzd_reconst = cur_qtzd_reconst;
135 const int shift = log_factor >> 11;
136 return shift < 0 ? wd1 >> -shift : wd1 <<
shift;
145 band->log_factor = av_clip((band->log_factor * 127 >> 7) +
156 band->log_factor = av_clip((band->log_factor * 127 >> 7) +
167 for (i = 0; i < 12; i++) {