14 unsigned int y_resolution,
unsigned int fb_resolution)
16 printk(
BIOS_INFO,
"Setting up bootsplash in %dx%d@%d\n", x_resolution, y_resolution,
25 int image_width, image_height;
28 printk(
BIOS_DEBUG,
"Bootsplash image resolution: %dx%d\n", image_width, image_height);
30 decdata =
malloc(
sizeof(*decdata));
31 int ret =
jpeg_decode(jpeg, framebuffer, x_resolution, y_resolution, fb_resolution,
35 printk(
BIOS_ERR,
"Bootsplash could not be decoded. jpeg_decode returned %d.\n",
void set_bootsplash(unsigned char *framebuffer, unsigned int x_resolution, unsigned int y_resolution, unsigned int fb_resolution)
Sets up the framebuffer with the bootsplash.jpg from cbfs.
void cbfs_unmap(void *mapping)
static void * cbfs_map(const char *name, size_t *size_out)
#define printk(level,...)
void * malloc(size_t size)
void jpeg_fetch_size(unsigned char *buf, int *width, int *height)
int jpeg_decode(unsigned char *buf, unsigned char *pic, int width, int height, int depth, struct jpeg_decdata *decdata)
#define BIOS_INFO
BIOS_INFO - Expected events.
#define BIOS_DEBUG
BIOS_DEBUG - Verbose output.
#define BIOS_ERR
BIOS_ERR - System in incomplete state.