Lines Matching defs:rc_stat2
164 uint64_t (*rc_stat2[MAX_QUANT_TABLES])[32][2];
278 static av_always_inline av_flatten void put_symbol_inline(RangeCoder *c, uint8_t *state, int v, int is_signed, uint64_t rc_stat[256][2], uint64_t rc_stat2[32][2]){
285 rc_stat2[(S)-state][B]++;\
478 put_symbol_inline(c, p->state[context], diff, 1, s->rc_stat, s->rc_stat2[p->quant_table_index][context]);
722 memset(fs->rc_stat2, 0, sizeof(fs->rc_stat2));
933 s->rc_stat2[i]= av_mallocz(s->context_count[i]*sizeof(*s->rc_stat2[i]));
934 if(!s->rc_stat2[i])
961 s->rc_stat2[i][j][k][m]= strtol(p, &next, 0);
988 if(s->rc_stat2[i][j][k][0]+s->rc_stat2[i][j][k][1]){
989 p=256.0*s->rc_stat2[i][j][k][1] / (s->rc_stat2[i][j][k][0]+s->rc_stat2[i][j][k][1]);
991 s->initial_states[i][j][k]= best_state[av_clip(round(p), 1, 255)][av_clip((s->rc_stat2[i][j][k][0]+s->rc_stat2[i][j][k][1])/gob_count, 0, 255)];
1014 av_assert0(!sf->rc_stat2[i]);
1015 sf->rc_stat2[i]= av_mallocz(s->context_count[i]*sizeof(*sf->rc_stat2[i]));
1016 if(!sf->rc_stat2[i])
1166 memset(f->rc_stat2[i], 0, f->context_count[i]*sizeof(*f->rc_stat2[i]));
1177 f->rc_stat2[i][k][m][0] += fs->rc_stat2[i][k][m][0];
1178 f->rc_stat2[i][k][m][1] += fs->rc_stat2[i][k][m][1];
1193 snprintf(p, end-p, "%"PRIu64" %"PRIu64" ", f->rc_stat2[i][j][m][0], f->rc_stat2[i][j][m][1]);
1230 av_freep(&sf->rc_stat2[j]);
1232 av_freep(&s->rc_stat2[j]);