]> granicus.if.org Git - libvpx/commitdiff
av1_inv_txfm_test: fix decode-only build
authorJames Zern <jzern@google.com>
Wed, 11 May 2016 02:07:41 +0000 (19:07 -0700)
committerYaowu Xu <yaowu@google.com>
Wed, 7 Sep 2016 23:33:35 +0000 (16:33 -0700)
fdct's are only enabled with --enable-av1-encoder

Change-Id: Iaf1dfdf713f2ecd1d215ba7ec635f353c02fa4d0

test/av1_inv_txfm_test.cc

index 1a7c102af194f55ec415df178dd201a9e4797431..83a76809a1f5b6299c52a1ef8807c0532d3b293d 100644 (file)
@@ -109,6 +109,7 @@ INSTANTIATE_TEST_CASE_P(
                       IdctParam(&av1_idct16_c, &reference_idct_1d, 16, 4),
                       IdctParam(&av1_idct32_c, &reference_idct_1d, 32, 6)));
 
+#if CONFIG_AV1_ENCODER
 typedef void (*FwdTxfmFunc)(const int16_t *in, tran_low_t *out, int stride);
 typedef void (*InvTxfmFunc)(const tran_low_t *in, uint8_t *out, int stride);
 typedef std::tr1::tuple<FwdTxfmFunc, InvTxfmFunc, InvTxfmFunc, TX_SIZE, int>
@@ -272,4 +273,5 @@ INSTANTIATE_TEST_CASE_P(
                                  &av1_idct8x8_1_add_c, TX_8X8, 1),
                       make_tuple(&av1_fdct4x4_c, &av1_idct4x4_16_add_c,
                                  &av1_idct4x4_1_add_c, TX_4X4, 1)));
+#endif  // CONFIG_AV1_ENCODER
 }  // namespace