1
0
Fork 0
forked from len0rd/rockbox

consolidate bmp_read function between icons and skin_parser

uses fd now rather than opening file twice

Change-Id: If35418cbc77adacf5e96fb6aa0fc8ffef2fffcbd
This commit is contained in:
William Wilgus 2022-12-19 21:12:07 -05:00
parent 2b4a4070c9
commit 88f6628423
4 changed files with 120 additions and 89 deletions

View file

@ -222,4 +222,15 @@ enum current_activity get_current_activity(void);
/* format a sound value like: -1.05 dB */
int format_sound_value(char *buf, size_t len, int snd, int val);
#ifndef PLUGIN
enum core_load_bmp_error
{
CLB_ALOC_ERR = 0,
CLB_READ_ERR = -1,
};
struct buflib_callbacks;
int core_load_bmp(const char *filename, struct bitmap *bm, const int bmformat,
ssize_t *buf_reqd, struct buflib_callbacks *ops);
#endif
#endif /* MISC_H */