/drivers/media/pci/zoran/ |
D | zoran_card.c | 745 settings->img_width, settings->img_height); in zoran_check_jpg_settings() 756 settings->img_width = BUZ_MAX_WIDTH; in zoran_check_jpg_settings() 767 settings->img_width = in zoran_check_jpg_settings() 788 settings->img_width = in zoran_check_jpg_settings() 822 if (settings->img_width < 0 || settings->img_width > BUZ_MAX_WIDTH) { in zoran_check_jpg_settings() 823 settings->img_width = clamp(settings->img_width, 0, (int)BUZ_MAX_WIDTH); in zoran_check_jpg_settings() 830 if (settings->img_x + settings->img_width > BUZ_MAX_WIDTH) { in zoran_check_jpg_settings() 831 settings->img_x = BUZ_MAX_WIDTH - settings->img_width; in zoran_check_jpg_settings() 838 if (settings->img_width % (16 * settings->HorDcm) != 0) { in zoran_check_jpg_settings() 839 settings->img_width -= settings->img_width % (16 * settings->HorDcm); in zoran_check_jpg_settings() [all …]
|
D | zoran_driver.c | 1573 fmt->fmt.pix.width = fh->jpg_settings.img_width / fh->jpg_settings.HorDcm; in zoran_g_fmt_vid_out() 1672 if (fmt->fmt.pix.width <= fh->jpg_settings.img_width / 4) in zoran_try_fmt_vid_out() 1674 else if (fmt->fmt.pix.width <= fh->jpg_settings.img_width / 2) in zoran_try_fmt_vid_out() 1685 settings.img_width = (BUZ_MAX_WIDTH == 720) ? 704 : BUZ_MAX_WIDTH; in zoran_try_fmt_vid_out() 1688 settings.img_width = BUZ_MAX_WIDTH; in zoran_try_fmt_vid_out() 1697 fmt->fmt.pix.width = settings.img_width / settings.HorDcm; in zoran_try_fmt_vid_out() 1792 if (fmt->fmt.pix.width <= fh->jpg_settings.img_width / 4) in zoran_s_fmt_vid_out() 1794 else if (fmt->fmt.pix.width <= fh->jpg_settings.img_width / 2) in zoran_s_fmt_vid_out() 1805 settings.img_width = (BUZ_MAX_WIDTH == 720) ? 704 : BUZ_MAX_WIDTH; in zoran_s_fmt_vid_out() 1808 settings.img_width = BUZ_MAX_WIDTH; in zoran_s_fmt_vid_out() [all …]
|
D | zoran.h | 173 int img_x, img_y, img_width, img_height; /* crop settings (subframe capture) */ member
|
D | zoran_device.c | 773 (zr->jpg_settings.img_width << ZR36057_FHAP_PAX); in zr36057_set_jpg() 969 cap.width = zr->jpg_settings.img_width; in zr36057_enable_jpg()
|
/drivers/media/platform/s5p-mfc/ |
D | s5p_mfc_opr_v5.c | 77 enc_ref_y_size = ALIGN(ctx->img_width, S5P_FIMV_NV12MT_HALIGN) in s5p_mfc_alloc_codec_buffers_v5() 82 enc_ref_c_size = ALIGN(ctx->img_width, in s5p_mfc_alloc_codec_buffers_v5() 89 guard_width = ALIGN(ctx->img_width + 16, in s5p_mfc_alloc_codec_buffers_v5() 283 ctx->buf_width = ALIGN(ctx->img_width, S5P_FIMV_NV12MT_HALIGN); in s5p_mfc_dec_calc_dpb_size_v5() 287 ctx->img_width, ctx->img_height, ctx->buf_width, in s5p_mfc_dec_calc_dpb_size_v5() 303 ALIGN(ctx->img_width + 24, S5P_FIMV_NV12MT_HALIGN); in s5p_mfc_dec_calc_dpb_size_v5() 310 ALIGN(ctx->img_width + 16, S5P_FIMV_NV12MT_HALIGN); in s5p_mfc_dec_calc_dpb_size_v5() 324 ctx->buf_width = ALIGN(ctx->img_width, S5P_FIMV_NV12M_HALIGN); in s5p_mfc_enc_calc_src_size_v5() 326 ctx->luma_size = ALIGN(ctx->img_width, S5P_FIMV_NV12M_HALIGN) in s5p_mfc_enc_calc_src_size_v5() 328 ctx->chroma_size = ALIGN(ctx->img_width, S5P_FIMV_NV12M_HALIGN) in s5p_mfc_enc_calc_src_size_v5() [all …]
|
D | s5p_mfc_opr_v6.c | 69 mb_width = MB_WIDTH(ctx->img_width); in s5p_mfc_alloc_codec_buffers_v6() 94 ctx->img_width, ctx->img_height, in s5p_mfc_alloc_codec_buffers_v6() 99 ctx->img_width, ctx->img_height, in s5p_mfc_alloc_codec_buffers_v6() 361 ctx->buf_width = ALIGN(ctx->img_width, S5P_FIMV_NV12MT_HALIGN_V6); in s5p_mfc_dec_calc_dpb_size_v6() 364 "buffer dimensions: %dx%d\n", ctx->img_width, in s5p_mfc_dec_calc_dpb_size_v6() 367 ctx->luma_size = calc_plane(ctx->img_width, ctx->img_height); in s5p_mfc_dec_calc_dpb_size_v6() 368 ctx->chroma_size = calc_plane(ctx->img_width, (ctx->img_height >> 1)); in s5p_mfc_dec_calc_dpb_size_v6() 377 ctx->mv_size = S5P_MFC_DEC_MV_SIZE_V6(ctx->img_width, in s5p_mfc_dec_calc_dpb_size_v6() 389 mb_width = MB_WIDTH(ctx->img_width); in s5p_mfc_enc_calc_src_size_v6() 392 ctx->buf_width = ALIGN(ctx->img_width, S5P_FIMV_NV12M_HALIGN_V6); in s5p_mfc_enc_calc_src_size_v6() [all …]
|
D | s5p_mfc_common.h | 591 int img_width; member
|
D | s5p_mfc_dec.c | 793 cr->c.width = ctx->img_width - left - right; in vidioc_g_crop() 802 cr->c.width = ctx->img_width; in vidioc_g_crop()
|
D | s5p_mfc_enc.c | 1022 pix_fmt_mp->width = ctx->img_width; in vidioc_g_fmt() 1116 ctx->img_width = pix_fmt_mp->width; in vidioc_s_fmt() 1121 ctx->img_width, ctx->img_height); in vidioc_s_fmt()
|
D | s5p_mfc.c | 490 ctx->img_width = s5p_mfc_hw_call(dev->mfc_ops, get_img_width, in s5p_mfc_handle_seq_done() 501 if (ctx->img_width == 0 || ctx->img_height == 0) in s5p_mfc_handle_seq_done()
|
/drivers/media/platform/vivid/ |
D | vivid-kthread-cap.c | 254 unsigned img_width = tpg_hdiv(tpg, p, dev->compose_cap.width); in vivid_copy_buffer() local 303 memcpy(vcapbuf, tpg->black_line[p], img_width); in vivid_copy_buffer() 334 memcpy(vcapbuf, tpg->black_line[p], img_width); in vivid_copy_buffer() 343 if (vid_cap_right < img_width) in vivid_copy_buffer() 345 img_width - vid_cap_right); in vivid_copy_buffer() 412 memcpy(vcapbuf, tpg->contrast_line[p], img_width); in vivid_copy_buffer() 609 unsigned img_width = dev->compose_cap.width; in vivid_overlay() local 629 w = img_width; in vivid_overlay() 636 if (w > img_width) in vivid_overlay() 637 w = img_width; in vivid_overlay()
|
D | vivid-tpg.c | 1872 unsigned img_width; member 1910 unsigned right_pillar_start = params->img_width; in tpg_fill_params_extras() 1934 if (right_pillar_start > params->img_width) in tpg_fill_params_extras() 1935 right_pillar_start = params->img_width; in tpg_fill_params_extras() 1948 unsigned img_width = params->img_width; in tpg_fill_plane_extras() local 1990 img_width - params->right_pillar_start); in tpg_fill_plane_extras() 2047 unsigned img_width = params->img_width; in tpg_fill_plane_pattern() local 2162 memcpy(vbuf, linestart_top, img_width); in tpg_fill_plane_pattern() 2164 memcpy(vbuf, linestart_bottom, img_width); in tpg_fill_plane_pattern() 2168 memcpy(vbuf, linestart_bottom, img_width); in tpg_fill_plane_pattern() [all …]
|