[Git][wine/wine][master] windowscodecs: Decode GIF frames on demand.
Alexandre Julliard pushed to branch master at wine / wine Commits: c2f57082 by Zhengyong Chen at 2026-06-17T23:04:42+02:00 windowscodecs: Decode GIF frames on demand. The GIF decoder currently calls DGifSlurp() during initialization, which decodes and stores pixel data for every frame in the image. For animated GIFs with a large number of frames this can result in significant startup time and memory consumption, even when only a single frame is requested by the application. Change the decoder to scan GIF headers during initialization and defer frame pixel decoding until CopyPixels() is called for a specific frame. This avoids eagerly decoding unused frames while preserving existing decoder behavior. Signed-off-by: chenzhengyong <chenzhengyong@uniontech.com> - - - - - 3 changed files: - dlls/windowscodecs/gifformat.c - dlls/windowscodecs/ungif.c - dlls/windowscodecs/ungif.h View it on GitLab: https://gitlab.winehq.org/wine/wine/-/commit/c2f570827e5c3241223b4d9dccc5cfb... -- View it on GitLab: https://gitlab.winehq.org/wine/wine/-/commit/c2f570827e5c3241223b4d9dccc5cfb... You're receiving this email because of your account on gitlab.winehq.org. Manage all notifications: https://gitlab.winehq.org/-/profile/notifications | Help: https://gitlab.winehq.org/help
participants (1)
-
Alexandre Julliard (@julliard)