Commit f931b30a90 for aom
commit f931b30a90071d03b710be9ed61d7413f8c369a4
Author: Ihor Buhaiov <freedbrt@gmail.com>
Date: Tue Oct 13 16:48:51 2026 +0200
Decode to 8-bit in IntraBC border test
EncodeAPI.IntraBCMultiThreadBorderExtension compares the MD5 of the
encoder reconstruction with the decoder output. With
FORCE_HIGHBITDEPTH_DECODING=1 the decoder returns 16-bit images for an
8-bit stream, but the reconstruction stays 8-bit. MD5::Add() hashes 2
bytes per sample for high bitdepth images, so the hashes never match
and every frame fails, including the key frame.
Set allow_lowbitdepth in the test decoder config, like
encode_test_driver.cc does.
Change-Id: Ifb490e7c41c2b79673216bf370a9e918dc3d3e14
diff --git a/test/encode_api_test.cc b/test/encode_api_test.cc
index f08d8b1272..1b564e95c0 100644
--- a/test/encode_api_test.cc
+++ b/test/encode_api_test.cc
@@ -1677,8 +1677,12 @@ TEST(EncodeAPI, IntraBCMultiThreadBorderExtension) {
AOM_CODEC_OK);
ASSERT_EQ(aom_codec_control(&enc, AV1E_SET_ENABLE_INTRABC, 1), AOM_CODEC_OK);
+ // Decode to 8-bit buffers like the encoder reconstruction, even when
+ // FORCE_HIGHBITDEPTH_DECODING is on.
+ aom_codec_dec_cfg_t dec_cfg = {};
+ dec_cfg.allow_lowbitdepth = 1;
aom_codec_ctx_t dec;
- ASSERT_EQ(aom_codec_dec_init(&dec, aom_codec_av1_dx(), nullptr, 0),
+ ASSERT_EQ(aom_codec_dec_init(&dec, aom_codec_av1_dx(), &dec_cfg, 0),
AOM_CODEC_OK);
aom_image_t *img =