| /openbmc/qemu/ui/ |
| H A D | vnc-palette.c | 46 static unsigned int palette_hash(uint32_t rgb, int bpp) in palette_hash() argument 48 if (bpp == 16) { in palette_hash() 55 VncPalette *palette_new(size_t max, int bpp) in palette_new() argument 60 palette_init(palette, max, bpp); in palette_new() 64 void palette_init(VncPalette *palette, size_t max, int bpp) in palette_init() argument 68 palette->bpp = bpp; in palette_init() 82 hash = palette_hash(color, palette->bpp) % VNC_PALETTE_HASH_SIZE; in palette_put() 103 hash = palette_hash(color, palette->bpp) % VNC_PALETTE_HASH_SIZE; in palette_idx()
|
| H A D | qemu-pixman.c | 16 uint8_t bpp; in qemu_pixelformat_from_pixman() local 18 bpp = pf.bits_per_pixel = PIXMAN_FORMAT_BPP(format); in qemu_pixelformat_from_pixman() 41 pf.bshift = bpp - pf.bbits; in qemu_pixelformat_from_pixman() 42 pf.gshift = bpp - (pf.bbits + pf.gbits); in qemu_pixelformat_from_pixman() 43 pf.rshift = bpp - (pf.bbits + pf.gbits + pf.rbits); in qemu_pixelformat_from_pixman() 47 pf.rshift = bpp - pf.rbits; in qemu_pixelformat_from_pixman() 48 pf.gshift = bpp - (pf.rbits + pf.gbits); in qemu_pixelformat_from_pixman() 49 pf.bshift = bpp - (pf.rbits + pf.gbits + pf.bbits); in qemu_pixelformat_from_pixman() 68 pixman_format_code_t qemu_default_pixman_format(int bpp, bool native_endian) in qemu_default_pixman_format() argument 71 switch (bpp) { in qemu_default_pixman_format() [all …]
|
| H A D | vnc-palette.h | 47 int bpp; member 51 VncPalette *palette_new(size_t max, int bpp); 52 void palette_init(VncPalette *palette, size_t max, int bpp);
|
| H A D | vnc-enc-tight.c | 205 #define DEFINE_DETECT_FUNCTION(bpp) \ argument 208 tight_detect_smooth_image##bpp(VncState *vs, VncTight *tight, \ 211 uint##bpp##_t pix; \ 237 pix = ((uint##bpp##_t *)buf)[(y+d)*w+x+d]; \ 239 pix = bswap##bpp(pix); \ 246 pix = ((uint##bpp##_t *)buf)[(y+d)*w+x+d+dx]; \ 248 pix = bswap##bpp(pix); \ 345 #define DEFINE_FILL_PALETTE_FUNCTION(bpp) \ argument 348 tight_fill_palette##bpp(VncState *vs, VncTight *tight, \ 352 uint##bpp##_t *data; \ [all …]
|
| /openbmc/qemu/hw/display/ |
| H A D | ati_2d.c | 61 int bpp = ati_bpp_from_datatype(s); in ati_2d_blt() local 62 if (!bpp) { in ati_2d_blt() 76 dst_stride *= bpp; in ati_2d_blt() 111 src_stride *= bpp; in ati_2d_blt() 123 src_bits, dst_bits, src_stride, dst_stride, bpp, bpp, in ati_2d_blt() 131 src_stride, dst_stride, bpp, bpp, in ati_2d_blt() 136 int llb = s->regs.dst_width * (bpp / 8); in ati_2d_blt() 141 src_stride, tmp_stride, bpp, bpp, in ati_2d_blt() 146 tmp_stride, dst_stride, bpp, bpp, in ati_2d_blt() 157 unsigned int y, i, j, bypp = bpp / 8; in ati_2d_blt() [all …]
|
| H A D | jazz_led.c | 90 int x, bpp; in draw_horizontal_line() local 92 bpp = (surface_bits_per_pixel(ds) + 7) >> 3; in draw_horizontal_line() 93 d = surface_data(ds) + surface_stride(ds) * posy + bpp * posx1; in draw_horizontal_line() 94 switch (bpp) { in draw_horizontal_line() 121 int y, bpp; in draw_vertical_line() local 123 bpp = (surface_bits_per_pixel(ds) + 7) >> 3; in draw_vertical_line() 124 d = surface_data(ds) + surface_stride(ds) * posy1 + bpp * posx; in draw_vertical_line() 125 switch (bpp) { in draw_vertical_line() 153 int y, bpp; in jazz_led_update_display() local 157 bpp = (surface_bits_per_pixel(surface) + 7) >> 3; in jazz_led_update_display() [all …]
|
| H A D | pl110.c | 73 enum pl110_bppmode bpp; member 99 VMSTATE_UINT32(bpp, PL110State), 232 if ((s->version != VERSION_PL111) && (s->bpp == BPP_16)) { in pl110_update_display() 261 fn = pl110_draw_fn_32[s->bpp + 8 + bpp_offset]; in pl110_update_display() 263 fn = pl110_draw_fn_32[s->bpp + 16 + bpp_offset]; in pl110_update_display() 265 fn = pl110_draw_fn_32[s->bpp + bpp_offset]; in pl110_update_display() 269 switch (s->bpp) { in pl110_update_display() 493 s->bpp = (val >> 1) & 7; in pl110_write()
|
| H A D | omap_lcdc.c | 205 int width, linesize, step, bpp, frame_offset; in omap_update_display() local 235 bpp = 2; in omap_update_display() 240 bpp = 4; in omap_update_display() 245 bpp = 8; in omap_update_display() 253 bpp = 16; in omap_update_display() 276 if (frame_offset + ((width * omap_lcd->height * bpp) >> 3) > size + 2) { in omap_update_display() 306 step = width * bpp >> 3; in omap_update_display()
|
| H A D | bcm2835_fb.c | 63 int bpp = surface_bits_per_pixel(surface); in draw_line_src16() local 66 switch (s->config.bpp) { in draw_line_src16() 112 switch (bpp) { in draw_line_src16() 278 newconf.bpp = ldl_le_phys(&s->dma_as, value + 20); in bcm2835_fb_mbox_push() 368 VMSTATE_UINT32(config.bpp, BCM2835FBState), 438 DEFINE_PROP_UINT32("bpp", BCM2835FBState, initial_config.bpp, 16),
|
| /openbmc/u-boot/drivers/video/ |
| H A D | mxsfb.c | 50 struct ctfb_res_modes *mode, int bpp) in mxs_lcd_init() argument 62 switch (bpp) { in mxs_lcd_init() 155 int bpp = -1; in video_hw_init() local 169 bpp = video_get_params(&mode, penv); in video_hw_init() 173 mode.xres, mode.yres, bpp); in video_hw_init() 180 switch (bpp) { in video_hw_init() 195 printf("MXSFB: Invalid BPP specified! (bpp = %i)\n", bpp); in video_hw_init() 217 mxs_lcd_init(&panel, &mode, bpp); in video_hw_init()
|
| H A D | ati_radeon_fb.c | 46 #define SURF_UPPER_BOUND(x,y,bpp) (((((x) * (((y) + 15) & ~15) * (bpp)/8) + RADEON_BUFFER_ALIGN) \ argument 48 #define RADEON_CRT_PITCH(width, bpp) ((((width) * (bpp) + ((bpp) * 8 - 1)) / ((bpp) * 8)) | \ argument 49 ((((width) * (bpp) + ((bpp) * 8 - 1)) / ((bpp) * 8)) << 16)) 359 void radeon_setmode_9200(int vesa_idx, int bpp) in radeon_setmode_9200() argument 368 switch (bpp) { in radeon_setmode_9200() 406 switch (bpp) { in radeon_setmode_9200() 437 switch (bpp) { in radeon_setmode_9200() 465 switch (bpp) { in radeon_setmode_9200() 499 switch (bpp) { in radeon_setmode_9200() 540 if (bpp > 8) in radeon_setmode_9200()
|
| H A D | anx9804.h | 19 void anx9804_init(unsigned int i2c_bus, u8 lanes, u8 data_rate, int bpp); 22 int bpp) {} in anx9804_init() argument
|
| H A D | mb862xx.c | 236 int tmp, i, bpp; in card_init() local 274 bpp = vesa_modes[1].bits_per_pixel; in card_init() 277 bpp = vesa_modes[i].bits_per_pixel; in card_init() 281 bpp = video_get_params (res_mode, penv); in card_init() 298 res_mode->yres, bpp, (hsync / 1000), (vsync / 1000)); in card_init() 304 switch (bpp) { in card_init() 316 bpp); in card_init() 446 void video_hw_rectfill (unsigned int bpp, unsigned int dst_x, in video_hw_rectfill() argument 460 void video_hw_bitblt (unsigned int bpp, unsigned int src_x, in video_hw_bitblt() argument
|
| H A D | da8xx-fb.c | 481 u32 bpp, u32 raster_order) in lcd_cfg_frame_buffer() argument 528 if (bpp == 24) in lcd_cfg_frame_buffer() 530 else if (bpp == 32) in lcd_cfg_frame_buffer() 536 switch (bpp) { in lcd_cfg_frame_buffer() 668 u32 bpp; in lcd_init() local 706 if (cfg->bpp <= cfg->p_disp_panel->max_bpp && in lcd_init() 707 cfg->bpp >= cfg->p_disp_panel->min_bpp) in lcd_init() 708 bpp = cfg->bpp; in lcd_init() 710 bpp = cfg->p_disp_panel->max_bpp; in lcd_init() 711 if (bpp == 12) in lcd_init() [all …]
|
| H A D | am335x-fb.c | 68 #define FBSIZE(x) ((x->hactive * x->vactive * x->bpp) >> 3) 131 switch (panel->bpp) { in am335xfb_init() 141 pr_err("am335x-fb: invalid bpp value: %d\n", panel->bpp); in am335xfb_init() 153 panel->hactive, panel->vactive, panel->bpp, in am335xfb_init()
|
| H A D | anx9804.c | 28 void anx9804_init(unsigned int i2c_bus, u8 lanes, u8 data_rate, int bpp) in anx9804_init() argument 36 if (bpp == 18) in anx9804_init()
|
| H A D | bus_vcxk.c | 363 unsigned long bpp; in vcxk_display_bitmap() local 376 bpp = le16_to_cpu(bmp->header.bit_count); in vcxk_display_bitmap() 394 switch (bpp) { in vcxk_display_bitmap() 400 "not supported by VCxK\n", bpp); in vcxk_display_bitmap()
|
| /openbmc/u-boot/include/ |
| H A D | video_fb.h | 63 unsigned int bpp, /* bytes per pixel */ 75 unsigned int bpp, /* bytes per pixel */
|
| H A D | video_easylogo.h | 21 int bpp; member
|
| /openbmc/qemu/include/ui/ |
| H A D | pixman-minimal.h | 53 #define PIXMAN_FORMAT(bpp, type, a, r, g, b) (((bpp) << 24) | \ argument 123 int bpp = PIXMAN_FORMAT_BPP(format); in create_bits() local 130 if (unlikely(__builtin_mul_overflow(width, bpp, &stride))) { in create_bits()
|
| /openbmc/qemu/include/hw/display/ |
| H A D | bcm2835_fb.h | 32 uint32_t bpp; member 70 return xres * (config->bpp >> 3); in bcm2835_fb_get_pitch()
|
| /openbmc/u-boot/tools/easylogo/ |
| H A D | easylogo.c | 53 int width, height, pixels, bpp, pixel_size, size, palette_size, yuyv; member 185 image->bpp = header.ImagePixelSize; in image_load_tga() 186 image->pixel_size = ((image->bpp - 1) / 8) + 1; in image_load_tga() 191 if (image->bpp != 24) { in image_load_tga() 192 printf ("Bpp not supported: %d!\n", image->bpp); in image_load_tga() 250 yuyv_image->bpp = 16; in image_rgb_to_yuyv() 286 rgb565_image->bpp = 16; in image_rgb888_to_rgb565() 424 fprintf (file, "#define DEF_%s_BPP\t\t%d\n", def_name, image->bpp); in image_save_header()
|
| /openbmc/openbmc/meta-openembedded/meta-oe/recipes-graphics/libsdl/libsdl-1.2.15/ |
| H A D | CVE-2022-34568.patch | 21 if ( hwdata->image != NULL && hwdata->image->pitches[0] != (width*bpp) ) { 24 width = hwdata->image->pitches[0] / bpp;
|
| /openbmc/u-boot/board/siemens/rut/ |
| H A D | board.c | 295 .bpp = 16, 311 .bpp = 16, 327 .bpp = 24, 462 lcd_cfgs[display].bpp); in board_video_init()
|
| /openbmc/u-boot/arch/arm/include/asm/arch-tegra20/ |
| H A D | display.h | 15 unsigned bpp; /* Bits per pixel */ member
|