Lines Matching refs:context_count
131 av_assert2(context < p->context_count);
283 unsigned ps, i, context_count;
312 context_count = f->context_count[idx];
314 if (p->context_count < context_count) {
318 p->context_count = context_count;
393 pdst->state = av_malloc_array(CONTEXT_SIZE, psrc->context_count);
394 memcpy(pdst->state, psrc->state, CONTEXT_SIZE * psrc->context_count);
396 pdst->vlc_state = av_malloc_array(sizeof(*pdst->vlc_state), psrc->context_count);
397 memcpy(pdst->vlc_state, psrc->vlc_state, sizeof(*pdst->vlc_state) * psrc->context_count);
500 int context_count = 1;
503 context_count *= read_quant_table(c, quant_table[i], context_count);
504 if (context_count > 32768U) {
508 return (context_count + 1) / 2;
561 f->context_count[i] = read_quant_tables(c, f->quant_tables[i]);
562 if (f->context_count[i] < 0) {
572 for (j = 0; j < f->context_count[i]; j++)
616 int i, j, context_count = -1; //-1 to avoid warning
756 context_count = read_quant_tables(c, f->quant_table);
757 if (context_count < 0) {
818 context_count = f->context_count[idx];
824 av_assert0(context_count >= 0);
825 if (p->context_count < context_count) {
829 p->context_count = context_count;
1004 f->context_count[i] * sizeof(*f->initial_states[i]));