| /rockchip-linux_mpp/mpp/codec/enc/h265/ |
| H A D | h265e_dpb.c | 48 H265eReferencePictureSet * rps = (H265eReferencePictureSet*)&slice->m_localRPS; in calc_ref_pic_set_idxl0() local 51 RK_S32 poc_idx = rps->m_RealPoc[ref_idx]; in calc_ref_pic_set_idxl0() 57 for (i = rps->num_negative_pic + rps->num_positive_pic + rps->num_long_term_pic - 1; in calc_ref_pic_set_idxl0() 58 i > rps->num_negative_pic + rps->num_positive_pic - 1; i--) { in calc_ref_pic_set_idxl0() 59 if (rps->m_used[i]) { in calc_ref_pic_set_idxl0() 60 refPic = get_lt_ref_pic(frame_list, slice, rps->m_RealPoc[i], rps->check_lt_msb[i]); in calc_ref_pic_set_idxl0() 69 …RpsList->m_RefPicListModification->m_RefPicSetIdxL0[0] = rps->m_numberOfPictures - rps->num_long_t… in calc_ref_pic_set_idxl0() 266 void sort_delta_poc(H265eReferencePictureSet *rps) in sort_delta_poc() argument 270 for (j = 1; j < rps->m_numberOfPictures; j++) { in sort_delta_poc() 271 RK_S32 deltaPOC = rps->delta_poc[j]; in sort_delta_poc() [all …]
|
| H A D | h265e_syntax.c | 209 H265eReferencePictureSet* rps = slice->m_rps; in fill_ref_parameters() local 220 sp->num_neg_pic = rps->num_negative_pic; in fill_ref_parameters() 221 sp->num_pos_pic = rps->num_positive_pic; in fill_ref_parameters() 222 for (j = 0; j < rps->num_negative_pic; j++) { in fill_ref_parameters() 224 sp->dlt_poc_s0_m10 = prev - rps->delta_poc[j] - 1; in fill_ref_parameters() 225 sp->used_by_s0_flg = rps->m_ref[j]; in fill_ref_parameters() 227 sp->dlt_poc_s0_m11 = prev - rps->delta_poc[j] - 1; in fill_ref_parameters() 228 sp->used_by_s0_flg |= rps->m_ref[j] << 1; in fill_ref_parameters() 230 sp->dlt_poc_s0_m12 = prev - rps->delta_poc[j] - 1; in fill_ref_parameters() 231 sp->used_by_s0_flg |= rps->m_ref[j] << 2; in fill_ref_parameters() [all …]
|
| H A D | h265e_slice.c | 77 H265eReferencePictureSet *rps = slice->m_rps; in h265e_slice_set_ref_list() local 93 for (i = 0; i < rps->num_negative_pic; i++) { in h265e_slice_set_ref_list() 94 if (rps->m_used[i]) { in h265e_slice_set_ref_list() 95 refPic = get_ref_pic(frame_list, slice->poc + rps->delta_poc[i]); in h265e_slice_set_ref_list() 103 for (; i < rps->num_negative_pic + rps->num_positive_pic; i++) { in h265e_slice_set_ref_list() 104 if (rps->m_used[i]) { in h265e_slice_set_ref_list() 105 refPic = get_ref_pic(frame_list, slice->poc + rps->delta_poc[i]); in h265e_slice_set_ref_list() 113 for (i = rps->num_negative_pic + rps->num_positive_pic + rps->num_long_term_pic - 1; in h265e_slice_set_ref_list() 114 i > rps->num_negative_pic + rps->num_positive_pic - 1; i--) { in h265e_slice_set_ref_list() 115 if (rps->m_used[i]) { in h265e_slice_set_ref_list() [all …]
|
| /rockchip-linux_mpp/mpp/codec/dec/h265/ |
| H A D | h265d_refs.c | 286 RefPicList *rps = s->rps; in mpp_hevc_frame_rps() local 291 rps[0].nb_refs = rps[1].nb_refs = 0; in mpp_hevc_frame_rps() 302 rps[i].nb_refs = 0; in mpp_hevc_frame_rps() 316 ret = add_candidate_ref(s, &rps[list], poc, HEVC_FRAME_FLAG_SHORT_REF, ST_FOLL != list); in mpp_hevc_frame_rps() 326 ret = add_candidate_ref(s, &rps[list], poc, HEVC_FRAME_FLAG_LONG_REF, LT_FOLL != list); in mpp_hevc_frame_rps() 378 const ShortTermRPS *rps = s->sh.short_term_rps; in mpp_hevc_frame_nb_refs() local 384 if (rps) { in mpp_hevc_frame_nb_refs() 385 for (i = 0; (RK_U32)i < rps->num_negative_pics; i++) in mpp_hevc_frame_nb_refs() 386 ret += !!rps->used[i]; in mpp_hevc_frame_nb_refs() 387 for (; i < rps->num_delta_pocs; i++) in mpp_hevc_frame_nb_refs() [all …]
|
| H A D | h265d_ps.c | 138 int mpp_hevc_decode_short_term_rps(HEVCContext *s, ShortTermRPS *rps, in mpp_hevc_decode_short_term_rps() argument 150 if (rps != sps->st_rps && sps->nb_st_rps) in mpp_hevc_decode_short_term_rps() 171 rps_ridx = &sps->st_rps[rps - sps->st_rps - 1]; in mpp_hevc_decode_short_term_rps() 184 rps->used[k] = used; in mpp_hevc_decode_short_term_rps() 194 rps->delta_poc[k] = delta_poc; in mpp_hevc_decode_short_term_rps() 201 rps->num_delta_pocs = k; in mpp_hevc_decode_short_term_rps() 202 rps->num_negative_pics = k0; in mpp_hevc_decode_short_term_rps() 204 if (rps->num_delta_pocs != 0) { in mpp_hevc_decode_short_term_rps() 206 for (i = 1; i < rps->num_delta_pocs; i++) { in mpp_hevc_decode_short_term_rps() 207 delta_poc = rps->delta_poc[i]; in mpp_hevc_decode_short_term_rps() [all …]
|
| H A D | h265d_parser2_syntax.c | 211 for (j = 0; j < (RK_U32)h->rps[i].nb_refs; j++) { in fill_picture_parameters() 215 rps_used[nb_rps_used++] = h->rps[i].list[j]; in fill_picture_parameters() 251 const RefPicList *rpl = &h->rps[ref_idx]; \ in fill_picture_parameters()
|
| H A D | h265d_parser.c | 424 static RK_S32 decode_lt_rps(HEVCContext *s, LongTermRPS *rps, BitReadCtx_t *gb) in decode_lt_rps() argument 436 rps->nb_refs = 0; in decode_lt_rps() 445 if (nb_sh + nb_sps > MPP_ARRAY_ELEMS(rps->poc)) in decode_lt_rps() 448 rps->nb_refs = nb_sh + nb_sps; in decode_lt_rps() 450 for (i = 0; i < rps->nb_refs; i++) { 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() 463 READ_ONEBIT(gb, &rps->used[i]); in decode_lt_rps() 475 rps->poc[i] += s->poc - delta * max_poc_lsb - s->sh.pic_order_cnt_lsb; in decode_lt_rps()
|
| H A D | h265d_parser.h | 543 RefPicList rps[5]; member 668 RK_S32 mpp_hevc_decode_short_term_rps(HEVCContext *s, ShortTermRPS *rps,
|
| /rockchip-linux_mpp/mpp/codec/dec/avs2/ |
| H A D | avs2d_ps.c | 242 static MPP_RET parse_one_rps(BitReadCtx_t *bitctx, Avs2dRps_t *rps) in parse_one_rps() argument 248 READ_ONEBIT(bitctx, &rps->refered_by_others); in parse_one_rps() 250 READ_BITS(bitctx, 3, &rps->num_of_ref); in parse_one_rps() 251 …AVS2D_PARSE_TRACE("refered_by_others_flag %d, num_Of_ref %d", rps->refered_by_others, rps->num_of_… in parse_one_rps() 252 if (rps->num_of_ref > AVS2_MAX_REFS) { in parse_one_rps() 254 mpp_err_f("invalid ref num(%d).\n", rps->num_of_ref); in parse_one_rps() 257 for (j = 0; j < rps->num_of_ref; j++) { in parse_one_rps() 258 READ_BITS(bitctx, 6, &rps->ref_pic[j]); in parse_one_rps() 259 AVS2D_PARSE_TRACE("delta_doi_of_ref_pic[%d]=%d", j, rps->ref_pic[j]); in parse_one_rps() 262 READ_BITS(bitctx, 3, &rps->num_to_remove); in parse_one_rps() [all …]
|
| /rockchip-linux_mpp/mpp/hal/rkdec/h264d/ |
| H A D | hal_h264d_rkv_reg.c | 46 MppBuffer rps; member 53 RK_U8 rps[RKV_RPS_SIZE]; member 565 ®_ctx->reg_buf[i].rps, RKV_RPS_SIZE)); in rkv_h264d_init() 573 reg_ctx->rps_buf = reg_ctx->reg_buf[0].rps; in rkv_h264d_init() 611 mpp_buffer_put(reg_ctx->reg_buf[i].rps); in rkv_h264d_deinit() 645 reg_ctx->rps_buf = reg_ctx->reg_buf[i].rps; in rkv_h264d_gen_regs() 655 prepare_framerps(p_hal, (RK_U64 *)®_ctx->rps, sizeof(reg_ctx->rps)); in rkv_h264d_gen_regs() 669 (void *)reg_ctx->rps, sizeof(reg_ctx->rps)); in rkv_h264d_gen_regs()
|
| H A D | hal_h264d_vdpu34x.c | 134 RK_U8 rps[VDPU34X_RPS_SIZE]; member 956 prepare_framerps(p_hal, (RK_U64 *)&ctx->rps, sizeof(ctx->rps)); in vdpu34x_h264d_gen_regs() 980 memcpy((char *)ctx->bufs_ptr + ctx->rps_offset, (void *)ctx->rps, sizeof(ctx->rps)); in vdpu34x_h264d_gen_regs()
|
| H A D | hal_h264d_vdpu383.c | 81 RK_U8 rps[VDPU383_RPS_SIZE]; member 887 prepare_framerps(p_hal, (RK_U64 *)&ctx->rps, sizeof(ctx->rps) / 8); in vdpu383_h264d_gen_regs() 898 memcpy((char *)ctx->bufs_ptr + ctx->rps_offset, (void *)ctx->rps, sizeof(ctx->rps)); in vdpu383_h264d_gen_regs()
|
| H A D | hal_h264d_vdpu382.c | 138 RK_U8 rps[VDPU382_RPS_SIZE]; member 984 prepare_framerps(p_hal, (RK_U64 *)&ctx->rps, sizeof(ctx->rps)); in vdpu382_h264d_gen_regs() 1008 memcpy((char *)ctx->bufs_ptr + ctx->rps_offset, (void *)ctx->rps, sizeof(ctx->rps)); in vdpu382_h264d_gen_regs()
|
| /rockchip-linux_mpp/mpp/hal/rkdec/h265d/ |
| H A D | hal_h265d_com.c | 275 RK_U8 *rps = NULL; in hal_h265d_slice_rpl() local 278 rps = &dxva_cxt->pp.RefPicSetStCurrBefore[0]; in hal_h265d_slice_rpl() 281 rps = &dxva_cxt->pp.RefPicSetStCurrAfter[0]; in hal_h265d_slice_rpl() 284 rps = &dxva_cxt->pp.RefPicSetLtCurr[0]; in hal_h265d_slice_rpl() 288 rpl_tmp.dpb_index[rpl_tmp.nb_refs] = rps[j]; in hal_h265d_slice_rpl()
|
| /rockchip-linux_mpp/debian/ |
| H A D | changelog | 74 * [h265d]: fix bug: when has no short_rps, it should be has no rps
|