Add CYD photo album with jpg/png/gif viewer and sample assets.
Ship TF-card album UI, half-res decode canvas, prebuilt firmware, and documented flash/upload workflow. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
21
include/photo_list.h
Normal file
21
include/photo_list.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
static constexpr int PHOTO_MAX = 64;
|
||||
static constexpr int PHOTO_PATH_MAX = 96;
|
||||
|
||||
enum PhotoKind : uint8_t {
|
||||
PHOTO_JPG = 0,
|
||||
PHOTO_PNG = 1,
|
||||
PHOTO_GIF = 2,
|
||||
};
|
||||
|
||||
struct PhotoEntry {
|
||||
char path[PHOTO_PATH_MAX];
|
||||
PhotoKind kind;
|
||||
};
|
||||
|
||||
uint16_t photo_list_count();
|
||||
const PhotoEntry *photo_list_get(uint16_t index);
|
||||
uint16_t photo_list_scan(); // returns count
|
||||
Reference in New Issue
Block a user