Home
last modified time | relevance | path

Searched refs:dec_param (Results 1 – 8 of 8) sorted by relevance

/openbmc/linux/drivers/media/platform/mediatek/vcodec/decoder/vdec/
H A Dvdec_h264_req_common.c151 const struct v4l2_ctrl_h264_decode_params *dec_param) in mtk_vdec_h264_copy_slice_hd_params() argument
165 dst_param->frame_num = dec_param->frame_num; in mtk_vdec_h264_copy_slice_hd_params()
169 dec_param->delta_pic_order_cnt_bottom; in mtk_vdec_h264_copy_slice_hd_params()
171 dec_param->delta_pic_order_cnt0; in mtk_vdec_h264_copy_slice_hd_params()
173 dec_param->delta_pic_order_cnt1; in mtk_vdec_h264_copy_slice_hd_params()
244 DECLARE_BITMAP(new, ARRAY_SIZE(dec_param->dpb)) = { 0, }; in mtk_vdec_h264_update_dpb()
250 for (i = 0; i < ARRAY_SIZE(dec_param->dpb); i++) { in mtk_vdec_h264_update_dpb()
257 for (i = 0; i < ARRAY_SIZE(dec_param->dpb); i++) { in mtk_vdec_h264_update_dpb()
281 if (j == ARRAY_SIZE(dec_param->dpb)) in mtk_vdec_h264_update_dpb()
286 for_each_set_bit(i, new, ARRAY_SIZE(dec_param->dpb)) { in mtk_vdec_h264_update_dpb()
[all …]
H A Dvdec_h264_req_common.h225 const struct v4l2_ctrl_h264_decode_params *dec_param);
254 void mtk_vdec_h264_update_dpb(const struct v4l2_ctrl_h264_decode_params *dec_param,
/openbmc/linux/drivers/media/platform/verisilicon/
H A Dhantro_h264.c257 if (dec_param->flags & V4L2_H264_DECODE_PARAM_FLAG_FIELD_PIC) { in prepare_table()
283 tbl->poc[32] = dec_param->top_field_order_cnt; in prepare_table()
284 tbl->poc[33] = dec_param->bottom_field_order_cnt; in prepare_table()
298 const struct v4l2_ctrl_h264_decode_params *dec_param; in update_dpb() local
299 DECLARE_BITMAP(new, ARRAY_SIZE(dec_param->dpb)) = { 0, }; in update_dpb()
300 DECLARE_BITMAP(used, ARRAY_SIZE(dec_param->dpb)) = { 0, }; in update_dpb()
303 dec_param = ctx->h264_dec.ctrls.decode; in update_dpb()
310 for (i = 0; i < ARRAY_SIZE(dec_param->dpb); i++) { in update_dpb()
311 const struct v4l2_h264_dpb_entry *ndpb = &dec_param->dpb[i]; in update_dpb()
337 for_each_set_bit(i, new, ARRAY_SIZE(dec_param->dpb)) { in update_dpb()
[all …]
H A Dhantro_g1_h264_dec.c25 const struct v4l2_ctrl_h264_decode_params *dec_param = ctrls->decode; in set_params() local
37 if (dec_param->nal_ref_idc) in set_params()
43 dec_param->flags & V4L2_H264_DECODE_PARAM_FLAG_FIELD_PIC)) in set_params()
45 if (dec_param->flags & V4L2_H264_DECODE_PARAM_FLAG_FIELD_PIC) in set_params()
47 if (!(dec_param->flags & V4L2_H264_DECODE_PARAM_FLAG_BOTTOM_FIELD)) in set_params()
75 G1_REG_DEC_CTRL4_FRAMENUM(dec_param->frame_num) | in set_params()
88 reg = G1_REG_DEC_CTRL5_REFPIC_MK_LEN(dec_param->dec_ref_pic_marking_bit_size) | in set_params()
89 G1_REG_DEC_CTRL5_IDR_PIC_ID(dec_param->idr_pic_id); in set_params()
98 if (dec_param->flags & V4L2_H264_DECODE_PARAM_FLAG_IDR_PIC) in set_params()
106 G1_REG_DEC_CTRL6_POC_LENGTH(dec_param->pic_order_cnt_bit_size); in set_params()
H A Drockchip_vpu2_hw_h264_dec.c196 const struct v4l2_ctrl_h264_decode_params *dec_param = ctrls->decode; in set_params() local
240 dec_param->flags & V4L2_H264_DECODE_PARAM_FLAG_FIELD_PIC)) | in set_params()
241 VDPU_REG_PIC_FIELDMODE_E(dec_param->flags & V4L2_H264_DECODE_PARAM_FLAG_FIELD_PIC) | in set_params()
242 VDPU_REG_PIC_TOPFIELD_E(!(dec_param->flags & V4L2_H264_DECODE_PARAM_FLAG_BOTTOM_FIELD)) | in set_params()
243 VDPU_REG_WRITE_MVS_E((sps->profile_idc > 66) && dec_param->nal_ref_idc) | in set_params()
274 VDPU_REG_FRAMENUM(dec_param->frame_num); in set_params()
277 reg = VDPU_REG_REFPIC_MK_LEN(dec_param->dec_ref_pic_marking_bit_size) | in set_params()
278 VDPU_REG_IDR_PIC_ID(dec_param->idr_pic_id); in set_params()
284 VDPU_REG_POC_LENGTH(dec_param->pic_order_cnt_bit_size); in set_params()
287 reg = VDPU_REG_IDR_PIC_E(dec_param->flags & V4L2_H264_DECODE_PARAM_FLAG_IDR_PIC) | in set_params()
/openbmc/linux/drivers/media/platform/mediatek/jpeg/
H A Dmtk_jpeg_core.h88 struct mtk_jpeg_dec_param dec_param; member
H A Dmtk_jpeg_core.c816 param = &jpeg_src_buf->dec_param; in mtk_jpeg_dec_buf_queue()
874 mtk_jpeg_set_queue_data(ctx, &src_buf->dec_param); in mtk_jpeg_dec_stop_streaming()
1013 if (mtk_jpeg_check_resolution_change(ctx, &jpeg_src_buf->dec_param)) { in mtk_jpeg_dec_device_run()
1025 if (mtk_jpeg_set_dec_dst(ctx, &jpeg_src_buf->dec_param, &dst_buf->vb2_buf, &fb)) in mtk_jpeg_dec_device_run()
1034 &jpeg_src_buf->dec_param, in mtk_jpeg_dec_device_run()
1723 &jpeg_src_buf->dec_param)) { in mtk_jpegdec_worker()
1754 &jpeg_src_buf->dec_param, in mtk_jpegdec_worker()
1768 &jpeg_src_buf->dec_param, in mtk_jpegdec_worker()
1848 jpeg_src_buf->dec_param.comp_size[i]); in mtk_jpeg_dec_irq()
H A Dmtk_jpeg_dec_hw.c543 jpeg_src_buf->dec_param.comp_size[i]); in mtk_jpegdec_hw_irq_handler()