| /linux/drivers/media/platform/mediatek/vcodec/decoder/vdec/ |
| H A D | vdec_h264_req_common.c | 50 const struct slice_h264_dpb_entry *dpb; in mtk_vdec_h264_fill_dpb_info() local 59 dpb = &decode_params->dpb[index]; in mtk_vdec_h264_fill_dpb_info() 60 if (!(dpb->flags & V4L2_H264_DPB_ENTRY_FLAG_ACTIVE)) { in mtk_vdec_h264_fill_dpb_info() 65 vb = vb2_find_buffer(vq, dpb->reference_ts); in mtk_vdec_h264_fill_dpb_info() 69 index, dpb->reference_ts); in mtk_vdec_h264_fill_dpb_info() 74 if (!(dpb->flags & V4L2_H264_DPB_ENTRY_FLAG_LONG_TERM)) in mtk_vdec_h264_fill_dpb_info() 198 const struct v4l2_h264_dpb_entry dpb[V4L2_H264_NUM_DPB_ENTRIES]) in mtk_vdec_h264_copy_decode_params() 204 for (i = 0; i < ARRAY_SIZE(dst_params->dpb); i++) { in mtk_vdec_h264_copy_decode_params() 205 dst_entry = &dst_params->dpb[i]; in mtk_vdec_h264_copy_decode_params() 206 src_entry = &dpb[i]; in mtk_vdec_h264_copy_decode_params() [all …]
|
| H A D | vdec_h264_req_common.h | 138 struct slice_h264_dpb_entry dpb[V4L2_H264_NUM_DPB_ENTRIES]; member 249 const struct v4l2_h264_dpb_entry dpb[V4L2_H264_NUM_DPB_ENTRIES]); 258 struct v4l2_h264_dpb_entry *dpb);
|
| H A D | vdec_hevc_req_multi_if.c | 202 struct slice_hevc_dpb_entry dpb[V4L2_HEVC_DPB_ENTRIES_NUM_MAX]; member 396 const struct slice_hevc_dpb_entry *dpb; in vdec_hevc_fill_dpb_info() local 403 dpb = &decode_params->dpb[index]; in vdec_hevc_fill_dpb_info() 407 vb = vb2_find_buffer(vq, dpb->timestamp); in vdec_hevc_fill_dpb_info() 411 index, dpb->timestamp); in vdec_hevc_fill_dpb_info() 415 hevc_dpb_info[index].field = dpb->field_pic; in vdec_hevc_fill_dpb_info() 557 const struct v4l2_hevc_dpb_entry dpb[V4L2_HEVC_DPB_ENTRIES_NUM_MAX]) in vdec_hevc_copy_decode_params() 563 for (i = 0; i < ARRAY_SIZE(dst_param->dpb); i++) { in vdec_hevc_copy_decode_params() 564 dst_entry = &dst_param->dpb[i]; in vdec_hevc_copy_decode_params() 565 src_entry = &dpb[i]; in vdec_hevc_copy_decode_params() [all …]
|
| H A D | vdec_h264_req_if.c | 93 struct v4l2_h264_dpb_entry dpb[16]; member 129 mtk_vdec_h264_update_dpb(dec_params, inst->dpb); in get_vdec_decode_parameters() 135 dec_params, inst->dpb); in get_vdec_decode_parameters() 141 inst->dpb); in get_vdec_decode_parameters()
|
| H A D | vdec_h264_req_multi_if.c | 261 struct v4l2_h264_dpb_entry dpb[16]; member 344 mtk_vdec_h264_update_dpb(dec_params, inst->dpb); in get_vdec_sig_decode_parameters() 350 mtk_vdec_h264_copy_decode_params(&slice_param->decode_params, dec_params, inst->dpb); in get_vdec_sig_decode_parameters() 355 v4l2_h264_init_reflist_builder(&reflist_builder, dec_params, sps, inst->dpb); in get_vdec_sig_decode_parameters() 381 mtk_vdec_h264_update_dpb(dec_params, inst->dpb); in vdec_h264_slice_fill_decode_reflist() 384 inst->dpb); in vdec_h264_slice_fill_decode_reflist() 391 inst->dpb); in vdec_h264_slice_fill_decode_reflist()
|
| H A D | vdec_vp9_req_lat_if.c | 464 struct vdec_vp9_slice_ref dpb[VB2_MAX_FRAME]; member 1696 instance->dpb[vb->index].width = w; in vdec_vp9_slice_setup_core_buffer() 1697 instance->dpb[vb->index].height = h; in vdec_vp9_slice_setup_core_buffer() 1713 ref->frame_width = instance->dpb[idx].width; in vdec_vp9_slice_setup_core_buffer() 1714 ref->frame_height = instance->dpb[idx].height; in vdec_vp9_slice_setup_core_buffer()
|
| /linux/drivers/media/platform/rockchip/rkvdec/ |
| H A D | rkvdec-vdpu383-h264.c | 133 static void set_field_order_cnt(struct rkvdec_pps *pps, const struct v4l2_h264_dpb_entry *dpb) in set_field_order_cnt() argument 135 pps->top_field_order_cnt0 = dpb[0].top_field_order_cnt; in set_field_order_cnt() 136 pps->bot_field_order_cnt0 = dpb[0].bottom_field_order_cnt; in set_field_order_cnt() 137 pps->top_field_order_cnt1 = dpb[1].top_field_order_cnt; in set_field_order_cnt() 138 pps->bot_field_order_cnt1 = dpb[1].bottom_field_order_cnt; in set_field_order_cnt() 139 pps->top_field_order_cnt2 = dpb[2].top_field_order_cnt; in set_field_order_cnt() 140 pps->bot_field_order_cnt2 = dpb[2].bottom_field_order_cnt; in set_field_order_cnt() 141 pps->top_field_order_cnt3 = dpb[3].top_field_order_cnt; in set_field_order_cnt() 142 pps->bot_field_order_cnt3 = dpb[3].bottom_field_order_cnt; in set_field_order_cnt() 143 pps->top_field_order_cnt4 = dpb[4].top_field_order_cnt; in set_field_order_cnt() [all …]
|
| H A D | rkvdec-h264.c | 115 const struct v4l2_h264_dpb_entry *dpb = dec_params->dpb; in assemble_hw_pps() local 201 for (i = 0; i < ARRAY_SIZE(dec_params->dpb); i++) { in assemble_hw_pps() 204 if (dpb[i].flags & V4L2_H264_DPB_ENTRY_FLAG_LONG_TERM) in assemble_hw_pps() 254 const struct v4l2_h264_dpb_entry *dpb = dec_params->dpb; in config_registers() local 316 for (i = 0; i < ARRAY_SIZE(dec_params->dpb); i++) { in config_registers() 334 base->field_ref = !!(dpb[i].flags & V4L2_H264_DPB_ENTRY_FLAG_FIELD); in config_registers() 335 base->colmv_use_flag_ref = !!(dpb[i].flags & V4L2_H264_DPB_ENTRY_FLAG_ACTIVE); in config_registers() 336 base->topfield_used_ref = !!(dpb[i].fields & V4L2_H264_TOP_FIELD_REF); in config_registers() 337 base->botfield_used_ref = !!(dpb[i].fields & V4L2_H264_BOTTOM_FIELD_REF); in config_registers() 339 set_poc_reg(regs, dpb[i].top_field_order_cnt, i, false); in config_registers() [all …]
|
| H A D | rkvdec-vdpu381-h264.c | 93 const struct v4l2_h264_dpb_entry *dpb = dec_params->dpb; in assemble_hw_pps() local 180 for (i = 0; i < ARRAY_SIZE(dec_params->dpb); i++) { in assemble_hw_pps() 181 if (dpb[i].flags & V4L2_H264_DPB_ENTRY_FLAG_LONG_TERM) in assemble_hw_pps() 212 const struct v4l2_h264_dpb_entry *dpb = dec_params->dpb; in config_registers() local 297 for (i = 0; i < ARRAY_SIZE(dec_params->dpb); i++) { in config_registers() 320 !!(dpb[i].flags & V4L2_H264_DPB_ENTRY_FLAG_FIELD); in config_registers() 322 !!(dpb[i].flags & V4L2_H264_DPB_ENTRY_FLAG_ACTIVE); in config_registers() 324 !!(dpb[i].fields & V4L2_H264_TOP_FIELD_REF); in config_registers() 326 !!(dpb[i].fields & V4L2_H264_BOTTOM_FIELD_REF); in config_registers() 329 dpb[i].top_field_order_cnt; in config_registers() [all …]
|
| H A D | rkvdec-vdpu383-hevc.c | 200 … void set_pps_ref_pic_poc(struct rkvdec_hevc_sps_pps *hw_ps, const struct v4l2_hevc_dpb_entry *dpb) in set_pps_ref_pic_poc() argument 202 hw_ps->ref_pic_poc0 = dpb[0].pic_order_cnt_val; in set_pps_ref_pic_poc() 203 hw_ps->ref_pic_poc1 = dpb[1].pic_order_cnt_val; in set_pps_ref_pic_poc() 204 hw_ps->ref_pic_poc2 = dpb[2].pic_order_cnt_val; in set_pps_ref_pic_poc() 205 hw_ps->ref_pic_poc3 = dpb[3].pic_order_cnt_val; in set_pps_ref_pic_poc() 206 hw_ps->ref_pic_poc4 = dpb[4].pic_order_cnt_val; in set_pps_ref_pic_poc() 207 hw_ps->ref_pic_poc5 = dpb[5].pic_order_cnt_val; in set_pps_ref_pic_poc() 208 hw_ps->ref_pic_poc6 = dpb[6].pic_order_cnt_val; in set_pps_ref_pic_poc() 209 hw_ps->ref_pic_poc7 = dpb[7].pic_order_cnt_val; in set_pps_ref_pic_poc() 210 hw_ps->ref_pic_poc8 = dpb[8].pic_order_cnt_val; in set_pps_ref_pic_poc() [all …]
|
| H A D | rkvdec-hevc.c | 317 const struct v4l2_hevc_dpb_entry *dpb; in assemble_sw_rps() local 342 dpb = decode_params->dpb; in assemble_sw_rps() 359 const struct v4l2_hevc_dpb_entry dpb_l0 = dpb[sl_params->ref_idx_l0[i]]; in assemble_sw_rps() 370 const struct v4l2_hevc_dpb_entry dpb_l1 = dpb[sl_params->ref_idx_l1[i]]; in assemble_sw_rps() 409 const struct v4l2_hevc_dpb_entry *dpb = decode_params->dpb; in config_registers() local 487 ? dpb[i].pic_order_cnt_val in config_registers()
|
| H A D | rkvdec-vdpu381-hevc.c | 383 const struct v4l2_hevc_dpb_entry *dpb = dec_params->dpb; in config_registers() local 461 for (i = 0; i < ARRAY_SIZE(dec_params->dpb); i++) { in config_registers() 473 dpb[i].pic_order_cnt_val; in config_registers()
|
| /linux/drivers/media/v4l2-core/ |
| H A D | v4l2-h264.c | 34 const struct v4l2_h264_dpb_entry dpb[V4L2_H264_NUM_DPB_ENTRIES]) in v4l2_h264_init_reflist_builder() 56 if (!(dpb[i].flags & V4L2_H264_DPB_ENTRY_FLAG_ACTIVE)) in v4l2_h264_init_reflist_builder() 59 if (dpb[i].flags & V4L2_H264_DPB_ENTRY_FLAG_LONG_TERM) in v4l2_h264_init_reflist_builder() 68 if (!b->refs[i].longterm && dpb[i].frame_num > cur_frame_num) in v4l2_h264_init_reflist_builder() 69 b->refs[i].frame_num = (int)dpb[i].frame_num - in v4l2_h264_init_reflist_builder() 72 b->refs[i].frame_num = dpb[i].frame_num; in v4l2_h264_init_reflist_builder() 74 b->refs[i].top_field_order_cnt = dpb[i].top_field_order_cnt; in v4l2_h264_init_reflist_builder() 75 b->refs[i].bottom_field_order_cnt = dpb[i].bottom_field_order_cnt; in v4l2_h264_init_reflist_builder() 86 if (dpb[i].fields & V4L2_H264_TOP_FIELD_REF) { in v4l2_h264_init_reflist_builder() 94 if (dpb[i].fields & V4L2_H264_BOTTOM_FIELD_REF) { in v4l2_h264_init_reflist_builder()
|
| H A D | v4l2-ctrls-core.c | 1187 &p_h264_dec_params->dpb[i]; in std_validate_compound()
|
| /linux/drivers/staging/media/sunxi/cedrus/ |
| H A D | cedrus_h264.c | 104 for (i = 0; i < ARRAY_SIZE(decode->dpb); i++) { in cedrus_write_frame_list() 105 const struct v4l2_h264_dpb_entry *dpb = &decode->dpb[i]; in cedrus_write_frame_list() local 109 if (!(dpb->flags & V4L2_H264_DPB_ENTRY_FLAG_VALID)) in cedrus_write_frame_list() 112 buf = vb2_find_buffer(cap_q, dpb->reference_ts); in cedrus_write_frame_list() 120 if (run->dst->vb2_buf.timestamp == dpb->reference_ts) { in cedrus_write_frame_list() 125 if (!(dpb->flags & V4L2_H264_DPB_ENTRY_FLAG_ACTIVE)) in cedrus_write_frame_list() 129 dpb->top_field_order_cnt, in cedrus_write_frame_list() 130 dpb->bottom_field_order_cnt, in cedrus_write_frame_list() 206 const struct v4l2_h264_dpb_entry *dpb; in _cedrus_write_ref_list() local 213 dpb = &decode->dpb[dpb_idx]; in _cedrus_write_ref_list() [all …]
|
| H A D | cedrus_h265.c | 149 const struct v4l2_hevc_dpb_entry *dpb, in cedrus_h265_frame_info_write_dpb() argument 157 struct vb2_buffer *buf = vb2_find_buffer(vq, dpb[i].timestamp); in cedrus_h265_frame_info_write_dpb() 159 dpb[i].pic_order_cnt_val, in cedrus_h265_frame_info_write_dpb() 160 dpb[i].pic_order_cnt_val in cedrus_h265_frame_info_write_dpb() 166 cedrus_h265_frame_info_write_single(ctx, i, dpb[i].field_pic, in cedrus_h265_frame_info_write_dpb() 173 const struct v4l2_hevc_dpb_entry *dpb, in cedrus_h265_ref_pic_list_write() argument 188 if (dpb[index].flags & V4L2_HEVC_DPB_ENTRY_LONG_TERM_REFERENCE) in cedrus_h265_ref_pic_list_write() 336 const struct v4l2_hevc_dpb_entry *dpb; in cedrus_h265_is_low_delay() local 342 dpb = run->h265.decode_params->dpb; in cedrus_h265_is_low_delay() 345 if (dpb[slice_params->ref_idx_l0[i]].pic_order_cnt_val > poc) in cedrus_h265_is_low_delay() [all …]
|
| /linux/include/media/ |
| H A D | v4l2-h264.h | 52 const struct v4l2_h264_dpb_entry dpb[V4L2_H264_NUM_DPB_ENTRIES]);
|
| /linux/drivers/media/platform/samsung/s5p-mfc/ |
| H A 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() 1069 unsigned int dpb; in s5p_mfc_set_flush() local 1072 dpb = mfc_read(dev, S5P_FIMV_SI_CH0_DPB_CONF_CTRL) | ( in s5p_mfc_set_flush() 1075 dpb = mfc_read(dev, S5P_FIMV_SI_CH0_DPB_CONF_CTRL) & in s5p_mfc_set_flush() 1077 mfc_write(dev, dpb, S5P_FIMV_SI_CH0_DPB_CONF_CTRL); in s5p_mfc_set_flush()
|
| /linux/drivers/media/platform/st/sti/delta/ |
| H A D | delta.h | 71 u32 dpb; member
|
| H A D | delta-mjpeg-dec.c | 364 streaminfo->dpb = 1; in delta_mjpeg_get_streaminfo()
|
| H A D | delta-v4l2.c | 1442 *num_buffers += streaminfo->dpb + DELTA_PEAK_FRAME_SMOOTHING; in delta_vb2_frame_queue_setup()
|