mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-24 16:52:18 +01:00
std/jpeg: add and use WUFFS_BASE__QUIRK_QUALITY
This commit is contained in:
1 parent
fb769ff82f
commit
c9fff5b207
17 files changed
+986
-335
No files matched your search
@@ -387,6 +387,13 @@ redirect:
|
||||
|
||||
// Apply quirks.
|
||||
for (size_t i = 0; i < quirks.len; i++) {
|
||||
// TODO: don't special-case this.
|
||||
if (quirks.ptr[i] == WUFFS_BASE__QUIRK_QUALITY) {
|
||||
image_decoder->set_quirk(
|
||||
WUFFS_BASE__QUIRK_QUALITY,
|
||||
WUFFS_BASE__QUIRK_QUALITY__VALUE__LOWER_QUALITY);
|
||||
continue;
|
||||
}
|
||||
image_decoder->set_quirk(quirks.ptr[i], 1);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user