I1 绘制缓冲布局写入 ui_port.h 并去掉多余护栏,取帧端补防回归注记

This commit is contained in:
2026-09-21 03:50:54 +08:00
parent 368050dbc3
commit e6876cf979
3 changed files with 27 additions and 15 deletions
+4 -1
View File
@@ -20,7 +20,10 @@
* out_size - out 容量(字节)
* 返回值:0 - 成功,-1 - 参数或帧缓冲无效
* 限定条件:ui_port_init() 已成功
* 函数说明:帧缓冲本就是 1bpp(布局与协议一致),直接整帧拷贝
* 函数说明:帧缓冲本就是 1bpp 且**已是纯像素**(无 palette),直接整帧拷贝。
* 注意:不要改成直接读 LVGL 绘制缓冲 g_ui_draw_buf——那是索引色
* [palette 8B][pixel data] 布局(见 ui_port.h),首 8 字节是调色板,
* 直接拷会让推流画面整体错位 8 字节;flush 回调已跳过 palette 写入本缓冲。
*/
int ui_net_sink_get_lcdmem(uint8_t *out, uint32_t out_size) {
const uint8_t *fb;