Root/
Source at commit 2381 created 10 years 21 days ago. By ifabio, Apply patch: (Credits to Thomas Jansen aka tja) - Reading options from all devices during boot. The options for the boot menu are only read from the devices rd(0,0) or bt(0,0). Consequently, boot menu options (e.g. "Quiet Boot", "Timeout", etc.) in plists on other devices (like most users have) are ignored. This patch extends the list of paths to search for the options plist on all devices that can be found. | |
---|---|
1 | #ifndef _PICOPNG_H␊ |
2 | #define _PICOPNG_H␊ |
3 | ␊ |
4 | #include <stdint.h>␊ |
5 | ␊ |
6 | typedef struct {␊ |
7 | ␉uint32_t *data;␊ |
8 | ␉size_t size;␊ |
9 | ␉size_t allocsize;␊ |
10 | } vector32_t;␊ |
11 | ␊ |
12 | typedef struct {␊ |
13 | ␉uint8_t *data;␊ |
14 | ␉size_t size;␊ |
15 | ␉size_t allocsize;␊ |
16 | } vector8_t;␊ |
17 | ␊ |
18 | typedef struct {␊ |
19 | ␉uint32_t width, height;␊ |
20 | ␉uint32_t colorType, bitDepth;␊ |
21 | ␉uint32_t compressionMethod, filterMethod, interlaceMethod;␊ |
22 | ␉uint32_t key_r, key_g, key_b;␊ |
23 | ␉bool key_defined; // is a transparent color key given?␊ |
24 | ␉vector8_t *palette;␊ |
25 | ␉vector8_t *image;␊ |
26 | } PNG_info_t;␊ |
27 | ␊ |
28 | PNG_info_t *PNG_decode(const uint8_t *in, uint32_t size);␊ |
29 | void png_alloc_free_all();␊ |
30 | ␊ |
31 | extern int PNG_error;␊ |
32 | ␊ |
33 | #endif␊ |
34 |