Home
last modified time | relevance | path

Searched refs:dec_params (Results 1 - 14 of 14) sorted by relevance

/kernel/linux/linux-6.6/drivers/media/platform/verisilicon/
H A Dhantro_g2_vp9_dec.c29 static int start_prepare_run(struct hantro_ctx *ctx, const struct v4l2_ctrl_vp9_frame **dec_params) in start_prepare_run() argument
42 *dec_params = ctrl->p_cur.p; in start_prepare_run()
68 fctx_idx = v4l2_vp9_reset_frame_ctx(*dec_params, vp9_ctx->frame_context); in start_prepare_run()
88 v4l2_vp9_fw_update_probs(&vp9_ctx->probability_tables, prob_updates, *dec_params); in start_prepare_run()
94 const struct v4l2_ctrl_vp9_frame *dec_params) in chroma_offset()
96 int bytes_per_pixel = dec_params->bit_depth == 8 ? 1 : 2; in chroma_offset()
102 const struct v4l2_ctrl_vp9_frame *dec_params) in mv_offset()
104 size_t cr_offset = chroma_offset(ctx, dec_params); in mv_offset()
128 const struct v4l2_ctrl_vp9_frame *dec_params) in update_dec_buf_info()
130 buf->vp9.width = dec_params in update_dec_buf_info()
93 chroma_offset(const struct hantro_ctx *ctx, const struct v4l2_ctrl_vp9_frame *dec_params) chroma_offset() argument
101 mv_offset(const struct hantro_ctx *ctx, const struct v4l2_ctrl_vp9_frame *dec_params) mv_offset() argument
127 update_dec_buf_info(struct hantro_decoded_buffer *buf, const struct v4l2_ctrl_vp9_frame *dec_params) update_dec_buf_info() argument
135 update_ctx_cur_info(struct hantro_vp9_dec_hw_ctx *vp9_ctx, struct hantro_decoded_buffer *buf, const struct v4l2_ctrl_vp9_frame *dec_params) update_ctx_cur_info() argument
146 config_output(struct hantro_ctx *ctx, struct hantro_decoded_buffer *dst, const struct v4l2_ctrl_vp9_frame *dec_params) config_output() argument
175 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
202 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
322 config_tiles(struct hantro_ctx *ctx, const struct v4l2_ctrl_vp9_frame *dec_params, struct hantro_decoded_buffer *dst) config_tiles() argument
403 config_segment(struct hantro_ctx *ctx, const struct v4l2_ctrl_vp9_frame *dec_params) config_segment() argument
486 config_loop_filter(struct hantro_ctx *ctx, const struct v4l2_ctrl_vp9_frame *dec_params) config_loop_filter() argument
515 config_bit_depth(struct hantro_ctx *ctx, const struct v4l2_ctrl_vp9_frame *dec_params) config_bit_depth() argument
534 config_quant(struct hantro_ctx *ctx, const struct v4l2_ctrl_vp9_frame *dec_params) config_quant() argument
562 config_others(struct hantro_ctx *ctx, const struct v4l2_ctrl_vp9_frame *dec_params, bool intra_only, bool resolution_change) config_others() argument
593 config_compound_reference(struct hantro_ctx *ctx, const struct v4l2_ctrl_vp9_frame *dec_params) config_compound_reference() argument
648 config_probs(struct hantro_ctx *ctx, const struct v4l2_ctrl_vp9_frame *dec_params) config_probs() argument
765 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
791 config_source(struct hantro_ctx *ctx, const struct v4l2_ctrl_vp9_frame *dec_params, struct vb2_v4l2_buffer *vb2_src) config_source() argument
825 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...]
H A Dhantro_drv.c274 const struct v4l2_ctrl_vp9_frame *dec_params = ctrl->p_new.p_vp9_frame; in hantro_try_ctrl() local
277 if (dec_params->profile != 0) in hantro_try_ctrl()
/kernel/linux/linux-6.6/drivers/staging/media/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()
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()
503 vp9_ctx->cur.reference_mode = dec_params in update_ctx_cur_info()
490 update_dec_buf_info(struct rkvdec_decoded_buffer *buf, const struct v4l2_ctrl_vp9_frame *dec_params) update_dec_buf_info() argument
498 update_ctx_cur_info(struct rkvdec_vp9_ctx *vp9_ctx, struct rkvdec_decoded_buffer *buf, const struct v4l2_ctrl_vp9_frame *dec_params) update_ctx_cur_info() argument
520 const struct v4l2_ctrl_vp9_frame *dec_params; config_registers() local
696 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()
725 for (i = 0; i < ARRAY_SIZE(dec_params->dpb); i++) { in assemble_hw_pps()
738 const struct v4l2_ctrl_h264_decode_params *dec_params = run->decode_params; in lookup_ref_buf_idx() local
741 for (i = 0; i < ARRAY_SIZE(dec_params->dpb); i++) { in lookup_ref_buf_idx()
762 const struct v4l2_ctrl_h264_decode_params *dec_params = run->decode_params; in assemble_hw_rps() local
763 const struct v4l2_h264_dpb_entry *dpb = dec_params->dpb; in assemble_hw_rps()
779 for (i = 0; i < ARRAY_SIZE(dec_params->dpb); i++) { in assemble_hw_rps()
804 if (WARN_ON(ref->index >= ARRAY_SIZE(dec_params->dpb))) in assemble_hw_rps()
887 const struct v4l2_ctrl_h264_decode_params *dec_params in config_registers() local
[all...]
/kernel/linux/linux-5.10/drivers/media/v4l2-core/
H A Dv4l2-h264.c20 * @dec_params: decode parameters control
26 const struct v4l2_ctrl_h264_decode_params *dec_params, in v4l2_h264_init_reflist_builder()
34 cur_frame_num = dec_params->frame_num; in v4l2_h264_init_reflist_builder()
37 if (!(dec_params->flags & V4L2_H264_DECODE_PARAM_FLAG_FIELD_PIC)) in v4l2_h264_init_reflist_builder()
38 b->cur_pic_order_count = min(dec_params->bottom_field_order_cnt, in v4l2_h264_init_reflist_builder()
39 dec_params->top_field_order_cnt); in v4l2_h264_init_reflist_builder()
40 else if (dec_params->flags & V4L2_H264_DECODE_PARAM_FLAG_BOTTOM_FIELD) in v4l2_h264_init_reflist_builder()
41 b->cur_pic_order_count = dec_params->bottom_field_order_cnt; in v4l2_h264_init_reflist_builder()
43 b->cur_pic_order_count = dec_params->top_field_order_cnt; in v4l2_h264_init_reflist_builder()
25 v4l2_h264_init_reflist_builder(struct v4l2_h264_reflist_builder *b, const struct v4l2_ctrl_h264_decode_params *dec_params, const struct v4l2_ctrl_h264_sps *sps, const struct v4l2_h264_dpb_entry dpb[V4L2_H264_NUM_DPB_ENTRIES]) v4l2_h264_init_reflist_builder() argument
/kernel/linux/linux-6.6/drivers/media/platform/mediatek/vcodec/decoder/vdec/
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
177 const struct v4l2_ctrl_h264_decode_params *dec_params; in vdec_h264_slice_fill_decode_parameters() local
182 dec_params = in vdec_h264_slice_fill_decode_parameters()
184 if (IS_ERR(dec_params)) in vdec_h264_slice_fill_decode_parameters()
185 return PTR_ERR(dec_params); in vdec_h264_slice_fill_decode_parameters()
200 if (dec_params->flags & V4L2_H264_DECODE_PARAM_FLAG_FIELD_PIC) { in vdec_h264_slice_fill_decode_parameters()
211 memcpy(&share_info->dec_params, dec_params, sizeof(*dec_params)); in vdec_h264_slice_fill_decode_parameters()
218 const struct v4l2_ctrl_h264_decode_params *dec_params; get_vdec_sig_decode_parameters() local
279 struct v4l2_ctrl_h264_decode_params *dec_params = &share_info->dec_params; vdec_h264_slice_fill_decode_reflist() local
[all...]
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
376 data[1] = (dec_params->nal_ref_idc << 5) | in vdec_h264_slice_decode()
377 ((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...]
/kernel/linux/linux-6.6/drivers/media/v4l2-core/
H A Dv4l2-vp9.c1225 const struct v4l2_ctrl_vp9_frame *dec_params) in update_coef_probs()
1359 const struct v4l2_ctrl_vp9_frame *dec_params) in update_mv_probs()
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()
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()
1223 update_coef_probs(struct v4l2_vp9_frame_context *probs, const struct v4l2_ctrl_vp9_compressed_hdr *deltas, const struct v4l2_ctrl_vp9_frame *dec_params) update_coef_probs() argument
1357 update_mv_probs(struct v4l2_vp9_frame_context *probs, const struct v4l2_ctrl_vp9_compressed_hdr *deltas, const struct v4l2_ctrl_vp9_frame *dec_params) update_mv_probs() argument
1415 v4l2_vp9_fw_update_probs(struct v4l2_vp9_frame_context *probs, const struct v4l2_ctrl_vp9_compressed_hdr *deltas, const struct v4l2_ctrl_vp9_frame *dec_params) v4l2_vp9_fw_update_probs() argument
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()
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()
31 v4l2_h264_init_reflist_builder(struct v4l2_h264_reflist_builder *b, const struct v4l2_ctrl_h264_decode_params *dec_params, const struct v4l2_ctrl_h264_sps *sps, const struct v4l2_h264_dpb_entry dpb[V4L2_H264_NUM_DPB_ENTRIES]) v4l2_h264_init_reflist_builder() argument
/kernel/linux/linux-5.10/drivers/staging/media/rkvdec/
H A Drkvdec-h264.c642 const struct v4l2_ctrl_h264_decode_params *dec_params = run->decode_params; in assemble_hw_pps() local
643 const struct v4l2_h264_dpb_entry *dpb = dec_params->dpb; in assemble_hw_pps()
719 for (i = 0; i < ARRAY_SIZE(dec_params->dpb); i++) { in assemble_hw_pps()
732 const struct v4l2_ctrl_h264_decode_params *dec_params = run->decode_params; in lookup_ref_buf_idx() local
735 for (i = 0; i < ARRAY_SIZE(dec_params->dpb); i++) { in lookup_ref_buf_idx()
752 const struct v4l2_ctrl_h264_decode_params *dec_params = run->decode_params; in assemble_hw_rps() local
753 const struct v4l2_h264_dpb_entry *dpb = dec_params->dpb; in assemble_hw_rps()
771 for (i = 0; i < ARRAY_SIZE(dec_params->dpb); i++) { in assemble_hw_rps()
776 dpb[i].frame_num < dec_params->frame_num) { in assemble_hw_rps()
801 if (idx >= ARRAY_SIZE(dec_params in assemble_hw_rps()
898 const struct v4l2_ctrl_h264_decode_params *dec_params = run->decode_params; config_registers() local
[all...]
/kernel/linux/linux-6.6/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,
/kernel/linux/linux-5.10/include/media/
H A Dv4l2-h264.h46 const struct v4l2_ctrl_h264_decode_params *dec_params,

Completed in 15 milliseconds