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, |
| 15 | unsigned int y_resolution, unsigned int fb_resolution); |
| 16 | |
Kyösti Mälkki | 4949a3d | 2021-01-09 20:38:43 +0200 | [diff] [blame] | 17 | |
| 18 | void bmp_load_logo(uint32_t *logo_ptr, uint32_t *logo_size); |
| 19 | void bmp_release_logo(void); |
| 20 | |
Johanna Schander | db7a3ae | 2019-07-24 10:14:26 +0200 | [diff] [blame] | 21 | #endif |