From dcbcde64105faa8c8e951056840dc15c0e31b995 Mon Sep 17 00:00:00 2001 From: Florian Egger Date: Mon, 7 Sep 2026 11:27:59 +0200 Subject: [PATCH] docs: record the FFmpeg/SDL pixel-format naming trap in memory --- .agents/MEMORY.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.agents/MEMORY.md b/.agents/MEMORY.md index fc7856c..ed01eb6 100644 --- a/.agents/MEMORY.md +++ b/.agents/MEMORY.md @@ -75,6 +75,11 @@ loopback validation pending. See bottom for the run commands. signaling/discovery). IPv4 only at the transport level for now. - Rendering: **SDL3** (`sdl3` pkg-config, 3.4 installed); plain texture upload, no GPU pipeline yet. +- **Pixel-format convention trap**: FFmpeg names packed formats in memory + byte order (AV_PIX_FMT_RGBA = R,G,B,A in memory), but SDL names 32-bit + formats MSB-first (SDL_PIXELFORMAT_RGBA8888 = A,B,G,R in memory). + FFmpeg RGBA data therefore needs SDL_PIXELFORMAT_ABGR8888 — using + RGBA8888 paints the alpha byte as red (red-tinted image). - Discovery: mDNS/Avahi. - Namespace: `sc`. - Module error results use per-module `std::variant` types