| /OK3568_Linux_fs/external/mpp/mpp/codec/dec/h265/ |
| H A D | h265d_refs.c | 48 h265d_dbg(H265D_DBG_REF, "poc %d clr ref index %d", frame->poc, frame->slot_index); in mpp_hevc_unref_frame() 51 …h265d_dbg(H265D_DBG_REF, "unref_frame poc %d frame->slot_index %d \n", frame->poc, frame->slot_ind… in mpp_hevc_unref_frame() 52 frame->poc = INT_MAX; in mpp_hevc_unref_frame() 130 mpp_frame_set_poc(frame->frame, s->poc); in alloc_frame() 146 s->poc, s->h265dctx->coded_width, s->h265dctx->coded_height); in alloc_frame() 155 int mpp_hevc_set_new_ref(HEVCContext *s, MppFrame *mframe, int poc) in mpp_hevc_set_new_ref() argument 166 frame->poc == poc && !s->nuh_layer_id) { in mpp_hevc_set_new_ref() 168 poc); in mpp_hevc_set_new_ref() 181 ref->poc = poc; in mpp_hevc_set_new_ref() 182 h265d_dbg(H265D_DBG_REF, "alloc frame poc %d slot_index %d", poc, ref->slot_index); in mpp_hevc_set_new_ref() [all …]
|
| H A D | h265d_parser.c | 439 if (nb_sh + nb_sps > MPP_ARRAY_ELEMS(rps->poc)) in decode_lt_rps() 453 rps->poc[i] = sps->lt_ref_pic_poc_lsb_sps[lt_idx_sps]; in decode_lt_rps() 456 READ_BITS(gb, sps->log2_max_poc_lsb, &rps->poc[i]); in decode_lt_rps() 469 rps->poc[i] += s->poc - delta * max_poc_lsb - s->sh.pic_order_cnt_lsb; in decode_lt_rps() 824 int poc; in hls_slice_header() local 827 poc = mpp_hevc_compute_poc(s, sh->pic_order_cnt_lsb); in hls_slice_header() 828 if (!sh->first_slice_in_pic_flag && poc != s->poc) { in hls_slice_header() 829 mpp_log("Ignoring POC change between slices: %d -> %d\n", s->poc, poc); in hls_slice_header() 834 poc = s->poc; in hls_slice_header() 836 s->poc = poc; in hls_slice_header() [all …]
|
| H A D | h265d_parser2_syntax.c | 146 … h->recovery.first_frm_id == current_picture->poc)); in fill_picture_parameters() 167 pp->CurrPicOrderCntVal = h->poc; in fill_picture_parameters() 208 pp->current_poc = current_picture->poc; in fill_picture_parameters() 216 if (rps_used[k] == (RK_U32)h->DPB[j].poc) { in fill_picture_parameters() 226 pp->PicOrderCntValList[i] = frame->poc; in fill_picture_parameters()
|
| H A D | h265d_parser.h | 71 RK_S32 poc[32]; member 452 RK_S32 poc; member 518 RK_S32 poc; member 675 RK_S32 mpp_hevc_set_new_ref(HEVCContext *s, MppFrame *frame, RK_S32 poc);
|
| /OK3568_Linux_fs/external/mpp/mpp/codec/enc/h265/ |
| H A D | h265e_dpb.c | 146 memset(rps_list->poc, 0, sizeof(rps_list->poc)); in h265e_dpb_init() 210 static inline int getLSB(int poc, int maxLSB) in getLSB() argument 212 if (poc >= 0) { in getLSB() 213 return poc % maxLSB; in getLSB() 215 return (maxLSB - ((-poc) % maxLSB)) % maxLSB; in getLSB() 274 …h265e_dbg_dpb("outPic->slice->poc %d,curPoc %d dealt %d", outPic->slice->poc, curPoc, rps->delta_p… in h265e_dpb_apply_rps() 275 if (!outPic->is_long_term && outPic->slice->poc == curPoc + rps->delta_poc[i]) { in h265e_dpb_apply_rps() 284 if (outPic->is_long_term && (outPic->slice->poc == rps->m_RealPoc[i])) { in h265e_dpb_apply_rps() 289 if (outPic->is_long_term && (outPic->slice->poc == rps->m_RealPoc[i])) { in h265e_dpb_apply_rps() 298 if (outPic->slice->poc != curPoc && isReference == 0) { in h265e_dpb_apply_rps() [all …]
|
| H A D | h265e_slice.c | 25 H265eDpbFrm* get_ref_pic(H265eDpbFrm *frame_list, RK_S32 poc) in get_ref_pic() argument 33 if (frame->inited && frame->poc == poc) { in get_ref_pic() 41 H265eDpbFrm* get_lt_ref_pic(H265eDpbFrm *frame_list, H265eSlice *slice, RK_S32 poc, RK_U32 pocHasMs… in get_lt_ref_pic() argument 50 poc = poc % pocCycle; in get_lt_ref_pic() 55 if (frame->on_used && frame->poc != slice->poc && frame->slice->is_referenced) { in get_lt_ref_pic() 56 RK_S32 picPoc = frame->poc; in get_lt_ref_pic() 61 if (poc == picPoc) { in get_lt_ref_pic() 95 refPic = get_ref_pic(frame_list, slice->poc + rps->delta_poc[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() 199 slice->m_refPOCList[dir][numRefIdx] = slice->m_refPicList[dir][numRefIdx]->poc; in h265e_slice_set_ref_poc_list() [all …]
|
| H A D | h265e_dpb.h | 78 RK_S32 poc; member 93 RK_S32 poc[RPSLIST_MAX]; member
|
| H A D | h265e_slice.h | 67 RK_S32 poc[MAX_REFS]; member 348 RK_S32 poc; member
|
| H A D | h265e_syntax.c | 187 sp->sli_poc_lsb = (slice->poc - slice->last_idr + (1 << slice->m_sps->m_bitsForPOC)) % in fill_slice_parameters() 245 RK_U32 lsb = rps->poc[k] % (1 << slice->m_sps->m_bitsForPOC); in fill_ref_parameters()
|
| /OK3568_Linux_fs/external/mpp/mpp/codec/dec/h264/ |
| H A D | h264d_init.c | 276 p_stored_pic->poc = p_pic->poc; in clone_storable_picture() 321 RK_S32 poc = 0; in init_mvc_picture() local 334 poc = fs->frame->is_mmco_5 ? fs->frame->poc_mmco5 : fs->frame->poc; in init_mvc_picture() 336 if (fs->frame && (fs->frame->layer_id == 0) && (poc == currSlice->framepoc)) { in init_mvc_picture() 347 … poc = fs->top_field->is_mmco_5 ? fs->top_field->top_poc_mmco5 : fs->top_field->top_poc; in init_mvc_picture() 349 if (fs->top_field && (fs->top_field->layer_id == 0) && (poc == currSlice->toppoc)) { in init_mvc_picture() 360 …poc = fs->bottom_field->is_mmco_5 ? fs->bottom_field->bot_poc_mmco5 : fs->bottom_field->bottom_poc; in init_mvc_picture() 362 … if (fs->bottom_field && (fs->bottom_field->layer_id == 0) && (poc == currSlice->bottompoc)) { in init_mvc_picture() 552 impl->poc = dec_pic->poc; in dpb_mark_malloc() 619 …slice_type, dec_pic->slice_type, p_last->frame_num, dec_pic->frame_num, p_last->poc, dec_pic->poc); in check_dpb_discontinuous() [all …]
|
| H A D | h264d_dpb.c | 731 static RK_S32 get_smallest_poc(H264_DpbBuf_t *p_Dpb, RK_S32 *poc, RK_S32 *pos) in get_smallest_poc() argument 739 *poc = INT_MAX; in get_smallest_poc() 741 if (min_poc > p_Dpb->fs[i]->poc) { in get_smallest_poc() 742 min_poc = p_Dpb->fs[i]->poc; in get_smallest_poc() 745 if ((*poc > p_Dpb->fs[i]->poc) && (!p_Dpb->fs[i]->is_output)) { in get_smallest_poc() 746 *poc = p_Dpb->fs[i]->poc; in get_smallest_poc() 752 *poc = min_poc; in get_smallest_poc() 807 …fs->poc = fs->frame->poc = fs->frame->frame_poc = MPP_MIN(fs->top_field->poc, fs->bottom_field->po… in dpb_combine_field_yuv() 808 fs->bottom_field->frame_poc = fs->top_field->frame_poc = fs->frame->poc; in dpb_combine_field_yuv() 809 fs->bottom_field->top_poc = fs->frame->top_poc = fs->top_field->poc; in dpb_combine_field_yuv() [all …]
|
| H A D | h264d_api.c | 709 mpp_frame_get_poc(frame), output, i, refer[i], tmp->poc, error); in h264d_callback() 713 mpp_frame_get_poc(frame), i, refer[i], tmp->poc, error); in h264d_callback()
|
| H A D | h264d_global.h | 305 RK_S32 poc; member 372 RK_S32 poc; member
|
| /OK3568_Linux_fs/kernel/drivers/staging/media/hantro/ |
| H A D | hantro_h264.c | 28 u32 poc[POC_BUFFER_SIZE]; member 235 tbl->poc[i * 2] = dpb[i].top_field_order_cnt; in prepare_table() 236 tbl->poc[i * 2 + 1] = dpb[i].bottom_field_order_cnt; in prepare_table() 239 tbl->poc[32] = dec_param->top_field_order_cnt; in prepare_table() 240 tbl->poc[33] = dec_param->bottom_field_order_cnt; in prepare_table()
|
| /OK3568_Linux_fs/external/mpp/mpp/codec/enc/h264/ |
| H A D | h264e_dpb.c | 532 p->poc = 0; in h264e_dpb_proc() 554 p->poc = curr_poc_lsb + curr_poc_msb * dpb->max_poc_lsb; in h264e_dpb_proc() 568 seq_idx, i, p->frame_num, p->poc); in h264e_dpb_proc() 674 tmp->seq_idx, tmp->frame_num, tmp->poc); in h264e_dpb_check() 687 if (tmp->poc < small_poc) { in h264e_dpb_check() 689 small_poc = tmp->poc; in h264e_dpb_check() 692 tmp->seq_idx, tmp->poc); in h264e_dpb_check() 698 unref->seq_idx, unref->poc); in h264e_dpb_check()
|
| H A D | h264e_dpb.h | 73 RK_S32 poc; member
|
| /OK3568_Linux_fs/external/mpp/mpp/common/ |
| H A D | h265e_syntax.h | 31 RK_U32 poc; member
|
| /OK3568_Linux_fs/external/mpp/mpp/base/inc/ |
| H A D | mpp_frame_impl.h | 118 RK_U32 poc; member
|
| /OK3568_Linux_fs/external/mpp/mpp/hal/rkdec/h265d/ |
| H A D | hal_h265d_com.h | 63 RK_S32 poc[32]; member
|
| /OK3568_Linux_fs/kernel/drivers/media/platform/mtk-vcodec/vdec/ |
| H A D | vdec_h264_if.c | 47 int32_t poc; member 456 fb->status, list->fb_list[list->read_idx].poc, in vdec_h264_get_fb()
|
| /OK3568_Linux_fs/external/mpp/mpp/base/ |
| H A D | mpp_frame.cpp | 284 MPP_FRAME_ACCESSORS(RK_U32, poc)
|
| /OK3568_Linux_fs/external/mpp/mpp/hal/vpu/vp8e/ |
| H A D | hal_vp8e_base.h | 187 RK_S32 poc; member
|
| H A D | hal_vp8e_base.c | 613 refPic->poc = -1; in reset_refpic() 1438 pic_buf->cur_pic->poc = ctx->frame_cnt; in hal_vp8e_enc_strm_code()
|
| /OK3568_Linux_fs/external/rknpu2/examples/3rdparty/mpp/include/rockchip/ |
| H A D | mpp_frame.h | 367 void mpp_frame_set_poc(MppFrame frame, RK_U32 poc);
|
| /OK3568_Linux_fs/external/mpp/inc/ |
| H A D | mpp_frame.h | 366 void mpp_frame_set_poc(MppFrame frame, RK_U32 poc);
|