Make sure pre-multiplication is right in test_pessimization
Change-Id: Id7f90be7f6568b8e14efd092154609372ba496aa
Reviewed-on: https://chromium-review.googlesource.com/c/codecs/libwebp2/+/6276825
Reviewed-by: Yannis Guyon <yguyon@google.com>
Tested-by: WebM Builds <builds@webmproject.org>
diff --git a/tests/test_pessimization.cc b/tests/test_pessimization.cc
index 8bff2f8..1cf2ff0 100644
--- a/tests/test_pessimization.cc
+++ b/tests/test_pessimization.cc
@@ -318,6 +318,8 @@
status = LossyDecode(features, config, &tiles_layout, &dec, &tile);
} else {
assert(gparams.type_ == GlobalParams::GP_LOSSLESS);
+ WP2_CHECK_STATUS(tile.rgb_output.SetFormat(
+ features.is_premultiplied ? WP2_Argb_32 : WP2_ARGB_32));
WP2_CHECK_STATUS(tile.rgb_output.Resize(width, height));
status = LosslessDecode(features, config, gparams, &dec, &tile);
}