Lines Matching defs:state

98     uint8_t state[/*7*2*/ 7 + 512][32];
512 static inline void put_symbol(RangeCoder *c, uint8_t *state, int v, int is_signed){
519 put_rac(c, state+0, 0);
522 put_rac(c, state+1+i, 1); //1..10
525 put_rac(c, state+1+9, 1); //1..10
527 put_rac(c, state+1+FFMIN(i,9), 0);
530 put_rac(c, state+22+9, (a>>i)&1); //22..31
533 put_rac(c, state+22+i, (a>>i)&1); //22..31
537 put_rac(c, state+11 + el, v < 0); //11..21
539 put_rac(c, state+0, 1);
543 static inline int get_symbol(RangeCoder *c, uint8_t *state, int is_signed){
544 if(get_rac(c, state+0))
550 while(get_rac(c, state+1 + FFMIN(e,9))){ //1..10
558 a += a + get_rac(c, state+22 + FFMIN(i,9)); //22..31
561 e= -(is_signed && get_rac(c, state+11 + FFMIN(e,10))); //11..21
566 static inline void put_symbol2(RangeCoder *c, uint8_t *state, int v, int log2){
574 put_rac(c, state+4+log2, 1);
579 put_rac(c, state+4+log2, 0);
582 put_rac(c, state+31-i, (v>>i)&1);
586 static inline int get_symbol2(RangeCoder *c, uint8_t *state, int log2){
593 while(log2<28 && get_rac(c, state+4+log2)){
600 v+= get_rac(c, state+31-i)<<i;
618 runs= get_symbol2(&s->c, b->state[30], 0);
619 if(runs-- > 0) run= get_symbol2(&s->c, b->state[1], 3);
654 v=get_rac(&s->c, &b->state[0][context]);
656 v= 2*(get_symbol2(&s->c, b->state[context + 2], context-4) + 1);
657 v+=get_rac(&s->c, &b->state[0][16 + 1 + 3 + ff_quant3bA[l&0xFF] + 3*ff_quant3bA[t&0xFF]]);
667 if(runs-- > 0) run= get_symbol2(&s->c, b->state[1], 3);
669 v= 2*(get_symbol2(&s->c, b->state[0 + 2], 0-4) + 1);
670 v+=get_rac(&s->c, &b->state[0][16 + 1 + 3]);