assemble a splash preview if none was found (#277)

This commit is contained in:
Jan
2024-04-24 20:32:54 +02:00
committed by GitHub
parent 6b89496566
commit d037691418
5 changed files with 221 additions and 81 deletions

View File

@@ -31,6 +31,12 @@
#include "music.h"
#include <jansson.h>
// These values assume a horizontal orientation
#define TOP_SCREEN_WIDTH 400
#define BOTTOM_SCREEN_WIDTH 320
#define SCREEN_HEIGHT 240
#define SCREEN_COLOR_DEPTH 4
enum ICON_IDS_OFFSET {
ICONS_ABOVE = 0,
ICONS_VISIBLE,
@@ -118,7 +124,7 @@ void sort_by_filename(Entry_List_s * list);
void delete_entry(Entry_s * entry, bool is_file);
Result load_entries(const char * loading_path, Entry_List_s * list);
bool load_preview_from_buffer(void * buf, u32 size, C2D_Image * preview_image, int * preview_offset);
bool load_preview_from_buffer(char * row_pointers, u32 size, C2D_Image * preview_image, int * preview_offset);
bool load_preview(Entry_List_s list, C2D_Image * preview_image, int * preview_offset);
void free_preview(C2D_Image preview_image);
Result load_audio(Entry_s, audio_s *);