Files
phtotest/include/photo_view.h
DESKTOP-PUHFO60\dsx2016 6cf42d56a7 Fix photo stripes and keep GIF playback off the UI thread.
Use cover/stretch display, solid sample assets, core0 GIF decode without blocking touch, and always-commit project rule.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-19 18:18:03 +08:00

26 lines
617 B
C

#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);
// Abort GIF worker immediately so touch/switch stays responsive.
void photo_view_stop();
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();
// Publish a ready GIF frame to the visible canvas (non-blocking).
bool photo_view_gif_tick();