Add DecodeImageCallbacks::SelectPixfmt

This commit is contained in:
Nigel Tao committed 2021-03-11 16:25:16 +11:00
1 parent 441e96a8d4
commit 5767f030a3
5 files changed
+175 -155

No files matched your search

+1 -1
View File
@@ -111,7 +111,7 @@ load_image(const char* filename) {
wuffs_aux::DecodeImageCallbacks callbacks;
wuffs_aux::sync_io::FileInput input(file);
wuffs_aux::DecodeImageResult res = wuffs_aux::DecodeImage(
callbacks, input, WUFFS_BASE__PIXEL_FORMAT__BGRA_PREMUL,
callbacks, input,
// Use PIXEL_BLEND__SRC_OVER, not the default PIXEL_BLEND__SRC, because
// we also pass a background color.
WUFFS_BASE__PIXEL_BLEND__SRC_OVER,