Lines Matching refs:context_count
150 int context_count;
176 int context_count[MAX_QUANT_TABLES];
685 if(!p-> state) p-> state= av_malloc(CONTEXT_SIZE*p->context_count*sizeof(uint8_t));
689 if(!p->vlc_state) p->vlc_state= av_malloc(p->context_count*sizeof(VlcState));
740 f->initial_states[i]= av_malloc(f->context_count[i]*sizeof(*f->initial_states[i]));
743 memset(f->initial_states[i], 128, f->context_count[i]*sizeof(*f->initial_states[i]));
783 for(j=0; j<f->context_count[i]*CONTEXT_SIZE; j++)
786 if(j<f->context_count[i]*CONTEXT_SIZE){
788 for(j=0; j<f->context_count[i]; j++){
884 s->context_count[0]= (11*11*11+1)/2;
885 s->context_count[1]= (11*11*5*5*5+1)/2;
893 p->context_count= s->context_count[p->quant_table_index];
933 s->rc_stat2[i]= av_mallocz(s->context_count[i]*sizeof(*s->rc_stat2[i]));
958 for(j=0; j<s->context_count[i]; j++){
985 for(j=0; j<s->context_count[i]; j++){
1015 sf->rc_stat2[i]= av_mallocz(s->context_count[i]*sizeof(*sf->rc_stat2[i]));
1040 memcpy(p->state, f->initial_states[p->quant_table_index], CONTEXT_SIZE*p->context_count);
1042 memset(p->state, 128, CONTEXT_SIZE*p->context_count);
1044 for(j=0; j<p->context_count; j++){
1166 memset(f->rc_stat2[i], 0, f->context_count[i]*sizeof(*f->rc_stat2[i]));
1175 for(k=0; k<f->context_count[i]; k++){
1191 for(j=0; j<f->context_count[i]; j++){
1263 av_assert2(context < p->context_count);
1438 int context_count=1;
1441 context_count*= read_quant_table(c, quant_table[i], context_count);
1442 if(context_count > 32768U){
1446 return (context_count+1)/2;
1486 if((f->context_count[i]= read_quant_tables(c, f->quant_tables[i])) < 0){
1497 for(j=0; j<f->context_count[i]; j++){
1511 int i, j, context_count;
1569 context_count= read_quant_tables(c, f->quant_table);
1570 if(context_count < 0){
1612 context_count= f->context_count[idx];
1617 if(p->context_count < context_count){
1621 p->context_count= context_count;