load_jpg: note the valid JPEGs the Wuffs loader rejects (16-bit quantization tables, truncated/no EOI, over 16384)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Richard Geldreich
2026-10-23 18:04:08 -04:00
co-authored by Claude Opus 5.5
parent 1fca0b9737
commit 3c8d24b275
+3
View File
@@ -793,6 +793,9 @@ namespace basisu
return load_png(buffer.data(), buffer.size(), img, pFilename);
}
// With the Wuffs loader, Wuffs' accept/reject is final. Known valid JPEGs it rejects (and so we can't load): 16-bit (Pq=1)
// quantization tables ("jpeg: unsupported precision"), which libjpeg writes when a quantizer exceeds 255 and jpgd/libjpeg-turbo
// decode; also truncated files / files missing the EOI marker, and images over 16384 in either dimension.
bool load_jpg(const char *pFilename, image& img)
{
#if BASISU_USE_WUFFS_LDR_LOADER