comparison g726.c @ 7063:cd085c1c5103 libavcodec

simplify
author michael
date Wed, 18 Jun 2008 20:54:21 +0000
parents fb6038ffd2a9
children f227dcbd4755
comparison
equal deleted inserted replaced
7062:fb6038ffd2a9 7063:cd085c1c5103
196 196
197 /* Transition detect */ 197 /* Transition detect */
198 ylint = (c->yl >> 15); 198 ylint = (c->yl >> 15);
199 ylfrac = (c->yl >> 10) & 0x1f; 199 ylfrac = (c->yl >> 10) & 0x1f;
200 thr2 = (ylint > 9) ? 0x1f << 10 : (0x20 + ylfrac) << ylint; 200 thr2 = (ylint > 9) ? 0x1f << 10 : (0x20 + ylfrac) << ylint;
201 if (c->td == 1 && abs(dq) > ((thr2+(thr2>>1))>>1)) 201 tr= (c->td == 1 && abs(dq) > ((3*thr2)>>2));
202 tr = 1;
203 else
204 tr = 0;
205 202
206 /* Update second order predictor coefficient A2 and A1 */ 203 /* Update second order predictor coefficient A2 and A1 */
207 pk0 = (c->sez + dq) ? sgn(c->sez + dq) : 0; 204 pk0 = (c->sez + dq) ? sgn(c->sez + dq) : 0;
208 dq0 = dq ? sgn(dq) : 0; 205 dq0 = dq ? sgn(dq) : 0;
209 if (tr) { 206 if (tr) {