Home
last modified time | relevance | path

Searched refs:bytes_per_pixel (Results 1 – 25 of 43) sorted by relevance

12

/OK3568_Linux_fs/buildroot/boot/grub2/
H A D0080-video-fb-fbfill-Fix-potential-integer-overflow.patch37 - rowskip = dst->mode_info->pitch - dst->mode_info->bytes_per_pixel * width;
38 + if (grub_mul (dst->mode_info->bytes_per_pixel, width, &rowskip) ||
48 - rowskip = dst->mode_info->pitch - dst->mode_info->bytes_per_pixel * width;
49 + if (grub_mul (dst->mode_info->bytes_per_pixel, width, &rowskip) ||
59 - rowskip = (dst->mode_info->pitch - dst->mode_info->bytes_per_pixel * width);
60 + if (grub_mul (dst->mode_info->bytes_per_pixel, width, &rowskip) ||
70 - rowskip = dst->mode_info->pitch - dst->mode_info->bytes_per_pixel * width;
71 + if (grub_mul (dst->mode_info->bytes_per_pixel, width, &rowskip) ||
/OK3568_Linux_fs/external/xserver/glamor/
H A Dglamor_transfer.c39 int bytes_per_pixel = pixmap->drawable.bitsPerPixel >> 3; in glamor_upload_boxes() local
47 glPixelStorei(GL_UNPACK_ROW_LENGTH, byte_stride / bytes_per_pixel); in glamor_upload_boxes()
66 ofs += (x1 - dx_dst + dx_src) * bytes_per_pixel; in glamor_upload_boxes()
74 x2 - x1 == byte_stride / bytes_per_pixel) { in glamor_upload_boxes()
139 int bytes_per_pixel = pixmap->drawable.bitsPerPixel >> 3; in glamor_download_boxes() local
146 glPixelStorei(GL_PACK_ROW_LENGTH, byte_stride / bytes_per_pixel); in glamor_download_boxes()
166 ofs += (x1 - dx_src + dx_dst) * bytes_per_pixel; in glamor_download_boxes()
174 x2 - x1 == byte_stride / bytes_per_pixel) { in glamor_download_boxes()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/rockchip/
H A Drockchip_drm_fbdev.c45 unsigned int bytes_per_pixel; in rockchip_drm_fbdev_create() local
51 bytes_per_pixel = DIV_ROUND_UP(sizes->surface_bpp, 8); in rockchip_drm_fbdev_create()
55 mode_cmd.pitches[0] = sizes->surface_width * bytes_per_pixel; in rockchip_drm_fbdev_create()
88 offset = fbi->var.xoffset * bytes_per_pixel; in rockchip_drm_fbdev_create()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/calcs/
H A Ddce_calcs.c170 data->bytes_per_pixel[0] = 1; in calculate_bandwidth()
171 data->bytes_per_pixel[2] = 1; in calculate_bandwidth()
174 data->bytes_per_pixel[1] = 2; in calculate_bandwidth()
175 data->bytes_per_pixel[3] = 2; in calculate_bandwidth()
184 data->bytes_per_pixel[0] = 2; in calculate_bandwidth()
185 data->bytes_per_pixel[2] = 2; in calculate_bandwidth()
192 data->bytes_per_pixel[0] = 4; in calculate_bandwidth()
193 data->bytes_per_pixel[2] = 4; in calculate_bandwidth()
363 data->bytes_per_pixel[maximum_number_of_surfaces - 2] = 1; in calculate_bandwidth()
364 data->bytes_per_pixel[maximum_number_of_surfaces - 1] = 2; in calculate_bandwidth()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/tegra/
H A Dfb.c211 unsigned int bytes_per_pixel; in tegra_fbdev_probe() local
219 bytes_per_pixel = DIV_ROUND_UP(sizes->surface_bpp, 8); in tegra_fbdev_probe()
223 cmd.pitches[0] = round_up(sizes->surface_width * bytes_per_pixel, in tegra_fbdev_probe()
259 offset = info->var.xoffset * bytes_per_pixel + in tegra_fbdev_probe()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/core/
H A Ddc_link_hwss.c398 uint32_t bytes_per_pixel_int = config->bytes_per_pixel / precision; in dsc_optc_config_log()
399 uint32_t bytes_per_pixel_mod = config->bytes_per_pixel % precision; in dsc_optc_config_log()
410 config->bytes_per_pixel, bytes_per_pixel_int, (uint32_t)ll_bytes_per_pix_fraq); in dsc_optc_config_log()
476 dsc_optc_cfg.bytes_per_pixel, in dp_set_dsc_on_stream()
487 dsc_optc_cfg.bytes_per_pixel, in dp_set_dsc_on_stream()
/OK3568_Linux_fs/kernel/drivers/media/test-drivers/vivid/
H A Dvivid-osd.c104 dev->display_byte_stride = var->xres * dev->bytes_per_pixel; in vivid_fb_set_var()
272 dev->bytes_per_pixel = dev->bits_per_pixel / 8; in vivid_fb_init_vidmode()
277 dev->display_byte_stride = start_window.width * dev->bytes_per_pixel; in vivid_fb_init_vidmode()
/OK3568_Linux_fs/kernel/drivers/staging/media/atomisp/pci/runtime/frame/src/
H A Dframe.c42 unsigned int bytes_per_pixel);
55 unsigned int bytes_per_pixel);
636 unsigned int bytes_per_pixel) in frame_init_single_plane() argument
640 stride = subpixels_per_line * bytes_per_pixel; in frame_init_single_plane()
675 unsigned int bytes_per_pixel) in frame_init_mipi_plane() argument
679 stride = subpixels_per_line * bytes_per_pixel; in frame_init_mipi_plane()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dsc/
H A Ddscc_types.h45 uint32_t bytes_per_pixel; /* In u3.28 format */ member
H A Drc_calc.c272 u32 bytes_per_pixel; in _do_bytes_per_pixel_calc() local
282 bytes_per_pixel = (u32)dsc_ceil(d_bytes_per_pixel * 0x10000000); in _do_bytes_per_pixel_calc()
284 return bytes_per_pixel; in _do_bytes_per_pixel_calc()
H A Drc_calc_dpi.c105 dsc_params->bytes_per_pixel = calc_dsc_bytes_per_pixel(pps); in dscc_compute_dsc_parameters()
/OK3568_Linux_fs/external/libmali/include/FBDEV/
H A Dmali_fbdev_types.h66 int bytes_per_pixel; member
/OK3568_Linux_fs/kernel/drivers/staging/media/atomisp/pci/runtime/isys/src/
H A Dvirtual_isys.c733 s32 bytes_per_pixel; in calculate_ibuf_ctrl_cfg() local
739 bytes_per_pixel = ceil_div(bits_per_pixel, bits_per_byte); in calculate_ibuf_ctrl_cfg()
742 * bytes_per_pixel; in calculate_ibuf_ctrl_cfg()
773 cfg->dest_buf_cfg.stride = bytes_per_pixel in calculate_ibuf_ctrl_cfg()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/inc/hw/
H A Ddsc.h50 uint32_t bytes_per_pixel; /* Bytes per pixel in u3.28 format */ member
/OK3568_Linux_fs/kernel/drivers/media/test-drivers/
H A Dvim2m.c451 unsigned int width, height, bytesperline, bytes_per_pixel; in device_process() local
459 bytes_per_pixel = q_data_in->fmt->depth >> 3; in device_process()
537 p_in_x[1] = p_line - x_offset * bytes_per_pixel; in device_process()
539 p_in_x[1] = p_line + x_offset * bytes_per_pixel; in device_process()
554 p_in_x[0] = p_line - x_offset * bytes_per_pixel; in device_process()
556 p_in_x[0] = p_line + x_offset * bytes_per_pixel; in device_process()
/OK3568_Linux_fs/kernel/drivers/media/pci/ivtv/
H A Divtvfb.c165 int bytes_per_pixel; member
227 oi->display_byte_stride = osd->pixel_stride * oi->bytes_per_pixel; in ivtvfb_set_osd_coords()
550 oi->bytes_per_pixel = var->bits_per_pixel / 8; in ivtvfb_set_var()
973 oi->bytes_per_pixel = oi->bits_per_pixel / 8; in ivtvfb_init_vidmode()
1001 start_window.width * oi->bytes_per_pixel; in ivtvfb_init_vidmode()
/OK3568_Linux_fs/external/xserver/hw/kdrive/ephyr/
H A Dhostx.c1010 int bytes_per_pixel = scrpriv->server_depth >> 3; in hostx_screen_init() local
1011 int stride = (width * bytes_per_pixel + 0x3) & ~0x3; in hostx_screen_init()
1016 EPHYR_DBG("server bpp %i", bytes_per_pixel); in hostx_screen_init()
1072 int x, y, idx, bytes_per_pixel = (scrpriv->server_depth >> 3); in hostx_paint_rect() local
1073 int stride = (scrpriv->win_width * bytes_per_pixel + 0x3) & ~0x3; in hostx_paint_rect()
1080 idx = y * stride + x * bytes_per_pixel; in hostx_paint_rect()
/OK3568_Linux_fs/kernel/drivers/video/fbdev/vermilion/
H A Dvermilion.h209 u32 bytes_per_pixel; member
H A Dvermilion.c772 vinfo->bytes_per_pixel = var->bits_per_pixel >> 3; in vmlfb_set_par_locked()
773 vinfo->stride = ALIGN(var->xres_virtual * vinfo->bytes_per_pixel, 0x40); in vmlfb_set_par_locked()
856 var->xoffset * vinfo->bytes_per_pixel); in vmlfb_set_par_locked()
943 var->xoffset * vinfo->bytes_per_pixel); in vmlfb_pan_display()
/OK3568_Linux_fs/yocto/poky/meta/recipes-multimedia/libtiff/tiff/
H A D0001-tiffcrop-subroutines-require-a-larger-buffer-fixes-2.patch40 uint32_t bytes_per_sample, bytes_per_pixel;
301 int i, bytes_per_sample, bytes_per_pixel, shift_width, result = 1;
630 bytes_per_pixel = ((bps * spp) + 7) / 8;
631 if (bytes_per_pixel < (bytes_per_sample + 1))
/OK3568_Linux_fs/u-boot/drivers/video/
H A Dipu.h243 uint32_t bytes_per_pixel(uint32_t fmt);
H A Dipu_common.c1008 if (stride < width * bytes_per_pixel(pixel_fmt)) in ipu_init_channel_buffer()
1009 stride = width * bytes_per_pixel(pixel_fmt); in ipu_init_channel_buffer()
1182 uint32_t bytes_per_pixel(uint32_t fmt) in bytes_per_pixel() function
/OK3568_Linux_fs/kernel/drivers/video/fbdev/
H A Dimxfb.c871 int bytes_per_pixel; in imxfb_probe() local
939 bytes_per_pixel = (m->bpp + 7) / 8; in imxfb_probe()
942 m->mode.xres * m->mode.yres * bytes_per_pixel); in imxfb_probe()
/OK3568_Linux_fs/external/xserver/hw/xfree86/modes/
H A Dxf86Modes.c110 int bytes_per_pixel = bits_to_bytes(depth); in xf86ModeBandwidth() local
120 return (unsigned int) (pixels_per_second * bytes_per_pixel / (1024 * 1024)); in xf86ModeBandwidth()
/OK3568_Linux_fs/kernel/drivers/video/fbdev/intelfb/
H A Dintelfbhw.c316 int bytes_per_pixel; in intelfbhw_validate_mode() local
323 bytes_per_pixel = var->bits_per_pixel / 8; in intelfbhw_validate_mode()
324 if (bytes_per_pixel == 3) in intelfbhw_validate_mode()
325 bytes_per_pixel = 4; in intelfbhw_validate_mode()
328 tmp = var->yres_virtual * var->xres_virtual * bytes_per_pixel; in intelfbhw_validate_mode()

12