Lines Matching defs:state

43 static inline av_flatten int get_symbol_inline(RangeCoder *c, uint8_t *state,
46 if (get_rac(c, state + 0))
52 while (get_rac(c, state + 1 + FFMIN(e, 9))) { // 1..10
60 a += a + get_rac(c, state + 22 + FFMIN(i, 9)); // 22..31
62 e = -(is_signed && get_rac(c, state + 11 + FFMIN(e, 10))); // 11..21
67 static av_noinline int get_symbol(RangeCoder *c, uint8_t *state, int is_signed)
69 return get_symbol_inline(c, state, is_signed);
72 static inline int get_vlc_symbol(GetBitContext *gb, VlcState *const state,
77 i = state->count;
79 while (i < state->error_sum) { // FIXME: optimize
86 v, state->bias, state->error_sum, state->drift, state->count, k);
88 v ^= ((2 * state->drift + state->count) >> 31);
90 ret = fold(v + state->bias, bits);
92 update_vlc_state(state, v);
169 uint8_t state[CONTEXT_SIZE];
173 memset(state, 128, sizeof(state));
174 sx = get_symbol(c, state, 0);
175 sy = get_symbol(c, state, 0);
176 sw = get_symbol(c, state, 0) + 1U;
177 sh = get_symbol(c, state, 0) + 1U;
202 int idx = get_symbol(c, state, 0);
212 av_freep(&p->state);
218 ps = get_symbol(c, state, 0);
228 f->cur->sample_aspect_ratio.num = get_symbol(c, state, 0);
229 f->cur->sample_aspect_ratio.den = get_symbol(c, state, 0);
240 fs->slice_reset_contexts = get_rac(c, state);
241 fs->slice_coding_mode = get_symbol(c, state, 0);
243 fs->slice_rct_by_coef = get_symbol(c, state, 0);
244 fs->slice_rct_ry_coef = get_symbol(c, state, 0);
283 av_free(pdst->state);
286 pdst->state = NULL;
290 pdst->state = av_malloc_array(CONTEXT_SIZE, psrc->context_count);
291 memcpy(pdst->state, psrc->state, CONTEXT_SIZE * psrc->context_count);
384 uint8_t state[CONTEXT_SIZE];
386 memset(state, 128, sizeof(state));
389 unsigned len = get_symbol(c, state, 0) + 1U;
428 uint8_t state[CONTEXT_SIZE];
434 memset(state, 128, sizeof(state));
439 f->version = get_symbol(c, state, 0);
446 f->micro_version = get_symbol(c, state, 0);
450 f->ac = get_symbol(c, state, 0);
454 f->state_transition[i] = get_symbol(c, state, 1) + c->one_state[i];
457 f->colorspace = get_symbol(c, state, 0); //YUV cs type
458 f->avctx->bits_per_raw_sample = get_symbol(c, state, 0);
459 f->chroma_planes = get_rac(c, state);
460 f->chroma_h_shift = get_symbol(c, state, 0);
461 f->chroma_v_shift = get_symbol(c, state, 0);
462 f->transparency = get_rac(c, state);
464 f->num_h_slices = 1 + get_symbol(c, state, 0);
465 f->num_v_slices = 1 + get_symbol(c, state, 0);
485 f->quant_table_count = get_symbol(c, state, 0);
503 if (get_rac(c, state)) {
513 f->ec = get_symbol(c, state, 0);
515 f->intra = get_symbol(c, state, 0);
549 uint8_t state[CONTEXT_SIZE];
553 memset(state, 128, sizeof(state));
557 unsigned v= get_symbol(c, state, 0);
563 f->ac = get_symbol(c, state, 0);
567 int st = get_symbol(c, state, 1) + c->one_state[i];
569 av_log(f->avctx, AV_LOG_ERROR, "invalid state transition %d\n", st);
576 colorspace = get_symbol(c, state, 0); //YUV cs type
577 bits_per_raw_sample = f->version > 0 ? get_symbol(c, state, 0) : f->avctx->bits_per_raw_sample;
578 chroma_planes = get_rac(c, state);
579 chroma_h_shift = get_symbol(c, state, 0);
580 chroma_v_shift = get_symbol(c, state, 0);
581 transparency = get_rac(c, state);
761 f->slice_count = get_symbol(c, state, 0);
787 int sx = get_symbol(c, state, 0);
788 int sy = get_symbol(c, state, 0);
789 int sw = get_symbol(c, state, 0) + 1U;
790 int sh = get_symbol(c, state, 0) + 1U;
812 int idx = get_symbol(c, state, 0);
829 av_freep(&p->state);
1073 av_assert0(!fdst->plane[0].state);