/linux/drivers/media/pci/zoran/ |
H A D | zoran_card.c | 730 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 …]
|
H A D | zoran_driver.c | 294 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 …]
|
H A D | zoran.h | 150 int img_x, img_y, img_width, img_height; member
|
H A D | zoran_device.c | 474 (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/drivers/media/platform/samsung/s5p-mfc/ |
H A D | s5p_mfc_opr_v6.c | 67 mb_width = MB_WIDTH(ctx->img_width); in s5p_mfc_alloc_codec_buffers_v6() 69 width64 = ALIGN(ctx->img_width, 64); in s5p_mfc_alloc_codec_buffers_v6() 88 lcu_width = S5P_MFC_LCU_WIDTH(ctx->img_width); in s5p_mfc_alloc_codec_buffers_v6() 104 ALIGN(ctx->img_width * 2, 128) * height32 + 64; in s5p_mfc_alloc_codec_buffers_v6() 106 ALIGN(ctx->img_width * 2, 128) * height32 / 2 + 64; in s5p_mfc_alloc_codec_buffers_v6() 120 lcu_width = S5P_MFC_LCU_WIDTH(ctx->img_width); in s5p_mfc_alloc_codec_buffers_v6() 151 ctx->img_width, ctx->img_height, in s5p_mfc_alloc_codec_buffers_v6() 156 ctx->img_width, ctx->img_height, in s5p_mfc_alloc_codec_buffers_v6() 489 ctx->buf_width = ALIGN(ctx->img_width, S5P_FIMV_NV12MT_HALIGN_V6); in s5p_mfc_dec_calc_dpb_size_v6() 493 "buffer dimensions: %dx%d\n", ctx->img_width, in s5p_mfc_dec_calc_dpb_size_v6() [all …]
|
H A D | s5p_mfc_opr_v5.c | 74 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 …]
|
H A D | s5p_mfc_common.h | 658 int img_width; member
|
H A D | s5p_mfc_dec.c | 826 width = ctx->img_width - left - right; in vidioc_g_selection() 834 width = ctx->img_width; in vidioc_g_selection()
|
H A D | s5p_mfc_enc.c | 1408 pix_fmt_mp->width = ctx->img_width; in vidioc_g_fmt() 1501 ctx->img_width = pix_fmt_mp->width; in vidioc_s_fmt() 1506 ctx->img_width, ctx->img_height); in vidioc_s_fmt()
|
H A D | s5p_mfc.c | 529 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/drivers/media/common/v4l2-tpg/ |
H A D | v4l2-tpg-core.c | 2278 unsigned img_width; member 2316 unsigned right_pillar_start = params->img_width; in tpg_fill_params_extras() 2340 if (right_pillar_start > params->img_width) in tpg_fill_params_extras() 2341 right_pillar_start = params->img_width; in tpg_fill_params_extras() 2354 unsigned img_width = params->img_width; in tpg_fill_plane_extras() local 2396 img_width - params->right_pillar_start); in tpg_fill_plane_extras() 2491 unsigned img_width = params->img_width; in tpg_fill_plane_pattern() local 2606 memcpy(vbuf, linestart_top, img_width); in tpg_fill_plane_pattern() 2608 memcpy(vbuf, linestart_bottom, img_width); in tpg_fill_plane_pattern() 2612 memcpy(vbuf, linestart_bottom, img_width); in tpg_fill_plane_pattern() [all …]
|
/linux/drivers/media/test-drivers/vivid/ |
H A D | vivid-kthread-cap.c | 225 unsigned img_width = tpg_hdiv(tpg, p, dev->compose_cap.width); in vivid_copy_buffer() local 274 memcpy(vcapbuf, tpg->black_line[p], img_width); in vivid_copy_buffer() 305 memcpy(vcapbuf, tpg->black_line[p], img_width); in vivid_copy_buffer() 314 if (vid_cap_right < img_width) in vivid_copy_buffer() 316 img_width - vid_cap_right); in vivid_copy_buffer() 383 memcpy(vcapbuf, tpg->contrast_line[p], img_width); in vivid_copy_buffer()
|