Lines Matching defs:state
146 static inline int encode_high(const struct G722Band *state, int xhigh)
148 int diff = av_clip_int16(xhigh - state->s_predictor);
149 int pred = 141 * state->scale_factor >> 8;
154 static inline int encode_low(const struct G722Band* state, int xlow)
156 int diff = av_clip_int16(xlow - state->s_predictor);
161 if (limit > low_quant[8] * state->scale_factor)
163 while (i < 29 && limit > low_quant[i] * state->scale_factor)
186 nodes[i][0]->state = c->band[i];
202 /* Only k >> 2 affects the future adaptive state, therefore testing
210 int ilow = encode_low(&cur_node->state, xlow);
220 decoded = av_clip_intp2((cur_node->state.scale_factor *
222 + cur_node->state.s_predictor, 14);
246 node->state = cur_node->state;\
260 STORE_NODE(0, ff_g722_update_low_predictor(&node->state, k >> 2), k);
277 dhigh = cur_node->state.scale_factor *
279 decoded = av_clip_intp2(dhigh + cur_node->state.s_predictor, 14);
282 STORE_NODE(1, ff_g722_update_high_predictor(&node->state, dhigh, ihigh), ihigh);
318 c->band[0] = nodes[0][0]->state;
319 c->band[1] = nodes[1][0]->state;