Lines Matching refs:c_idx
916 static int ff_hevc_transform_skip_flag_decode(HEVCContext *s, int c_idx)
918 return GET_CABAC(elem_offset[TRANSFORM_SKIP_FLAG] + !!c_idx);
921 static int explicit_rdpcm_flag_decode(HEVCContext *s, int c_idx)
923 return GET_CABAC(elem_offset[EXPLICIT_RDPCM_FLAG] + !!c_idx);
926 static int explicit_rdpcm_dir_flag_decode(HEVCContext *s, int c_idx)
928 return GET_CABAC(elem_offset[EXPLICIT_RDPCM_DIR_FLAG] + !!c_idx);
944 static av_always_inline void last_significant_coeff_xy_prefix_decode(HEVCContext *s, int c_idx,
951 if (!c_idx) {
982 static av_always_inline int significant_coeff_group_flag_decode(HEVCContext *s, int c_idx, int ctx_cg)
986 inc = FFMIN(ctx_cg, 1) + (c_idx>0 ? 2 : 0);
997 static av_always_inline int significant_coeff_flag_decode_0(HEVCContext *s, int c_idx, int offset)
1002 static av_always_inline int coeff_abs_level_greater1_flag_decode(HEVCContext *s, int c_idx, int inc)
1005 if (c_idx > 0)
1011 static av_always_inline int coeff_abs_level_greater2_flag_decode(HEVCContext *s, int c_idx, int inc)
1013 if (c_idx > 0)
1056 int c_idx)
1077 ptrdiff_t stride = s->frame->linesize[c_idx];
1078 int hshift = s->sps->hshift[c_idx];
1079 int vshift = s->sps->vshift[c_idx];
1080 uint8_t *dst = &s->frame->data[c_idx][(y0 >> vshift) * stride +
1082 int16_t *coeffs = lc->tu.coeffs[c_idx > 0];
1093 int pred_mode_intra = (c_idx == 0) ? lc->tu.intra_pred_mode :
1116 if (c_idx == 0) {
1121 if (c_idx == 1)
1158 matrix_id = 3 * matrix_id + c_idx;
1173 transform_skip_flag = ff_hevc_transform_skip_flag_decode(s, c_idx);
1178 explicit_rdpcm_flag = explicit_rdpcm_flag_decode(s, c_idx);
1180 explicit_rdpcm_dir_flag = explicit_rdpcm_dir_flag_decode(s, c_idx);
1184 last_significant_coeff_xy_prefix_decode(s, c_idx, log2_trafo_size,
1274 significant_coeff_group_flag_decode(s, c_idx, ctx_cg);
1310 if (c_idx == 0) {
1316 if (c_idx != 0)
1322 if (c_idx == 0) {
1350 if (c_idx == 0) {
1357 if (c_idx == 0)
1365 if (significant_coeff_flag_decode_0(s, c_idx, scf_offset) == 1) {
1391 int ctx_set = (i > 0 && c_idx == 0) ? 2 : 0;
1395 sb_type = 2 * (c_idx == 0 ? 1 : 0);
1397 sb_type = 2 * (c_idx == 0 ? 1 : 0) + 1;
1409 coeff_abs_level_greater1_flag_decode(s, c_idx, inc);
1430 coeff_abs_level_greater1_flag[first_greater1_coeff_idx] += coeff_abs_level_greater2_flag_decode(s, c_idx, ctx_set);
1536 } else if (lc->cu.pred_mode == MODE_INTRA && c_idx == 0 && log2_trafo_size == 2) {