Home
last modified time | relevance | path

Searched refs:hscale (Results 1 – 11 of 11) sorted by relevance

/linux/drivers/gpu/drm/
H A Ddrm_rect.c174 int hscale = drm_calc_scale(src_w, dst_w); in drm_rect_calc_hscale() local
176 if (hscale < 0 || dst_w == 0) in drm_rect_calc_hscale()
177 return hscale; in drm_rect_calc_hscale()
179 if (hscale < min_hscale || hscale > max_hscale) in drm_rect_calc_hscale()
182 return hscale; in drm_rect_calc_hscale()
/linux/drivers/gpu/drm/i915/display/
H A Ddvo_ns2501.c221 u16 hscale; /* horizontal scaling factor, b8/b9 */ member
248 .hscale = 40960,
268 .hscale = 51248,
287 .hscale = 65535,
635 ns2501_writeb(dvo, NS2501_REGB8, conf->hscale & 0xff); in ns2501_mode_set()
636 ns2501_writeb(dvo, NS2501_REGB9, conf->hscale >> 8); in ns2501_mode_set()
/linux/drivers/media/pci/cx25821/
H A Dcx25821-medusa-video.c411 u32 hscale = 0x0; in medusa_set_resolution() local
432 hscale = 0x13E34B; in medusa_set_resolution()
437 hscale = 0x10A273; in medusa_set_resolution()
442 hscale = 0x3115B2; in medusa_set_resolution()
447 hscale = 0x378D84; in medusa_set_resolution()
452 hscale = 0x0; in medusa_set_resolution()
460 HSCALE_CTRL + (0x200 * decoder), hscale); in medusa_set_resolution()
/linux/Documentation/userspace-api/media/v4l/
H A Dselection-api-examples.rst74 double hscale, vscale;
84 hscale = (double)compose.r.width / crop.r.width;
H A Dcrop.rst271 double hscale, vscale;
306 hscale = format.fmt.pix.width / (double) crop.c.width;
311 aspect = aspect * hscale / vscale;
/linux/drivers/media/pci/bt8xx/
H A Dbttv-risc.c257 geo->hscale = ((totalwidth*4096UL)/xsf-4096); in bttv_calc_geo_old()
310 geo->hscale = (c_width * 4096U + (width >> 1)) / width - 4096; in bttv_calc_geo()
347 btwrite(geo->hscale >> 8, BT848_E_HSCALE_HI+off); in bttv_apply_geo()
348 btwrite(geo->hscale & 0xff, BT848_E_HSCALE_LO+off); in bttv_apply_geo()
H A Dbttvp.h139 u16 width,hscale,hdelay; member
/linux/drivers/media/platform/rockchip/rkvdec/
H A Drkvdec-vp9.c619 u32 hscale, vscale; in config_registers() local
621 hscale = (refw << 14) / dst->vp9.width; in config_registers()
624 regs->vp9.reg29_31[i].ref_hor_scale = hscale; in config_registers()
/linux/drivers/media/platform/chips-media/coda/
H A Dcoda-common.c665 int hscale = 0; in coda_try_fmt_vid_cap() local
685 hscale = coda_jpeg_scale(q_data_src->width, f->fmt.pix.width); in coda_try_fmt_vid_cap()
688 f->fmt.pix.width = q_data_src->width >> hscale; in coda_try_fmt_vid_cap()
719 f->fmt.pix.bytesperline = round_up(f->fmt.pix.width, 16 >> hscale); in coda_try_fmt_vid_cap()
863 int hscale = 0; in coda_s_fmt_vid_cap() local
871 hscale = coda_jpeg_scale(q_data_src->width, f->fmt.pix.width); in coda_s_fmt_vid_cap()
881 r.width = q_data_src->width >> hscale; in coda_s_fmt_vid_cap()
/linux/drivers/media/usb/em28xx/
H A Dem28xx.h600 unsigned int hscale; /* horizontal scale factor (see datasheet) */ member
/linux/drivers/media/i2c/
H A Dmt9m114.c1263 unsigned int hscale; in mt9m114_pa_set_fmt() local
1270 hscale = DIV_ROUND_CLOSEST(crop->width, fmt->format.width ? : 1); in mt9m114_pa_set_fmt()
1272 format->width = crop->width / clamp(hscale, 1U, 2U); in mt9m114_pa_set_fmt()