Lines Matching refs:rice
254 ff_tta_rice_init(&s->ch_ctx[i].rice, 10, 10);
261 TTARice *rice = &s->ch_ctx[cur_chan].rice;
269 k = rice->k0;
272 k = rice->k1;
293 rice->sum1 += value - (rice->sum1 >> 4);
294 if (rice->k1 > 0 && rice->sum1 < ff_tta_shift_16[rice->k1])
295 rice->k1--;
296 else if(rice->sum1 > ff_tta_shift_16[rice->k1 + 1])
297 rice->k1++;
298 value += ff_tta_shift_1[rice->k0];
300 rice->sum0 += value - (rice->sum0 >> 4);
301 if (rice->k0 > 0 && rice->sum0 < ff_tta_shift_16[rice->k0])
302 rice->k0--;
303 else if(rice->sum0 > ff_tta_shift_16[rice->k0 + 1])
304 rice->k0++;