Angel Pons | 32859fc | 2020-04-02 23:48:27 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Johanna Schander | db7a3ae | 2019-07-24 10:14:26 +0200 | [diff] [blame] | 2 | |
| 3 | #ifndef __BOOTSPLASH_H__ |
| 4 | #define __BOOTSPLASH_H__ |
| 5 | |
| 6 | #include <types.h> |
| 7 | |
| 8 | /** |
Johanna Schander | db7a3ae | 2019-07-24 10:14:26 +0200 | [diff] [blame] | 9 | * 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 | */ |
| 14 | void set_bootsplash(unsigned char *framebuffer, unsigned int x_resolution, |
Nico Huber | 99eee16 | 2023-07-14 00:09:00 +0200 | [diff] [blame] | 15 | unsigned int y_resolution, unsigned int bytes_per_line, |
| 16 | unsigned int fb_resolution); |
Johanna Schander | db7a3ae | 2019-07-24 10:14:26 +0200 | [diff] [blame] | 17 | |
Shelley Chen | fddf916 | 2024-01-03 14:00:07 -0800 | [diff] [blame] | 18 | /* |
| 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 | */ |
| 22 | const char *bmp_logo_filename(void); |
Subrata Banik | 9c4d85d | 2024-04-02 08:00:14 +0000 | [diff] [blame^] | 23 | void *bmp_load_logo(size_t *logo_size); |
Kyösti Mälkki | 4949a3d | 2021-01-09 20:38:43 +0200 | [diff] [blame] | 24 | void bmp_release_logo(void); |
| 25 | |
Johanna Schander | db7a3ae | 2019-07-24 10:14:26 +0200 | [diff] [blame] | 26 | #endif |