Home
last modified time | relevance | path

Searched refs:dec_params (Results 1 – 10 of 10) sorted by relevance

/linux/drivers/media/platform/verisilicon/
H A Dhantro_g2_vp9_dec.c27 static int start_prepare_run(struct hantro_ctx *ctx, const struct v4l2_ctrl_vp9_frame **dec_params) in start_prepare_run() argument
40 *dec_params = ctrl->p_cur.p; in start_prepare_run()
66 fctx_idx = v4l2_vp9_reset_frame_ctx(*dec_params, vp9_ctx->frame_context); in start_prepare_run()
86 v4l2_vp9_fw_update_probs(&vp9_ctx->probability_tables, prob_updates, *dec_params); in start_prepare_run()
110 const struct v4l2_ctrl_vp9_frame *dec_params) in update_dec_buf_info() argument
112 buf->vp9.width = dec_params->frame_width_minus_1 + 1; in update_dec_buf_info()
113 buf->vp9.height = dec_params->frame_height_minus_1 + 1; in update_dec_buf_info()
114 buf->vp9.bit_depth = dec_params->bit_depth; in update_dec_buf_info()
119 const struct v4l2_ctrl_vp9_frame *dec_params) in update_ctx_cur_info() argument
122 vp9_ctx->cur.reference_mode = dec_params in update_ctx_cur_info()
130 config_output(struct hantro_ctx * ctx,struct hantro_decoded_buffer * dst,const struct v4l2_ctrl_vp9_frame * dec_params) config_output() argument
162 config_ref(struct hantro_ctx * ctx,struct hantro_decoded_buffer * dst,const struct hantro_vp9_ref_reg * ref_reg,const struct v4l2_ctrl_vp9_frame * dec_params,u64 ref_ts) config_ref() argument
187 config_ref_registers(struct hantro_ctx * ctx,const struct v4l2_ctrl_vp9_frame * dec_params,struct hantro_decoded_buffer * dst,struct hantro_decoded_buffer * mv_ref) config_ref_registers() argument
307 config_tiles(struct hantro_ctx * ctx,const struct v4l2_ctrl_vp9_frame * dec_params,struct hantro_decoded_buffer * dst) config_tiles() argument
387 config_segment(struct hantro_ctx * ctx,const struct v4l2_ctrl_vp9_frame * dec_params) config_segment() argument
470 config_loop_filter(struct hantro_ctx * ctx,const struct v4l2_ctrl_vp9_frame * dec_params) config_loop_filter() argument
499 config_bit_depth(struct hantro_ctx * ctx,const struct v4l2_ctrl_vp9_frame * dec_params) config_bit_depth() argument
518 config_quant(struct hantro_ctx * ctx,const struct v4l2_ctrl_vp9_frame * dec_params) config_quant() argument
546 config_others(struct hantro_ctx * ctx,const struct v4l2_ctrl_vp9_frame * dec_params,bool intra_only,bool resolution_change) config_others() argument
578 config_compound_reference(struct hantro_ctx * ctx,const struct v4l2_ctrl_vp9_frame * dec_params) config_compound_reference() argument
632 config_probs(struct hantro_ctx * ctx,const struct v4l2_ctrl_vp9_frame * dec_params) config_probs() argument
750 config_seg_map(struct hantro_ctx * ctx,const struct v4l2_ctrl_vp9_frame * dec_params,bool intra_only,bool update_map) config_seg_map() argument
775 config_source(struct hantro_ctx * ctx,const struct v4l2_ctrl_vp9_frame * dec_params,struct vb2_v4l2_buffer * vb2_src) config_source() argument
809 config_registers(struct hantro_ctx * ctx,const struct v4l2_ctrl_vp9_frame * dec_params,struct vb2_v4l2_buffer * vb2_src,struct vb2_v4l2_buffer * vb2_dst) config_registers() argument
[all...]
/linux/drivers/media/platform/rockchip/rkvdec/
H A Drkvdec-vp9.c313 const struct v4l2_ctrl_vp9_frame *dec_params; in init_probs() local
321 dec_params = run->decode_params; in init_probs()
323 seg = &dec_params->seg; in init_probs()
327 intra_only = !!(dec_params->flags & in init_probs()
491 const struct v4l2_ctrl_vp9_frame *dec_params) in update_dec_buf_info() argument
493 buf->vp9.width = dec_params->frame_width_minus_1 + 1; in update_dec_buf_info()
494 buf->vp9.height = dec_params->frame_height_minus_1 + 1; in update_dec_buf_info()
495 buf->vp9.bit_depth = dec_params->bit_depth; in update_dec_buf_info()
500 const struct v4l2_ctrl_vp9_frame *dec_params) in update_ctx_cur_info() argument
503 vp9_ctx->cur.reference_mode = dec_params in update_ctx_cur_info()
520 const struct v4l2_ctrl_vp9_frame *dec_params; config_registers() local
697 validate_dec_params(struct rkvdec_ctx * ctx,const struct v4l2_ctrl_vp9_frame * dec_params) validate_dec_params() argument
730 const struct v4l2_ctrl_vp9_frame *dec_params; rkvdec_vp9_run_preamble() local
[all...]
H A Drkvdec-h264.c639 const struct v4l2_ctrl_h264_decode_params *dec_params = run->decode_params; in assemble_hw_pps() local
640 const struct v4l2_h264_dpb_entry *dpb = dec_params->dpb; in assemble_hw_pps()
726 for (i = 0; i < ARRAY_SIZE(dec_params->dpb); i++) { in assemble_hw_pps()
739 const struct v4l2_ctrl_h264_decode_params *dec_params = run->decode_params; in lookup_ref_buf_idx() local
742 for (i = 0; i < ARRAY_SIZE(dec_params->dpb); i++) { in lookup_ref_buf_idx()
763 const struct v4l2_ctrl_h264_decode_params *dec_params = run->decode_params; in assemble_hw_rps() local
764 const struct v4l2_h264_dpb_entry *dpb = dec_params->dpb; in assemble_hw_rps()
780 for (i = 0; i < ARRAY_SIZE(dec_params->dpb); i++) { in assemble_hw_rps()
805 if (WARN_ON(ref->index >= ARRAY_SIZE(dec_params->dpb))) in assemble_hw_rps()
888 const struct v4l2_ctrl_h264_decode_params *dec_params in config_registers() local
[all...]
/linux/drivers/media/v4l2-core/
H A Dv4l2-vp9.c1225 const struct v4l2_ctrl_vp9_frame *dec_params) in update_coef_probs() argument
1359 const struct v4l2_ctrl_vp9_frame *dec_params) in update_mv_probs() argument
1402 if (dec_params->flags & V4L2_VP9_FRAME_FLAG_ALLOW_HIGH_PREC_MV) { in update_mv_probs()
1417 const struct v4l2_ctrl_vp9_frame *dec_params) in v4l2_vp9_fw_update_probs() argument
1422 update_coef_probs(probs, deltas, dec_params); in v4l2_vp9_fw_update_probs()
1426 if (dec_params->flags & V4L2_VP9_FRAME_FLAG_KEY_FRAME || in v4l2_vp9_fw_update_probs()
1427 dec_params->flags & V4L2_VP9_FRAME_FLAG_INTRA_ONLY) in v4l2_vp9_fw_update_probs()
1432 if (dec_params->interpolation_filter == V4L2_VP9_INTERP_FILTER_SWITCHABLE) in v4l2_vp9_fw_update_probs()
1437 update_frame_reference_mode_probs(dec_params->reference_mode, probs, deltas); in v4l2_vp9_fw_update_probs()
1443 update_mv_probs(probs, deltas, dec_params); in v4l2_vp9_fw_update_probs()
1447 v4l2_vp9_reset_frame_ctx(const struct v4l2_ctrl_vp9_frame * dec_params,struct v4l2_vp9_frame_context * frame_context) v4l2_vp9_reset_frame_ctx() argument
[all...]
H A Dv4l2-h264.c26 * @dec_params: decode parameters control
32 const struct v4l2_ctrl_h264_decode_params *dec_params, in v4l2_h264_init_reflist_builder() argument
40 cur_frame_num = dec_params->frame_num; in v4l2_h264_init_reflist_builder()
43 if (!(dec_params->flags & V4L2_H264_DECODE_PARAM_FLAG_FIELD_PIC)) { in v4l2_h264_init_reflist_builder()
44 b->cur_pic_order_count = min(dec_params->bottom_field_order_cnt, in v4l2_h264_init_reflist_builder()
45 dec_params->top_field_order_cnt); in v4l2_h264_init_reflist_builder()
47 } else if (dec_params->flags & V4L2_H264_DECODE_PARAM_FLAG_BOTTOM_FIELD) { in v4l2_h264_init_reflist_builder()
48 b->cur_pic_order_count = dec_params->bottom_field_order_cnt; in v4l2_h264_init_reflist_builder()
51 b->cur_pic_order_count = dec_params->top_field_order_cnt; in v4l2_h264_init_reflist_builder()
/linux/drivers/media/platform/mediatek/vcodec/decoder/vdec/
H A Dvdec_h264_req_if.c98 const struct v4l2_ctrl_h264_decode_params *dec_params; in get_vdec_decode_parameters() local
111 dec_params = in get_vdec_decode_parameters()
113 if (IS_ERR(dec_params)) in get_vdec_decode_parameters()
114 return PTR_ERR(dec_params); in get_vdec_decode_parameters()
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()
140 v4l2_h264_init_reflist_builder(&reflist_builder, dec_params, sps, in get_vdec_decode_parameters()
333 const struct v4l2_ctrl_h264_decode_params *dec_params = in vdec_h264_slice_decode() local
381 data[1] = (dec_params->nal_ref_idc << 5) | in vdec_h264_slice_decode()
382 ((dec_params in vdec_h264_slice_decode()
[all...]
H A Dvdec_hevc_req_multi_if.c331 * @dec_params: decoder params from user space
337 struct v4l2_ctrl_hevc_decode_params dec_params; member
592 const struct v4l2_ctrl_hevc_decode_params *dec_params; in vdec_hevc_slice_fill_decode_parameters() local
597 dec_params = in vdec_hevc_slice_fill_decode_parameters()
599 if (IS_ERR(dec_params)) in vdec_hevc_slice_fill_decode_parameters()
600 return PTR_ERR(dec_params); in vdec_hevc_slice_fill_decode_parameters()
620 memcpy(&share_info->dec_params, dec_params, sizeof(*dec_params)); in vdec_hevc_slice_fill_decode_parameters()
622 slice_param->decode_params.num_poc_st_curr_before = dec_params in vdec_hevc_slice_fill_decode_parameters()
635 struct v4l2_ctrl_hevc_decode_params *dec_params = &share_info->dec_params; vdec_hevc_slice_fill_decode_reflist() local
[all...]
H A Dvdec_h264_req_multi_if.c116 * @dec_params: decoder params from user space
124 struct v4l2_ctrl_h264_decode_params dec_params; member
272 const struct v4l2_ctrl_h264_decode_params *dec_params; in vdec_h264_slice_fill_decode_parameters() local
277 dec_params = in vdec_h264_slice_fill_decode_parameters()
279 if (IS_ERR(dec_params)) in vdec_h264_slice_fill_decode_parameters()
280 return PTR_ERR(dec_params); in vdec_h264_slice_fill_decode_parameters()
295 if (dec_params->flags & V4L2_H264_DECODE_PARAM_FLAG_FIELD_PIC) { in vdec_h264_slice_fill_decode_parameters()
306 memcpy(&share_info->dec_params, dec_params, sizeof(*dec_params)); in vdec_h264_slice_fill_decode_parameters()
313 const struct v4l2_ctrl_h264_decode_params *dec_params; get_vdec_sig_decode_parameters() local
371 struct v4l2_ctrl_h264_decode_params *dec_params = &share_info->dec_params; vdec_h264_slice_fill_decode_reflist() local
[all...]
/linux/include/media/
H A Dv4l2-vp9.h156 * @dec_params: vp9 frame decoding parameters
165 const struct v4l2_ctrl_vp9_frame *dec_params);
170 * @dec_params: vp9 frame decoding parameters
173 * This function resets appropriate frame contexts, based on what's in dec_params.
178 u8 v4l2_vp9_reset_frame_ctx(const struct v4l2_ctrl_vp9_frame *dec_params,
H A Dv4l2-h264.h50 const struct v4l2_ctrl_h264_decode_params *dec_params,