/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 | 1589 fmt->fmt.pix.width = fh->jpg_settings.img_width / fh->jpg_settings.HorDcm; in zoran_g_fmt_vid_out() 1698 if (fmt->fmt.pix.width <= fh->jpg_settings.img_width / 4) in zoran_try_fmt_vid_out() 1700 else if (fmt->fmt.pix.width <= fh->jpg_settings.img_width / 2) in zoran_try_fmt_vid_out() 1711 settings.img_width = (BUZ_MAX_WIDTH == 720) ? 704 : BUZ_MAX_WIDTH; in zoran_try_fmt_vid_out() 1714 settings.img_width = BUZ_MAX_WIDTH; in zoran_try_fmt_vid_out() 1723 fmt->fmt.pix.width = settings.img_width / settings.HorDcm; in zoran_try_fmt_vid_out() 1831 if (fmt->fmt.pix.width <= fh->jpg_settings.img_width / 4) in zoran_s_fmt_vid_out() 1833 else if (fmt->fmt.pix.width <= fh->jpg_settings.img_width / 2) in zoran_s_fmt_vid_out() 1844 settings.img_width = (BUZ_MAX_WIDTH == 720) ? 704 : BUZ_MAX_WIDTH; in zoran_s_fmt_vid_out() 1847 settings.img_width = BUZ_MAX_WIDTH; in zoran_s_fmt_vid_out() [all …]
|
D | zoran.h | 171 int img_x, img_y, img_width, img_height; /* crop settings (subframe capture) */ member
|
D | zoran_device.c | 781 (zr->jpg_settings.img_width << ZR36057_FHAP_PAX); in zr36057_set_jpg() 977 cap.width = zr->jpg_settings.img_width; in zr36057_enable_jpg()
|
/drivers/staging/media/dt3155v4l/ |
D | dt3155v4l.c | 53 static const unsigned int img_width = 768; variable 68 static const unsigned int img_width = 640; variable 198 iowrite32(dma_addr + img_width, pd->regs + ODD_DMA_START); in dt3155_start_acq() 199 iowrite32(img_width, pd->regs + EVEN_DMA_STRIDE); in dt3155_start_acq() 200 iowrite32(img_width, pd->regs + ODD_DMA_STRIDE); in dt3155_start_acq() 232 sizes[0] = img_width * img_height; in dt3155_queue_setup() 261 vb2_set_plane_payload(vb, 0, img_width * img_height); in dt3155_buf_prepare() 355 iowrite32(dma_addr + img_width, ipd->regs + ODD_DMA_START); in dt3155_irq_handler_even() 356 iowrite32(img_width, ipd->regs + EVEN_DMA_STRIDE); in dt3155_irq_handler_even() 357 iowrite32(img_width, ipd->regs + ODD_DMA_STRIDE); in dt3155_irq_handler_even() [all …]
|
/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() 281 ctx->buf_width = ALIGN(ctx->img_width, S5P_FIMV_NV12MT_HALIGN); in s5p_mfc_dec_calc_dpb_size_v5() 285 ctx->img_width, ctx->img_height, ctx->buf_width, in s5p_mfc_dec_calc_dpb_size_v5() 301 ALIGN(ctx->img_width + 24, S5P_FIMV_NV12MT_HALIGN); in s5p_mfc_dec_calc_dpb_size_v5() 308 ALIGN(ctx->img_width + 16, S5P_FIMV_NV12MT_HALIGN); in s5p_mfc_dec_calc_dpb_size_v5() 322 ctx->buf_width = ALIGN(ctx->img_width, S5P_FIMV_NV12M_HALIGN); in s5p_mfc_enc_calc_src_size_v5() 324 ctx->luma_size = ALIGN(ctx->img_width, S5P_FIMV_NV12M_HALIGN) in s5p_mfc_enc_calc_src_size_v5() 326 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() 359 ctx->buf_width = ALIGN(ctx->img_width, S5P_FIMV_NV12MT_HALIGN_V6); in s5p_mfc_dec_calc_dpb_size_v6() 362 "buffer dimensions: %dx%d\n", ctx->img_width, in s5p_mfc_dec_calc_dpb_size_v6() 365 ctx->luma_size = calc_plane(ctx->img_width, ctx->img_height); in s5p_mfc_dec_calc_dpb_size_v6() 366 ctx->chroma_size = calc_plane(ctx->img_width, (ctx->img_height >> 1)); in s5p_mfc_dec_calc_dpb_size_v6() 375 ctx->mv_size = S5P_MFC_DEC_MV_SIZE_V6(ctx->img_width, in s5p_mfc_dec_calc_dpb_size_v6() 387 mb_width = MB_WIDTH(ctx->img_width); in s5p_mfc_enc_calc_src_size_v6() 390 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 | 593 int img_width; member
|
D | s5p_mfc_dec.c | 792 cr->c.width = ctx->img_width - left - right; in vidioc_g_crop() 801 cr->c.width = ctx->img_width; in vidioc_g_crop()
|
D | s5p_mfc_enc.c | 1010 pix_fmt_mp->width = ctx->img_width; in vidioc_g_fmt() 1104 ctx->img_width = pix_fmt_mp->width; in vidioc_s_fmt() 1109 ctx->img_width, ctx->img_height); in vidioc_s_fmt()
|
D | s5p_mfc.c | 480 ctx->img_width = s5p_mfc_hw_call(dev->mfc_ops, get_img_width, in s5p_mfc_handle_seq_done() 491 if (ctx->img_width == 0 || ctx->img_height == 0) in s5p_mfc_handle_seq_done()
|
/drivers/media/platform/vivid/ |
D | vivid-kthread-cap.c | 239 unsigned img_width = dev->compose_cap.width; in vivid_copy_buffer() local 283 memcpy(vcapbuf, tpg->black_line[p], img_width * pixsize); in vivid_copy_buffer() 314 memcpy(vcapbuf, tpg->black_line[p], img_width * pixsize); in vivid_copy_buffer() 323 if (vid_cap_right < img_width) in vivid_copy_buffer() 325 tpg->black_line[p], (img_width - vid_cap_right) * pixsize); in vivid_copy_buffer() 392 memcpy(vcapbuf, tpg->contrast_line[p], img_width * pixsize); in vivid_copy_buffer() 581 unsigned img_width = dev->compose_cap.width; in vivid_overlay() local 595 w = img_width; in vivid_overlay() 602 if (w > img_width) in vivid_overlay() 603 w = img_width; in vivid_overlay()
|
D | vivid-tpg.c | 1195 unsigned img_width = tpg->compose.width * twopixsize / 2; in tpg_fillbuffer() local 1198 unsigned right_pillar_start = img_width; in tpg_fillbuffer() 1233 if (right_pillar_start > img_width) in tpg_fillbuffer() 1234 right_pillar_start = img_width; in tpg_fillbuffer() 1311 memcpy(vbuf + buf_line * stride, linestart_top, img_width); in tpg_fillbuffer() 1313 memcpy(vbuf + buf_line * stride, linestart_bottom, img_width); in tpg_fillbuffer() 1317 memcpy(vbuf + buf_line * stride, linestart_bottom, img_width); in tpg_fillbuffer() 1319 memcpy(vbuf + buf_line * stride, linestart_top, img_width); in tpg_fillbuffer() 1322 memcpy(vbuf + buf_line * stride, linestart_top, img_width); in tpg_fillbuffer() 1325 memcpy(vbuf + buf_line * stride, linestart_bottom, img_width); in tpg_fillbuffer() [all …]
|