Home
last modified time | relevance | path

Searched refs:dpb (Results 1 – 18 of 18) sorted by relevance

/Linux-v5.15/drivers/staging/media/hantro/
Dhantro_h264.c231 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 …]
Dhantro_g2_hevc_dec.c272 static int find_ref_pic_index(const struct v4l2_hevc_dpb_entry *dpb, int pic_order_cnt) in find_ref_pic_index() argument
277 if (dpb[i].pic_order_cnt[0] == pic_order_cnt) in find_ref_pic_index()
289 const struct v4l2_hevc_dpb_entry *dpb = decode_params->dpb; in set_ref_pic_list() local
333 list0[j++] = find_ref_pic_index(dpb, decode_params->poc_st_curr_before[i]); in set_ref_pic_list()
335 list0[j++] = find_ref_pic_index(dpb, decode_params->poc_st_curr_after[i]); in set_ref_pic_list()
337 list0[j++] = find_ref_pic_index(dpb, decode_params->poc_lt_curr[i]); in set_ref_pic_list()
346 list1[j++] = find_ref_pic_index(dpb, decode_params->poc_st_curr_after[i]); in set_ref_pic_list()
348 list1[j++] = find_ref_pic_index(dpb, decode_params->poc_st_curr_before[i]); in set_ref_pic_list()
350 list1[j++] = find_ref_pic_index(dpb, decode_params->poc_lt_curr[i]); in set_ref_pic_list()
368 const struct v4l2_hevc_dpb_entry *dpb = decode_params->dpb; in set_ref() local
[all …]
Dhantro_hw.h97 struct v4l2_h264_dpb_entry dpb[HANTRO_H264_DPB_SIZE]; member
/Linux-v5.15/drivers/media/v4l2-core/
Dv4l2-h264.c28 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 …]
Dv4l2-ctrls-core.c551 &p_h264_dec_params->dpb[i]; in std_validate_compound()
630 &p_hevc_decode_params->dpb[i]; in std_validate_compound()
/Linux-v5.15/drivers/staging/media/rkvdec/
Drkvdec-h264.c642 const struct v4l2_h264_dpb_entry *dpb = dec_params->dpb; in assemble_hw_pps() local
718 for (i = 0; i < ARRAY_SIZE(dec_params->dpb); i++) { in assemble_hw_pps()
721 if (dpb[i].flags & V4L2_H264_DPB_ENTRY_FLAG_LONG_TERM) in assemble_hw_pps()
732 const struct v4l2_h264_dpb_entry *dpb = dec_params->dpb; in assemble_hw_rps() local
750 for (i = 0; i < ARRAY_SIZE(dec_params->dpb); i++) { in assemble_hw_rps()
751 if (!(dpb[i].flags & V4L2_H264_DPB_ENTRY_FLAG_ACTIVE)) in assemble_hw_rps()
754 if (dpb[i].flags & V4L2_H264_DPB_ENTRY_FLAG_LONG_TERM || in assemble_hw_rps()
755 dpb[i].frame_num < dec_params->frame_num) { in assemble_hw_rps()
756 p[i] = dpb[i].frame_num; in assemble_hw_rps()
760 p[i] = dpb[i].frame_num - max_frame_num; in assemble_hw_rps()
[all …]
/Linux-v5.15/drivers/staging/media/sunxi/cedrus/
Dcedrus_h264.c111 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 …]
Dcedrus_h265.c136 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()
150 cedrus_h265_frame_info_write_single(ctx, i, dpb[i].field_pic, in cedrus_h265_frame_info_write_dpb()
157 const struct v4l2_hevc_dpb_entry *dpb, in cedrus_h265_ref_pic_list_write() argument
172 if (dpb[index].rps == V4L2_HEVC_DPB_ENTRY_RPS_LT_CURR) in cedrus_h265_ref_pic_list_write()
538 cedrus_h265_frame_info_write_dpb(ctx, decode_params->dpb, in cedrus_h265_setup()
556 cedrus_h265_ref_pic_list_write(dev, decode_params->dpb, in cedrus_h265_setup()
575 cedrus_h265_ref_pic_list_write(dev, decode_params->dpb, in cedrus_h265_setup()
/Linux-v5.15/include/media/
Dv4l2-h264.h48 const struct v4l2_h264_dpb_entry dpb[V4L2_H264_NUM_DPB_ENTRIES]);
Dhevc-ctrls.h218 struct v4l2_hevc_dpb_entry dpb[V4L2_HEVC_DPB_ENTRIES_NUM_MAX]; member
/Linux-v5.15/drivers/media/platform/sti/delta/
Ddelta-debug.c21 s->profile, s->level, s->dpb, in delta_streaminfo_str()
Ddelta.h71 u32 dpb; member
Ddelta-mjpeg-dec.c364 streaminfo->dpb = 1; in delta_mjpeg_get_streaminfo()
Ddelta-v4l2.c1438 *num_buffers += streaminfo->dpb + DELTA_PEAK_FRAME_SMOOTHING; in delta_vb2_frame_queue_setup()
/Linux-v5.15/drivers/media/platform/s5p-mfc/
Ds5p_mfc_opr_v5.c381 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()
/Linux-v5.15/Documentation/userspace-api/media/v4l/
Dext-ctrls-codec-stateless.rst489 - Index into the :c:type:`v4l2_ctrl_h264_decode_params`.dpb array.
544 - ``dpb[16]``
Dext-ctrls-codec.rst3311 - The number of entries in ``dpb``.
3313 - ``dpb[V4L2_HEVC_DPB_ENTRIES_NUM_MAX]``
/Linux-v5.15/include/uapi/linux/
Dv4l2-controls.h1582 struct v4l2_h264_dpb_entry dpb[V4L2_H264_NUM_DPB_ENTRIES]; member