mirror of
https://github.com/BinomialLLC/basis_universal.git
synced 2026-10-28 19:55:30 +00:00
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:
co-authored by
Claude Opus 5.5
parent
1fca0b9737
commit
3c8d24b275
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user