/drivers/staging/media/hantro/ |
D | hantro_h264.c | 231 const struct v4l2_h264_dpb_entry *dpb = ctx->h264_dec.dpb; in prepare_table() local 237 tbl->poc[i * 2] = dpb[i].top_field_order_cnt; in prepare_table() 238 tbl->poc[i * 2 + 1] = dpb[i].bottom_field_order_cnt; in prepare_table() 244 if (dpb[i].flags & V4L2_H264_DPB_ENTRY_FLAG_ACTIVE) in prepare_table() 246 if (dpb[i].flags & V4L2_H264_DPB_ENTRY_FLAG_LONG_TERM) in prepare_table() 268 DECLARE_BITMAP(new, ARRAY_SIZE(dec_param->dpb)) = { 0, }; in update_dpb() 269 DECLARE_BITMAP(used, ARRAY_SIZE(dec_param->dpb)) = { 0, }; in update_dpb() 275 for (i = 0; i < ARRAY_SIZE(ctx->h264_dec.dpb); i++) in update_dpb() 276 ctx->h264_dec.dpb[i].flags &= ~V4L2_H264_DPB_ENTRY_FLAG_ACTIVE; in update_dpb() 279 for (i = 0; i < ARRAY_SIZE(dec_param->dpb); i++) { in update_dpb() [all …]
|
D | hantro_g2_hevc_dec.c | 350 const struct v4l2_hevc_dpb_entry *dpb = decode_params->dpb; in set_ref() local 396 char poc_diff = decode_params->pic_order_cnt_val - dpb[i].pic_order_cnt[0]; in set_ref() 423 luma_addr = hantro_hevc_get_ref_buf(ctx, dpb[i].pic_order_cnt[0]); in set_ref() 430 if (dpb[i].rps == V4L2_HEVC_DPB_ENTRY_RPS_LT_CURR) in set_ref()
|
D | hantro_hw.h | 97 struct v4l2_h264_dpb_entry dpb[HANTRO_H264_DPB_SIZE]; member
|
/drivers/media/v4l2-core/ |
D | v4l2-h264.c | 28 const struct v4l2_h264_dpb_entry dpb[V4L2_H264_NUM_DPB_ENTRIES]) in v4l2_h264_init_reflist_builder() 48 if (!(dpb[i].flags & V4L2_H264_DPB_ENTRY_FLAG_ACTIVE)) in v4l2_h264_init_reflist_builder() 51 b->refs[i].pic_num = dpb[i].pic_num; in v4l2_h264_init_reflist_builder() 52 if (dpb[i].flags & V4L2_H264_DPB_ENTRY_FLAG_LONG_TERM) in v4l2_h264_init_reflist_builder() 61 if (dpb[i].frame_num > cur_frame_num) in v4l2_h264_init_reflist_builder() 62 b->refs[i].frame_num = (int)dpb[i].frame_num - in v4l2_h264_init_reflist_builder() 65 b->refs[i].frame_num = dpb[i].frame_num; in v4l2_h264_init_reflist_builder() 67 if (dpb[i].fields == V4L2_H264_FRAME_REF) in v4l2_h264_init_reflist_builder() 68 pic_order_count = min(dpb[i].top_field_order_cnt, in v4l2_h264_init_reflist_builder() 69 dpb[i].bottom_field_order_cnt); in v4l2_h264_init_reflist_builder() [all …]
|
D | v4l2-ctrls-core.c | 561 &p_h264_dec_params->dpb[i]; in std_validate_compound() 640 &p_hevc_decode_params->dpb[i]; in std_validate_compound()
|
/drivers/staging/media/rkvdec/ |
D | rkvdec-h264.c | 643 const struct v4l2_h264_dpb_entry *dpb = dec_params->dpb; in assemble_hw_pps() local 719 for (i = 0; i < ARRAY_SIZE(dec_params->dpb); i++) { in assemble_hw_pps() 722 if (dpb[i].flags & V4L2_H264_DPB_ENTRY_FLAG_LONG_TERM) in assemble_hw_pps() 735 for (i = 0; i < ARRAY_SIZE(dec_params->dpb); i++) { in lookup_ref_buf_idx() 737 const struct v4l2_h264_dpb_entry *dpb = run->decode_params->dpb; in lookup_ref_buf_idx() local 741 if (dpb[i].flags & V4L2_H264_DPB_ENTRY_FLAG_ACTIVE) in lookup_ref_buf_idx() 743 dpb[i].reference_ts, 0); in lookup_ref_buf_idx() 753 const struct v4l2_h264_dpb_entry *dpb = dec_params->dpb; in assemble_hw_rps() local 771 for (i = 0; i < ARRAY_SIZE(dec_params->dpb); i++) { in assemble_hw_rps() 772 if (!(dpb[i].flags & V4L2_H264_DPB_ENTRY_FLAG_ACTIVE)) in assemble_hw_rps() [all …]
|
/drivers/staging/media/sunxi/cedrus/ |
D | cedrus_h264.c | 111 for (i = 0; i < ARRAY_SIZE(decode->dpb); i++) { in cedrus_write_frame_list() 112 const struct v4l2_h264_dpb_entry *dpb = &decode->dpb[i]; in cedrus_write_frame_list() local 116 if (!(dpb->flags & V4L2_H264_DPB_ENTRY_FLAG_VALID)) in cedrus_write_frame_list() 119 buf_idx = vb2_find_timestamp(cap_q, dpb->reference_ts, 0); in cedrus_write_frame_list() 127 if (run->dst->vb2_buf.timestamp == dpb->reference_ts) { in cedrus_write_frame_list() 132 if (!(dpb->flags & V4L2_H264_DPB_ENTRY_FLAG_ACTIVE)) in cedrus_write_frame_list() 136 dpb->top_field_order_cnt, in cedrus_write_frame_list() 137 dpb->bottom_field_order_cnt, in cedrus_write_frame_list() 186 const struct v4l2_h264_dpb_entry *dpb; in _cedrus_write_ref_list() local 193 dpb = &decode->dpb[dpb_idx]; in _cedrus_write_ref_list() [all …]
|
D | cedrus_h265.c | 136 const struct v4l2_hevc_dpb_entry *dpb, in cedrus_h265_frame_info_write_dpb() argument 144 int buffer_index = vb2_find_timestamp(vq, dpb[i].timestamp, 0); in cedrus_h265_frame_info_write_dpb() 146 dpb[i].pic_order_cnt[0], in cedrus_h265_frame_info_write_dpb() 147 dpb[i].pic_order_cnt[1] in cedrus_h265_frame_info_write_dpb() 153 cedrus_h265_frame_info_write_single(ctx, i, dpb[i].field_pic, in cedrus_h265_frame_info_write_dpb() 160 const struct v4l2_hevc_dpb_entry *dpb, in cedrus_h265_ref_pic_list_write() argument 175 if (dpb[index].rps == V4L2_HEVC_DPB_ENTRY_RPS_LT_CURR) in cedrus_h265_ref_pic_list_write() 544 cedrus_h265_frame_info_write_dpb(ctx, decode_params->dpb, in cedrus_h265_setup() 562 cedrus_h265_ref_pic_list_write(dev, decode_params->dpb, in cedrus_h265_setup() 581 cedrus_h265_ref_pic_list_write(dev, decode_params->dpb, in cedrus_h265_setup()
|
/drivers/media/platform/sti/delta/ |
D | delta-debug.c | 21 s->profile, s->level, s->dpb, in delta_streaminfo_str()
|
D | delta.h | 71 u32 dpb; member
|
D | delta-mjpeg-dec.c | 364 streaminfo->dpb = 1; in delta_mjpeg_get_streaminfo()
|
D | delta-v4l2.c | 1438 *num_buffers += streaminfo->dpb + DELTA_PEAK_FRAME_SMOOTHING; in delta_vb2_frame_queue_setup()
|
/drivers/media/platform/s5p-mfc/ |
D | s5p_mfc_opr_v5.c | 381 unsigned int dpb; in s5p_mfc_set_dec_frame_buffer_v5() local 389 dpb = mfc_read(dev, S5P_FIMV_SI_CH0_DPB_CONF_CTRL) & in s5p_mfc_set_dec_frame_buffer_v5() 391 mfc_write(dev, ctx->total_dpb_count | dpb, in s5p_mfc_set_dec_frame_buffer_v5() 1067 unsigned int dpb; in s5p_mfc_set_flush() local 1070 dpb = mfc_read(dev, S5P_FIMV_SI_CH0_DPB_CONF_CTRL) | ( in s5p_mfc_set_flush() 1073 dpb = mfc_read(dev, S5P_FIMV_SI_CH0_DPB_CONF_CTRL) & in s5p_mfc_set_flush() 1075 mfc_write(dev, dpb, S5P_FIMV_SI_CH0_DPB_CONF_CTRL); in s5p_mfc_set_flush()
|