Commit 8a65f9f1 authored by Sebastien Alaiwan's avatar Sebastien Alaiwan

Fix unit tests with --disable-lowbitdepth

This removes a workaround, which is not needed anymore
now that the choice of coding path is done in aomdec.c
instead of decode_frame.c.

BUG=aomedia:620

Change-Id: I42acdd51036461c23fdaa69324e0415b53ee74fa
parent 4a841347
......@@ -43,7 +43,7 @@ class AV1ExtTileTest
aom_codec_dec_cfg_t cfg = aom_codec_dec_cfg_t();
cfg.w = kImgWidth;
cfg.h = kImgHeight;
cfg.allow_lowbitdepth = CONFIG_LOWBITDEPTH;
cfg.allow_lowbitdepth = 1;
decoder_ = codec_->CreateDecoder(cfg, 0);
decoder_->Control(AV1_SET_DECODE_TILE_ROW, -1);
......
......@@ -63,7 +63,7 @@ TEST_P(DecodePerfTest, PerfTest) {
aom_codec_dec_cfg_t cfg = aom_codec_dec_cfg_t();
cfg.threads = threads;
cfg.allow_lowbitdepth = CONFIG_LOWBITDEPTH;
cfg.allow_lowbitdepth = 1;
libaom_test::AV1Decoder decoder(cfg, 0);
aom_usec_timer t;
......@@ -211,7 +211,7 @@ TEST_P(AV1NewEncodeDecodePerfTest, PerfTest) {
aom_codec_dec_cfg_t cfg = aom_codec_dec_cfg_t();
cfg.threads = threads;
cfg.allow_lowbitdepth = CONFIG_LOWBITDEPTH;
cfg.allow_lowbitdepth = 1;
libaom_test::AV1Decoder decoder(cfg, 0);
aom_usec_timer t;
......
......@@ -30,7 +30,7 @@ class AVxEncoderThreadTest
aom_codec_dec_cfg_t cfg = aom_codec_dec_cfg_t();
cfg.w = 1280;
cfg.h = 720;
cfg.allow_lowbitdepth = CONFIG_LOWBITDEPTH;
cfg.allow_lowbitdepth = 1;
decoder_ = codec_->CreateDecoder(cfg, 0);
#if CONFIG_AV1 && CONFIG_EXT_TILE
if (decoder_->IsAV1()) {
......
......@@ -33,7 +33,7 @@ class TileIndependenceTest
cfg.w = 704;
cfg.h = 144;
cfg.threads = 1;
cfg.allow_lowbitdepth = CONFIG_LOWBITDEPTH;
cfg.allow_lowbitdepth = 1;
fw_dec_ = codec_->CreateDecoder(cfg, 0);
inv_dec_ = codec_->CreateDecoder(cfg, 0);
inv_dec_->Control(AV1_INVERT_TILE_DECODE_ORDER, 1);
......
......@@ -49,7 +49,7 @@ string DecodeFile(const string &filename) {
video.Init();
aom_codec_dec_cfg_t cfg = aom_codec_dec_cfg_t();
cfg.allow_lowbitdepth = CONFIG_LOWBITDEPTH;
cfg.allow_lowbitdepth = 1;
libaom_test::AV1Decoder decoder(cfg, 0);
libaom_test::MD5 md5;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment