Home
last modified time | relevance | path

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

/drivers/media/pci/zoran/
Dzoran_card.c745 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 …]
Dzoran_driver.c1573 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 …]
Dzoran.h173 int img_x, img_y, img_width, img_height; /* crop settings (subframe capture) */ member
Dzoran_device.c773 (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/
Ds5p_mfc_opr_v5.c77 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 …]
Ds5p_mfc_opr_v6.c69 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 …]
Ds5p_mfc_common.h591 int img_width; member
Ds5p_mfc_dec.c793 cr->c.width = ctx->img_width - left - right; in vidioc_g_crop()
802 cr->c.width = ctx->img_width; in vidioc_g_crop()
Ds5p_mfc_enc.c1022 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()
Ds5p_mfc.c490 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/
Dvivid-kthread-cap.c254 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()
Dvivid-tpg.c1872 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 …]