blob: 372e8c2062ec147c37fd03cd729a2bcb22e35bc1 [file] [log] [blame]
Angel Pons32859fc2020-04-02 23:48:27 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Johanna Schanderdb7a3ae2019-07-24 10:14:26 +02002
3#ifndef __BOOTSPLASH_H__
4#define __BOOTSPLASH_H__
5
6#include <types.h>
7
8/**
Johanna Schanderdb7a3ae2019-07-24 10:14:26 +02009 * Sets up the framebuffer with the bootsplash.jpg from cbfs.
10 * Returns 0 on success
11 * CB_ERR on cbfs errors
12 * and >0 on jpeg errors.
13 */
14void set_bootsplash(unsigned char *framebuffer, unsigned int x_resolution,
Nico Huber99eee162023-07-14 00:09:00 +020015 unsigned int y_resolution, unsigned int bytes_per_line,
16 unsigned int fb_resolution);
Johanna Schanderdb7a3ae2019-07-24 10:14:26 +020017
Shelley Chenfddf9162024-01-03 14:00:07 -080018/*
19 * Allow platform-specific BMP logo overrides via HAVE_CUSTOM_BMP_LOGO config.
20 * For example: Introduce configurable BMP logo for customization on platforms like ChromeOS
21 */
22const char *bmp_logo_filename(void);
Subrata Banik9c4d85d2024-04-02 08:00:14 +000023void *bmp_load_logo(size_t *logo_size);
Kyösti Mälkki4949a3d2021-01-09 20:38:43 +020024void bmp_release_logo(void);
25
Johanna Schanderdb7a3ae2019-07-24 10:14:26 +020026#endif