Searched refs:hscale (Results 1 – 11 of 11) sorted by relevance
| /linux/drivers/gpu/drm/ |
| H A D | drm_rect.c | 174 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 D | dvo_ns2501.c | 221 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 D | cx25821-medusa-video.c | 411 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 D | selection-api-examples.rst | 74 double hscale, vscale; 84 hscale = (double)compose.r.width / crop.r.width;
|
| H A D | crop.rst | 271 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 D | bttv-risc.c | 257 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 D | bttvp.h | 139 u16 width,hscale,hdelay; member
|
| /linux/drivers/media/platform/rockchip/rkvdec/ |
| H A D | rkvdec-vp9.c | 619 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 D | coda-common.c | 665 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 D | em28xx.h | 600 unsigned int hscale; /* horizontal scale factor (see datasheet) */ member
|
| /linux/drivers/media/i2c/ |
| H A D | mt9m114.c | 1263 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()
|