Home
last modified time | relevance | path

Searched refs:img_width (Results 1 – 12 of 12) sorted by relevance

/linux-6.6.21/drivers/media/pci/zoran/
Dzoran_card.c730 settings->img_width, settings->img_height); in zoran_check_jpg_settings()
741 settings->img_width = BUZ_MAX_WIDTH; in zoran_check_jpg_settings()
752 settings->img_width = in zoran_check_jpg_settings()
772 settings->img_width = in zoran_check_jpg_settings()
806 if (settings->img_width < 0 || settings->img_width > BUZ_MAX_WIDTH) { in zoran_check_jpg_settings()
807 settings->img_width = clamp(settings->img_width, 0, (int)BUZ_MAX_WIDTH); in zoran_check_jpg_settings()
814 if (settings->img_x + settings->img_width > BUZ_MAX_WIDTH) { in zoran_check_jpg_settings()
815 settings->img_x = BUZ_MAX_WIDTH - settings->img_width; in zoran_check_jpg_settings()
822 if (settings->img_width % (16 * settings->hor_dcm) != 0) { in zoran_check_jpg_settings()
823 settings->img_width -= settings->img_width % (16 * settings->hor_dcm); in zoran_check_jpg_settings()
[all …]
Dzoran_driver.c294 fmt->fmt.pix.width = zr->jpg_settings.img_width / zr->jpg_settings.hor_dcm; in zoran_g_fmt_vid_out()
353 if (fmt->fmt.pix.width <= zr->jpg_settings.img_width / 4) in zoran_try_fmt_vid_out()
355 else if (fmt->fmt.pix.width <= zr->jpg_settings.img_width / 2) in zoran_try_fmt_vid_out()
366 settings.img_width = (BUZ_MAX_WIDTH == 720) ? 704 : BUZ_MAX_WIDTH; in zoran_try_fmt_vid_out()
369 settings.img_width = BUZ_MAX_WIDTH; in zoran_try_fmt_vid_out()
378 fmt->fmt.pix.width = settings.img_width / settings.hor_dcm; in zoran_try_fmt_vid_out()
460 if (fmt->fmt.pix.width <= zr->jpg_settings.img_width / 4) in zoran_s_fmt_vid_out()
462 else if (fmt->fmt.pix.width <= zr->jpg_settings.img_width / 2) in zoran_s_fmt_vid_out()
473 settings.img_width = (BUZ_MAX_WIDTH == 720) ? 704 : BUZ_MAX_WIDTH; in zoran_s_fmt_vid_out()
476 settings.img_width = BUZ_MAX_WIDTH; in zoran_s_fmt_vid_out()
[all …]
Dzoran.h150 int img_x, img_y, img_width, img_height; member
Dzoran_device.c474 (zr->jpg_settings.img_width << ZR36057_FHAP_PAX); in zr36057_set_jpg()
615 cap.width = zr->jpg_settings.img_width; in zr36057_enable_jpg()
/linux-6.6.21/drivers/media/platform/samsung/s5p-mfc/
Ds5p_mfc_opr_v5.c74 enc_ref_y_size = ALIGN(ctx->img_width, S5P_FIMV_NV12MT_HALIGN) in s5p_mfc_alloc_codec_buffers_v5()
79 enc_ref_c_size = ALIGN(ctx->img_width, in s5p_mfc_alloc_codec_buffers_v5()
86 guard_width = ALIGN(ctx->img_width + 16, in s5p_mfc_alloc_codec_buffers_v5()
278 ctx->buf_width = ALIGN(ctx->img_width, S5P_FIMV_NV12MT_HALIGN); in s5p_mfc_dec_calc_dpb_size_v5()
282 ctx->img_width, ctx->img_height, ctx->buf_width, in s5p_mfc_dec_calc_dpb_size_v5()
298 ALIGN(ctx->img_width + 24, S5P_FIMV_NV12MT_HALIGN); in s5p_mfc_dec_calc_dpb_size_v5()
305 ALIGN(ctx->img_width + 16, S5P_FIMV_NV12MT_HALIGN); in s5p_mfc_dec_calc_dpb_size_v5()
319 ctx->buf_width = ALIGN(ctx->img_width, S5P_FIMV_NV12M_HALIGN); in s5p_mfc_enc_calc_src_size_v5()
321 ctx->luma_size = ALIGN(ctx->img_width, S5P_FIMV_NV12M_HALIGN) in s5p_mfc_enc_calc_src_size_v5()
323 ctx->chroma_size = ALIGN(ctx->img_width, S5P_FIMV_NV12M_HALIGN) in s5p_mfc_enc_calc_src_size_v5()
[all …]
Ds5p_mfc_opr_v6.c67 mb_width = MB_WIDTH(ctx->img_width); in s5p_mfc_alloc_codec_buffers_v6()
86 lcu_width = S5P_MFC_LCU_WIDTH(ctx->img_width); in s5p_mfc_alloc_codec_buffers_v6()
117 ctx->img_width, ctx->img_height, in s5p_mfc_alloc_codec_buffers_v6()
122 ctx->img_width, ctx->img_height, in s5p_mfc_alloc_codec_buffers_v6()
439 ctx->buf_width = ALIGN(ctx->img_width, S5P_FIMV_NV12MT_HALIGN_V6); in s5p_mfc_dec_calc_dpb_size_v6()
442 "buffer dimensions: %dx%d\n", ctx->img_width, in s5p_mfc_dec_calc_dpb_size_v6()
445 ctx->luma_size = calc_plane(ctx->img_width, ctx->img_height); in s5p_mfc_dec_calc_dpb_size_v6()
446 ctx->chroma_size = calc_plane(ctx->img_width, (ctx->img_height >> 1)); in s5p_mfc_dec_calc_dpb_size_v6()
456 ctx->mv_size = S5P_MFC_DEC_MV_SIZE_V10(ctx->img_width, in s5p_mfc_dec_calc_dpb_size_v6()
459 ctx->mv_size = S5P_MFC_DEC_MV_SIZE_V6(ctx->img_width, in s5p_mfc_dec_calc_dpb_size_v6()
[all …]
Ds5p_mfc_common.h653 int img_width; member
Ds5p_mfc_dec.c807 width = ctx->img_width - left - right; in vidioc_g_selection()
815 width = ctx->img_width; in vidioc_g_selection()
Ds5p_mfc_enc.c1376 pix_fmt_mp->width = ctx->img_width; in vidioc_g_fmt()
1461 ctx->img_width = pix_fmt_mp->width; in vidioc_s_fmt()
1466 ctx->img_width, ctx->img_height); in vidioc_s_fmt()
Ds5p_mfc.c529 ctx->img_width = s5p_mfc_hw_call(dev->mfc_ops, get_img_width, in s5p_mfc_handle_seq_done()
543 if (ctx->img_width == 0 || ctx->img_height == 0) in s5p_mfc_handle_seq_done()
/linux-6.6.21/drivers/media/common/v4l2-tpg/
Dv4l2-tpg-core.c2243 unsigned img_width; member
2281 unsigned right_pillar_start = params->img_width; in tpg_fill_params_extras()
2305 if (right_pillar_start > params->img_width) in tpg_fill_params_extras()
2306 right_pillar_start = params->img_width; in tpg_fill_params_extras()
2319 unsigned img_width = params->img_width; in tpg_fill_plane_extras() local
2361 img_width - params->right_pillar_start); in tpg_fill_plane_extras()
2456 unsigned img_width = params->img_width; in tpg_fill_plane_pattern() local
2571 memcpy(vbuf, linestart_top, img_width); in tpg_fill_plane_pattern()
2573 memcpy(vbuf, linestart_bottom, img_width); in tpg_fill_plane_pattern()
2577 memcpy(vbuf, linestart_bottom, img_width); in tpg_fill_plane_pattern()
[all …]
/linux-6.6.21/drivers/media/test-drivers/vivid/
Dvivid-kthread-cap.c224 unsigned img_width = tpg_hdiv(tpg, p, dev->compose_cap.width); in vivid_copy_buffer() local
273 memcpy(vcapbuf, tpg->black_line[p], img_width); in vivid_copy_buffer()
304 memcpy(vcapbuf, tpg->black_line[p], img_width); in vivid_copy_buffer()
313 if (vid_cap_right < img_width) in vivid_copy_buffer()
315 img_width - vid_cap_right); in vivid_copy_buffer()
382 memcpy(vcapbuf, tpg->contrast_line[p], img_width); in vivid_copy_buffer()