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:
22
include/photo_view.h
Normal file
22
include/photo_view.h
Normal file
@@ -0,0 +1,22 @@
|
||||
#pragma once
|
||||
|
||||
#include <lvgl.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include "photo_list.h"
|
||||
|
||||
bool photo_view_init();
|
||||
void photo_view_deinit();
|
||||
|
||||
// Decode entry into half-res RGB565 canvas (160x120, shown 2x).
|
||||
bool photo_view_show(const PhotoEntry *entry);
|
||||
|
||||
const lv_image_dsc_t *photo_view_dsc();
|
||||
uint16_t photo_view_canvas_w();
|
||||
uint16_t photo_view_canvas_h();
|
||||
uint16_t photo_view_img_w();
|
||||
uint16_t photo_view_img_h();
|
||||
|
||||
bool photo_view_is_gif();
|
||||
// Advance GIF frame if due; returns true when pixels changed.
|
||||
bool photo_view_gif_tick();
|
||||
Reference in New Issue
Block a user