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:
2026-10-19 18:07:56 +08:00
commit 99618a46b0
35 changed files with 3211 additions and 0 deletions

21
include/photo_list.h Normal file
View 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