Lines Matching refs:rice
55 TTARice rice;
359 rice_init(&s->ch_ctx[i].rice, 10, 10);
365 TTARice *rice = &s->ch_ctx[cur_chan].rice;
373 k = rice->k0;
376 k = rice->k1;
393 rice->sum1 += value - (rice->sum1 >> 4);
394 if (rice->k1 > 0 && rice->sum1 < shift_16[rice->k1])
395 rice->k1--;
396 else if(rice->sum1 > shift_16[rice->k1 + 1])
397 rice->k1++;
398 value += shift_1[rice->k0];
400 rice->sum0 += value - (rice->sum0 >> 4);
401 if (rice->k0 > 0 && rice->sum0 < shift_16[rice->k0])
402 rice->k0--;
403 else if(rice->sum0 > shift_16[rice->k0 + 1])
404 rice->k0++;