Files
phtotest/include/photo_list.h
DESKTOP-PUHFO60\dsx2016 99618a46b0 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>
2026-10-19 18:07:56 +08:00

22 lines
392 B
C

#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