/linux-6.6.21/drivers/media/platform/verisilicon/ |
D | hantro_g2_vp9_dec.c | 29 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() argument 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() argument 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() argument 130 buf->vp9.width = dec_params->frame_width_minus_1 + 1; in update_dec_buf_info() [all …]
|
D | hantro_drv.c | 274 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()
|
/linux-6.6.21/drivers/staging/media/rkvdec/ |
D | rkvdec-vp9.c | 313 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->reference_mode; in update_ctx_cur_info() [all …]
|
D | rkvdec-h264.c | 639 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 = run->decode_params; in config_registers() local [all …]
|
/linux-6.6.21/drivers/media/platform/mediatek/vcodec/decoder/vdec/ |
D | vdec_h264_req_multi_if.c | 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; in get_vdec_sig_decode_parameters() local 231 dec_params = in get_vdec_sig_decode_parameters() 233 if (IS_ERR(dec_params)) in get_vdec_sig_decode_parameters() [all …]
|
D | vdec_h264_req_if.c | 98 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->flags & V4L2_H264_DECODE_PARAM_FLAG_IDR_PIC) in vdec_h264_slice_decode()
|
D | vdec_hevc_req_multi_if.c | 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->num_poc_st_curr_before; in vdec_hevc_slice_fill_decode_parameters() 623 slice_param->decode_params.num_poc_st_curr_after = dec_params->num_poc_st_curr_after; in vdec_hevc_slice_fill_decode_parameters() 624 slice_param->decode_params.num_poc_lt_curr = dec_params->num_poc_lt_curr; in vdec_hevc_slice_fill_decode_parameters() 626 dec_params->num_delta_pocs_of_ref_rps_idx; in vdec_hevc_slice_fill_decode_parameters() [all …]
|
/linux-6.6.21/drivers/media/v4l2-core/ |
D | v4l2-vp9.c | 1225 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() [all …]
|
D | v4l2-h264.c | 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-6.6.21/include/media/ |
D | v4l2-vp9.h | 165 const struct v4l2_ctrl_vp9_frame *dec_params); 178 u8 v4l2_vp9_reset_frame_ctx(const struct v4l2_ctrl_vp9_frame *dec_params,
|
D | v4l2-h264.h | 50 const struct v4l2_ctrl_h264_decode_params *dec_params,
|