• Home
  • Raw
  • Download

Lines Matching refs:lc

991     HEVCLocalContext *lc    = s->HEVClc;  in hls_sao_param()  local
1000 if (lc->ctb_left_flag) in hls_sao_param()
1004 if (lc->ctb_up_flag) in hls_sao_param()
1064 HEVCLocalContext *lc = s->HEVClc; in hls_cross_component_pred() local
1069 lc->tu.res_scale_val = (1 << (log2_res_scale_abs_plus1 - 1)) * in hls_cross_component_pred()
1072 lc->tu.res_scale_val = 0; in hls_cross_component_pred()
1084 HEVCLocalContext *lc = s->HEVClc; in hls_transform_unit() local
1088 if (lc->cu.pred_mode == MODE_INTRA) { in hls_transform_unit()
1103 if (s->ps.pps->cu_qp_delta_enabled_flag && !lc->tu.is_cu_qp_delta_coded) { in hls_transform_unit()
1104 lc->tu.cu_qp_delta = ff_hevc_cu_qp_delta_abs(s); in hls_transform_unit()
1105 if (lc->tu.cu_qp_delta != 0) in hls_transform_unit()
1107 lc->tu.cu_qp_delta = -lc->tu.cu_qp_delta; in hls_transform_unit()
1108 lc->tu.is_cu_qp_delta_coded = 1; in hls_transform_unit()
1110 if (lc->tu.cu_qp_delta < -(26 + s->ps.sps->qp_bd_offset / 2) || in hls_transform_unit()
1111 lc->tu.cu_qp_delta > (25 + s->ps.sps->qp_bd_offset / 2)) { in hls_transform_unit()
1115 lc->tu.cu_qp_delta, in hls_transform_unit()
1125 !lc->cu.cu_transquant_bypass_flag && !lc->tu.is_cu_chroma_qp_offset_coded) { in hls_transform_unit()
1134 lc->tu.cu_qp_offset_cb = s->ps.pps->cb_qp_offset_list[cu_chroma_qp_offset_idx]; in hls_transform_unit()
1135 lc->tu.cu_qp_offset_cr = s->ps.pps->cr_qp_offset_list[cu_chroma_qp_offset_idx]; in hls_transform_unit()
1137 lc->tu.cu_qp_offset_cb = 0; in hls_transform_unit()
1138 lc->tu.cu_qp_offset_cr = 0; in hls_transform_unit()
1140 lc->tu.is_cu_chroma_qp_offset_coded = 1; in hls_transform_unit()
1143 if (lc->cu.pred_mode == MODE_INTRA && log2_trafo_size < 4) { in hls_transform_unit()
1144 if (lc->tu.intra_pred_mode >= 6 && in hls_transform_unit()
1145 lc->tu.intra_pred_mode <= 14) { in hls_transform_unit()
1147 } else if (lc->tu.intra_pred_mode >= 22 && in hls_transform_unit()
1148 lc->tu.intra_pred_mode <= 30) { in hls_transform_unit()
1152 if (lc->tu.intra_pred_mode_c >= 6 && in hls_transform_unit()
1153 lc->tu.intra_pred_mode_c <= 14) { in hls_transform_unit()
1155 } else if (lc->tu.intra_pred_mode_c >= 22 && in hls_transform_unit()
1156 lc->tu.intra_pred_mode_c <= 30) { in hls_transform_unit()
1161 lc->tu.cross_pf = 0; in hls_transform_unit()
1168 lc->tu.cross_pf = (s->ps.pps->cross_component_prediction_enabled_flag && cbf_luma && in hls_transform_unit()
1169 (lc->cu.pred_mode == MODE_INTER || in hls_transform_unit()
1170 (lc->tu.chroma_mode_c == 4))); in hls_transform_unit()
1172 if (lc->tu.cross_pf) { in hls_transform_unit()
1176 if (lc->cu.pred_mode == MODE_INTRA) { in hls_transform_unit()
1184 if (lc->tu.cross_pf) { in hls_transform_unit()
1188 int16_t *coeffs_y = (int16_t*)lc->edge_emu_buffer; in hls_transform_unit()
1189 int16_t *coeffs = (int16_t*)lc->edge_emu_buffer2; in hls_transform_unit()
1195 coeffs[i] = ((lc->tu.res_scale_val * coeffs_y[i]) >> 3); in hls_transform_unit()
1201 if (lc->tu.cross_pf) { in hls_transform_unit()
1205 if (lc->cu.pred_mode == MODE_INTRA) { in hls_transform_unit()
1213 if (lc->tu.cross_pf) { in hls_transform_unit()
1217 int16_t *coeffs_y = (int16_t*)lc->edge_emu_buffer; in hls_transform_unit()
1218 int16_t *coeffs = (int16_t*)lc->edge_emu_buffer2; in hls_transform_unit()
1224 coeffs[i] = ((lc->tu.res_scale_val * coeffs_y[i]) >> 3); in hls_transform_unit()
1233 if (lc->cu.pred_mode == MODE_INTRA) { in hls_transform_unit()
1243 if (lc->cu.pred_mode == MODE_INTRA) { in hls_transform_unit()
1253 } else if (s->ps.sps->chroma_format_idc && lc->cu.pred_mode == MODE_INTRA) { in hls_transform_unit()
1306 HEVCLocalContext *lc = s->HEVClc; in hls_transform_tree() local
1317 if (lc->cu.intra_split_flag) { in hls_transform_tree()
1319 lc->tu.intra_pred_mode = lc->pu.intra_pred_mode[blk_idx]; in hls_transform_tree()
1321 lc->tu.intra_pred_mode_c = lc->pu.intra_pred_mode_c[blk_idx]; in hls_transform_tree()
1322 lc->tu.chroma_mode_c = lc->pu.chroma_mode_c[blk_idx]; in hls_transform_tree()
1324 lc->tu.intra_pred_mode_c = lc->pu.intra_pred_mode_c[0]; in hls_transform_tree()
1325 lc->tu.chroma_mode_c = lc->pu.chroma_mode_c[0]; in hls_transform_tree()
1329 lc->tu.intra_pred_mode = lc->pu.intra_pred_mode[0]; in hls_transform_tree()
1330 lc->tu.intra_pred_mode_c = lc->pu.intra_pred_mode_c[0]; in hls_transform_tree()
1331 lc->tu.chroma_mode_c = lc->pu.chroma_mode_c[0]; in hls_transform_tree()
1336 trafo_depth < lc->cu.max_trafo_depth && in hls_transform_tree()
1337 !(lc->cu.intra_split_flag && trafo_depth == 0)) { in hls_transform_tree()
1341 lc->cu.pred_mode == MODE_INTER && in hls_transform_tree()
1342 lc->cu.part_mode != PART_2Nx2N && in hls_transform_tree()
1346 (lc->cu.intra_split_flag && trafo_depth == 0) || in hls_transform_tree()
1392 if (lc->cu.pred_mode == MODE_INTRA || trafo_depth != 0 || in hls_transform_tree()
1416 lc->cu.cu_transquant_bypass_flag) in hls_transform_tree()
1425 HEVCLocalContext *lc = s->HEVClc; in hls_pcm_sample() local
1439 const uint8_t *pcm = skip_bytes(&lc->cc, (length + 7) >> 3); in hls_pcm_sample()
1484 HEVCLocalContext *lc = s->HEVClc; in luma_mc_uni() local
1506 s->vdsp.emulated_edge_mc(lc->edge_emu_buffer, src - offset, in luma_mc_uni()
1512 src = lc->edge_emu_buffer + buf_offset; in luma_mc_uni()
1545 HEVCLocalContext *lc = s->HEVClc; in luma_mc_bi() local
1572 s->vdsp.emulated_edge_mc(lc->edge_emu_buffer, src0 - offset, in luma_mc_bi()
1578 src0 = lc->edge_emu_buffer + buf_offset; in luma_mc_bi()
1589 s->vdsp.emulated_edge_mc(lc->edge_emu_buffer2, src1 - offset, in luma_mc_bi()
1595 src1 = lc->edge_emu_buffer2 + buf_offset; in luma_mc_bi()
1599 s->hevcdsp.put_hevc_qpel[idx][!!my0][!!mx0](lc->tmp, src0, src0stride, in luma_mc_bi()
1602 s->hevcdsp.put_hevc_qpel_bi[idx][!!my1][!!mx1](dst, dststride, src1, src1stride, lc->tmp, in luma_mc_bi()
1605 s->hevcdsp.put_hevc_qpel_bi_w[idx][!!my1][!!mx1](dst, dststride, src1, src1stride, lc->tmp, in luma_mc_bi()
1636 HEVCLocalContext *lc = s->HEVClc; in chroma_mc_uni() local
1661 s->vdsp.emulated_edge_mc(lc->edge_emu_buffer, src0 - offset0, in chroma_mc_uni()
1668 src0 = lc->edge_emu_buffer + buf_offset0; in chroma_mc_uni()
1700 HEVCLocalContext *lc = s->HEVClc; in chroma_mc_bi() local
1739 s->vdsp.emulated_edge_mc(lc->edge_emu_buffer, src1 - offset1, in chroma_mc_bi()
1746 src1 = lc->edge_emu_buffer + buf_offset1; in chroma_mc_bi()
1758 s->vdsp.emulated_edge_mc(lc->edge_emu_buffer2, src2 - offset1, in chroma_mc_bi()
1765 src2 = lc->edge_emu_buffer2 + buf_offset1; in chroma_mc_bi()
1769 s->hevcdsp.put_hevc_epel[idx][!!my0][!!mx0](lc->tmp, src1, src1stride, in chroma_mc_bi()
1773 src2, src2stride, lc->tmp, in chroma_mc_bi()
1777 src2, src2stride, lc->tmp, in chroma_mc_bi()
1801 HEVCLocalContext *lc = s->HEVClc; in hevc_luma_mv_mvp_mode() local
1819 mv->mv[0].x += lc->pu.mvd.x; in hevc_luma_mv_mvp_mode()
1820 mv->mv[0].y += lc->pu.mvd.y; in hevc_luma_mv_mvp_mode()
1828 AV_ZERO32(&lc->pu.mvd); in hevc_luma_mv_mvp_mode()
1837 mv->mv[1].x += lc->pu.mvd.x; in hevc_luma_mv_mvp_mode()
1838 mv->mv[1].y += lc->pu.mvd.y; in hevc_luma_mv_mvp_mode()
1849 HEVCLocalContext *lc = s->HEVClc; in hls_prediction_unit() local
1871 lc->pu.merge_flag = ff_hevc_merge_flag_decode(s); in hls_prediction_unit()
1873 if (skip_flag || lc->pu.merge_flag) { in hls_prediction_unit()
1971 HEVCLocalContext *lc = s->HEVClc; in luma_intra_pred_mode() local
1979 int cand_up = (lc->ctb_up_flag || y0b) ? in luma_intra_pred_mode()
1981 int cand_left = (lc->ctb_left_flag || x0b) ? in luma_intra_pred_mode()
2018 intra_pred_mode = candidate[lc->pu.mpm_idx]; in luma_intra_pred_mode()
2027 intra_pred_mode = lc->pu.rem_intra_luma_pred_mode; in luma_intra_pred_mode()
2068 HEVCLocalContext *lc = s->HEVClc; in intra_prediction_unit() local
2071 int split = lc->cu.part_mode == PART_NxN; in intra_prediction_unit()
2084 lc->pu.mpm_idx = ff_hevc_mpm_idx_decode(s); in intra_prediction_unit()
2086 lc->pu.rem_intra_luma_pred_mode = ff_hevc_rem_intra_luma_pred_mode_decode(s); in intra_prediction_unit()
2088 lc->pu.intra_pred_mode[2 * i + j] = in intra_prediction_unit()
2097lc->pu.chroma_mode_c[2 * i + j] = chroma_mode = ff_hevc_intra_chroma_pred_mode_decode(s); in intra_prediction_unit()
2099 if (lc->pu.intra_pred_mode[2 * i + j] == intra_chroma_table[chroma_mode]) in intra_prediction_unit()
2100 lc->pu.intra_pred_mode_c[2 * i + j] = 34; in intra_prediction_unit()
2102 lc->pu.intra_pred_mode_c[2 * i + j] = intra_chroma_table[chroma_mode]; in intra_prediction_unit()
2104 lc->pu.intra_pred_mode_c[2 * i + j] = lc->pu.intra_pred_mode[2 * i + j]; in intra_prediction_unit()
2110 lc->pu.chroma_mode_c[0] = chroma_mode = ff_hevc_intra_chroma_pred_mode_decode(s); in intra_prediction_unit()
2112 if (lc->pu.intra_pred_mode[0] == intra_chroma_table[chroma_mode]) in intra_prediction_unit()
2117 mode_idx = lc->pu.intra_pred_mode[0]; in intra_prediction_unit()
2119 lc->pu.intra_pred_mode_c[0] = tab_mode_idx[mode_idx]; in intra_prediction_unit()
2123 if (lc->pu.intra_pred_mode[0] == intra_chroma_table[chroma_mode]) in intra_prediction_unit()
2124 lc->pu.intra_pred_mode_c[0] = 34; in intra_prediction_unit()
2126 lc->pu.intra_pred_mode_c[0] = intra_chroma_table[chroma_mode]; in intra_prediction_unit()
2128 lc->pu.intra_pred_mode_c[0] = lc->pu.intra_pred_mode[0]; in intra_prediction_unit()
2137 HEVCLocalContext *lc = s->HEVClc; in intra_prediction_unit_default_value() local
2150 if (lc->cu.pred_mode == MODE_INTRA) in intra_prediction_unit_default_value()
2159 HEVCLocalContext *lc = s->HEVClc; in hls_coding_unit() local
2169 lc->cu.x = x0; in hls_coding_unit()
2170 lc->cu.y = y0; in hls_coding_unit()
2171 lc->cu.pred_mode = MODE_INTRA; in hls_coding_unit()
2172 lc->cu.part_mode = PART_2Nx2N; in hls_coding_unit()
2173 lc->cu.intra_split_flag = 0; in hls_coding_unit()
2177 lc->pu.intra_pred_mode[x] = 1; in hls_coding_unit()
2179 lc->cu.cu_transquant_bypass_flag = ff_hevc_cu_transquant_bypass_flag_decode(s); in hls_coding_unit()
2180 if (lc->cu.cu_transquant_bypass_flag) in hls_coding_unit()
2183 lc->cu.cu_transquant_bypass_flag = 0; in hls_coding_unit()
2193 lc->cu.pred_mode = skip_flag ? MODE_SKIP : MODE_INTER; in hls_coding_unit()
2212 lc->cu.pred_mode = ff_hevc_pred_mode_decode(s); in hls_coding_unit()
2213 if (lc->cu.pred_mode != MODE_INTRA || in hls_coding_unit()
2215 lc->cu.part_mode = ff_hevc_part_mode_decode(s, log2_cb_size); in hls_coding_unit()
2216 lc->cu.intra_split_flag = lc->cu.part_mode == PART_NxN && in hls_coding_unit()
2217 lc->cu.pred_mode == MODE_INTRA; in hls_coding_unit()
2220 if (lc->cu.pred_mode == MODE_INTRA) { in hls_coding_unit()
2221 if (lc->cu.part_mode == PART_2Nx2N && s->ps.sps->pcm_enabled_flag && in hls_coding_unit()
2239 switch (lc->cu.part_mode) { in hls_coding_unit()
2279 if (lc->cu.pred_mode != MODE_INTRA && in hls_coding_unit()
2280 !(lc->cu.part_mode == PART_2Nx2N && lc->pu.merge_flag)) { in hls_coding_unit()
2285 lc->cu.max_trafo_depth = lc->cu.pred_mode == MODE_INTRA ? in hls_coding_unit()
2286 … s->ps.sps->max_transform_hierarchy_depth_intra + lc->cu.intra_split_flag : in hls_coding_unit()
2300 if (s->ps.pps->cu_qp_delta_enabled_flag && lc->tu.is_cu_qp_delta_coded == 0) in hls_coding_unit()
2305 memset(&s->qp_y_tab[x], lc->qp_y, length); in hls_coding_unit()
2311 lc->qPy_pred = lc->qp_y; in hls_coding_unit()
2314 set_ct_depth(s, x0, y0, log2_cb_size, lc->ct_depth); in hls_coding_unit()
2322 HEVCLocalContext *lc = s->HEVClc; in hls_coding_quadtree() local
2327 lc->ct_depth = cb_depth; in hls_coding_quadtree()
2337 lc->tu.is_cu_qp_delta_coded = 0; in hls_coding_quadtree()
2338 lc->tu.cu_qp_delta = 0; in hls_coding_quadtree()
2343 lc->tu.is_cu_chroma_qp_offset_coded = 0; in hls_coding_quadtree()
2377 lc->qPy_pred = lc->qp_y; in hls_coding_quadtree()
2407 HEVCLocalContext *lc = s->HEVClc; in hls_decode_neighbour() local
2416 lc->first_qp_group = 1; in hls_decode_neighbour()
2417 lc->end_of_tiles_x = s->ps.sps->width; in hls_decode_neighbour()
2421lc->end_of_tiles_x = x_ctb + (s->ps.pps->column_width[idxX] << s->ps.sps->log2_ctb_size); in hls_decode_neighbour()
2422 lc->first_qp_group = 1; in hls_decode_neighbour()
2425 lc->end_of_tiles_x = s->ps.sps->width; in hls_decode_neighbour()
2428 lc->end_of_tiles_y = FFMIN(y_ctb + ctb_size, s->ps.sps->height); in hls_decode_neighbour()
2430 lc->boundary_flags = 0; in hls_decode_neighbour()
2433 lc->boundary_flags |= BOUNDARY_LEFT_TILE; in hls_decode_neighbour()
2435 lc->boundary_flags |= BOUNDARY_LEFT_SLICE; in hls_decode_neighbour()
2437 lc->boundary_flags |= BOUNDARY_UPPER_TILE; in hls_decode_neighbour()
2439 lc->boundary_flags |= BOUNDARY_UPPER_SLICE; in hls_decode_neighbour()
2442 lc->boundary_flags |= BOUNDARY_LEFT_SLICE; in hls_decode_neighbour()
2444 lc->boundary_flags |= BOUNDARY_UPPER_SLICE; in hls_decode_neighbour()
2447lc->ctb_left_flag = ((x_ctb > 0) && (ctb_addr_in_slice > 0) && !(lc->boundary_flags & BOUNDARY_LEF… in hls_decode_neighbour()
2448lc->ctb_up_flag = ((y_ctb > 0) && (ctb_addr_in_slice >= s->ps.sps->ctb_width) && !(lc->boundary_… in hls_decode_neighbour()
2449lc->ctb_up_right_flag = ((y_ctb > 0) && (ctb_addr_in_slice+1 >= s->ps.sps->ctb_width) && (s->ps.p… in hls_decode_neighbour()
2450lc->ctb_up_left_flag = ((x_ctb > 0) && (y_ctb > 0) && (ctb_addr_in_slice-1 >= s->ps.sps->ctb_widt… in hls_decode_neighbour()
2528 HEVCLocalContext *lc; in hls_decode_entry_wpp() local
2539 lc = s->HEVClc; in hls_decode_entry_wpp()
2542 ret = init_get_bits8(&lc->gb, s->data + s->sh.offset[ctb_row - 1], s->sh.size[ctb_row - 1]); in hls_decode_entry_wpp()
2545 … ff_init_cabac_decoder(&lc->cc, s->data + s->sh.offset[(ctb_row)-1], s->sh.size[ctb_row - 1]); in hls_decode_entry_wpp()
2610 HEVCLocalContext *lc = s->HEVClc; in hls_slice_data_wpp() local
2649 offset = (lc->gb.index >> 3); in hls_slice_data_wpp()
2899 HEVCLocalContext *lc = s->HEVClc; in hevc_frame_start() local
2916 lc->end_of_tiles_x = s->ps.pps->column_width[0] << s->ps.sps->log2_ctb_size; in hevc_frame_start()
2958 HEVCLocalContext *lc = s->HEVClc; in decode_nal_unit() local
2959 GetBitContext *gb = &lc->gb; in decode_nal_unit()