Lines Matching refs:HEVClc
506 memcpy(s->cabac_state, s->HEVClc->cabac_state, HEVC_CONTEXTS);
512 memcpy(s->HEVClc->cabac_state, s->cabac_state, HEVC_CONTEXTS);
522 GetBitContext *gb = &s->HEVClc->gb;
525 ff_init_cabac_decoder(&s->HEVClc->cc,
547 s->HEVClc->cabac_state[i] = pre;
551 s->HEVClc->stat_coeff[i] = 0;
576 cabac_reinit(s->HEVClc);
583 get_cabac_terminate(&s->HEVClc->cc);
585 cabac_reinit(s->HEVClc);
598 #define GET_CABAC(ctx) get_cabac(&s->HEVClc->cc, &s->HEVClc->cabac_state[ctx])
610 if (!get_cabac_bypass(&s->HEVClc->cc))
618 int value = get_cabac_bypass(&s->HEVClc->cc);
621 value = (value << 1) | get_cabac_bypass(&s->HEVClc->cc);
630 while (i < length && get_cabac_bypass(&s->HEVClc->cc))
637 return get_cabac_bypass(&s->HEVClc->cc);
642 int ret = get_cabac_bypass(&s->HEVClc->cc) << 1;
643 ret |= get_cabac_bypass(&s->HEVClc->cc);
649 return get_cabac_terminate(&s->HEVClc->cc);
664 if (s->HEVClc->ctb_left_flag || x0b)
666 if (s->HEVClc->ctb_up_flag || y0b)
684 while (k < CABAC_MAX_BIN && get_cabac_bypass(&s->HEVClc->cc)) {
692 suffix_val += get_cabac_bypass(&s->HEVClc->cc) << k;
699 return get_cabac_bypass(&s->HEVClc->cc);
731 if (s->HEVClc->ctb_left_flag || x0b)
733 if (s->HEVClc->ctb_up_flag || y0b)
747 if (s->HEVClc->cu.pred_mode == MODE_INTRA) // 0
767 if (get_cabac_bypass(&s->HEVClc->cc)) // 0101
774 if (get_cabac_bypass(&s->HEVClc->cc)) // 0001
781 return get_cabac_terminate(&s->HEVClc->cc);
792 while (i < 2 && get_cabac_bypass(&s->HEVClc->cc))
800 int value = get_cabac_bypass(&s->HEVClc->cc);
803 value = (value << 1) | get_cabac_bypass(&s->HEVClc->cc);
813 ret = get_cabac_bypass(&s->HEVClc->cc) << 1;
814 ret |= get_cabac_bypass(&s->HEVClc->cc);
823 while (i < s->sh.max_num_merge_cand-1 && get_cabac_bypass(&s->HEVClc->cc))
838 if (GET_CABAC(elem_offset[INTER_PRED_IDC] + s->HEVClc->ct.depth))
853 while (i < max && get_cabac_bypass(&s->HEVClc->cc))
885 while (k < CABAC_MAX_BIN && get_cabac_bypass(&s->HEVClc->cc)) {
892 ret += get_cabac_bypass(&s->HEVClc->cc) << k;
893 return get_cabac_bypass_sign(&s->HEVClc->cc, -ret);
898 return get_cabac_bypass_sign(&s->HEVClc->cc, -1);
975 int value = get_cabac_bypass(&s->HEVClc->cc);
978 value = (value << 1) | get_cabac_bypass(&s->HEVClc->cc);
1026 while (prefix < CABAC_MAX_BIN && get_cabac_bypass(&s->HEVClc->cc))
1032 suffix = (suffix << 1) | get_cabac_bypass(&s->HEVClc->cc);
1037 suffix = (suffix << 1) | get_cabac_bypass(&s->HEVClc->cc);
1050 ret = (ret << 1) | get_cabac_bypass(&s->HEVClc->cc);
1063 HEVCLocalContext *lc = s->HEVClc;
1566 HEVCLocalContext *lc = s->HEVClc;