Lines Matching refs:sps

331     if (s->sps->chroma_format_idc != 0) {  in pred_weight_table()
345 if (s->sps->chroma_format_idc != 0) { // FIXME: invert "if" and "for" in pred_weight_table()
387 if (s->sps->chroma_format_idc != 0) { in pred_weight_table()
426 const HEVCSPS *sps = s->sps; in decode_lt_rps() local
427 RK_S32 max_poc_lsb = 1 << sps->log2_max_poc_lsb; in decode_lt_rps()
437 if (!sps->long_term_ref_pics_present_flag) in decode_lt_rps()
440 if (sps->num_long_term_ref_pics_sps > 0) in decode_lt_rps()
456 if (sps->num_long_term_ref_pics_sps > 1) in decode_lt_rps()
457 READ_BITS(gb, mpp_ceil_log2(sps->num_long_term_ref_pics_sps), &lt_idx_sps); in decode_lt_rps()
459 rps->poc[i] = sps->lt_ref_pic_poc_lsb_sps[lt_idx_sps]; in decode_lt_rps()
460 rps->used[i] = sps->used_by_curr_pic_lt_sps_flag[lt_idx_sps]; in decode_lt_rps()
462 READ_BITS(gb, sps->log2_max_poc_lsb, &rps->poc[i]); in decode_lt_rps()
488 static RK_S32 set_sps(HEVCContext *s, const HEVCSPS *sps) in set_sps() argument
493 s->h265dctx->coded_width = sps->width; in set_sps()
494 s->h265dctx->coded_height = sps->height; in set_sps()
495 s->h265dctx->width = sps->output_width; in set_sps()
496 s->h265dctx->height = sps->output_height; in set_sps()
497 s->h265dctx->pix_fmt = fmt | sps->pix_fmt; in set_sps()
498 s->h265dctx->nBitDepth = sps->bit_depth; in set_sps()
499 s->h265dctx->sample_aspect_ratio = sps->vui.sar; in set_sps()
501 if (sps->vui.video_signal_type_present_flag) in set_sps()
502 s->h265dctx->color_range = sps->vui.video_full_range_flag ? in set_sps()
507 if (sps->vui.colour_description_present_flag) { in set_sps()
508 s->h265dctx->colorspace = sps->vui.matrix_coeffs; in set_sps()
513 s->sps = sps; in set_sps()
514 s->vps = (HEVCVPS*) s->vps_list[s->sps->vps_id]; in set_sps()
519 } else if (sps->vui.vui_timing_info_present_flag) { in set_sps()
520 num = sps->vui.vui_num_units_in_tick; in set_sps()
521 den = sps->vui.vui_time_scale; in set_sps()
759 if (s->sps_need_upate || s->sps != (HEVCSPS*)s->sps_list[s->pps->sps_id]) { in hls_slice_header()
760 s->sps = (HEVCSPS*)s->sps_list[s->pps->sps_id]; in hls_slice_header()
765 ret = set_sps(s, s->sps); in hls_slice_header()
783 slice_address_length = mpp_ceil_log2(s->sps->ctb_width * in hls_slice_header()
784 s->sps->ctb_height); in hls_slice_header()
788 if (sh->slice_segment_addr >= (RK_U32)(s->sps->ctb_width * s->sps->ctb_height)) { in hls_slice_header()
827 if (s->sps->separate_colour_plane_flag) in hls_slice_header()
833 READ_BITS(gb, s->sps->log2_max_poc_lsb, &sh->pic_order_cnt_lsb); in hls_slice_header()
851 ret = mpp_hevc_decode_short_term_rps(s, &sh->slice_rps, s->sps, 1); in hls_slice_header()
859 if (!s->sps->nb_st_rps) { in hls_slice_header()
864 numbits = mpp_ceil_log2(s->sps->nb_st_rps); in hls_slice_header()
869 if (sh->short_term_rps != &s->sps->st_rps[rps_idx]) in hls_slice_header()
871 sh->short_term_rps = &s->sps->st_rps[rps_idx]; in hls_slice_header()
885 if (s->sps->sps_temporal_mvp_enabled_flag) in hls_slice_header()
905 if (s->sps->sao_enabled) { in hls_slice_header()
907 if (s->sps->chroma_format_idc) { in hls_slice_header()
1060 … if (sh->num_entry_point_offsets > s->sps->ctb_height || sh->num_entry_point_offsets < 0) { in hls_slice_header()
1063 s->sps->ctb_height); in hls_slice_header()
1067 …if (sh->num_entry_point_offsets > s->sps->ctb_height * s->sps->ctb_width || sh->num_entry_point_of… in hls_slice_header()
1070 s->sps->ctb_height * s->sps->ctb_width); in hls_slice_header()
1097 sh->slice_qp < -s->sps->qp_bd_offset) { in hls_slice_header()
1101 -s->sps->qp_bd_offset); in hls_slice_header()
1204 if (!flush && s->seq_output == s->seq_decode && s->sps && in mpp_hevc_output_frame()
1205 nb_output <= s->sps->temporal_layer[s->sps->max_sub_layers - 1].num_reorder_pics) { in mpp_hevc_output_frame()