diff --git a/aom_dsp/entdec.h b/aom_dsp/entdec.h index cd90b2cba..acb17685a 100644 --- a/aom_dsp/entdec.h +++ b/aom_dsp/entdec.h @@ -20,7 +20,7 @@ extern "C" { typedef struct od_ec_dec od_ec_dec; -#if OD_ACCOUNTING +#if defined(OD_ACCOUNTING) && OD_ACCOUNTING #define OD_ACC_STR , char *acc_str #define od_ec_dec_bits(dec, ftb, str) od_ec_dec_bits_(dec, ftb, str) #else diff --git a/av1/common/tile_common.h b/av1/common/tile_common.h index 19daac2a5..516896a5d 100644 --- a/av1/common/tile_common.h +++ b/av1/common/tile_common.h @@ -16,6 +16,8 @@ extern "C" { #endif +#include "./aom_config.h" + struct AV1Common; #if CONFIG_TILE_GROUPS diff --git a/av1/decoder/decodeframe.c b/av1/decoder/decodeframe.c index 3f8aac63f..990a516d6 100644 --- a/av1/decoder/decodeframe.c +++ b/av1/decoder/decodeframe.c @@ -1686,12 +1686,9 @@ static void decode_token_and_recon_block(AV1Decoder *const pbi, tu_idx_c++; } - if (bsize >= BLOCK_8X8 && eobtotal == 0) -#if CONFIG_MISC_FIXES - mbmi->has_no_coeffs = 1; -#else - mbmi->skip = 1; -#endif + // TODO(CONFIG_COEF_INTERLEAVE owners): bring eob == 0 corner case + // into line with the defaut configuration + if (bsize >= BLOCK_8X8 && eobtotal == 0) mbmi->skip = 1; } } } diff --git a/av1/decoder/detokenize.c b/av1/decoder/detokenize.c index 98116892c..dffc56afa 100644 --- a/av1/decoder/detokenize.c +++ b/av1/decoder/detokenize.c @@ -9,14 +9,12 @@ * PATENTS file, you can obtain it at www.aomedia.org/license/patent. */ +#include "./aom_config.h" #if !CONFIG_PVQ #include "aom_mem/aom_mem.h" #include "aom_ports/mem.h" #endif // !CONFIG_PVQ -#if CONFIG_ANS -#include "aom_dsp/ans.h" -#endif // CONFIG_ANS #include "av1/common/blockd.h" #define ACCT_STR __func__ diff --git a/av1/decoder/detokenize.h b/av1/decoder/detokenize.h index b31711e47..ba4066603 100644 --- a/av1/decoder/detokenize.h +++ b/av1/decoder/detokenize.h @@ -12,11 +12,9 @@ #ifndef AV1_DECODER_DETOKENIZE_H_ #define AV1_DECODER_DETOKENIZE_H_ +#include "./aom_config.h" #if !CONFIG_PVQ || CONFIG_VAR_TX #include "av1/decoder/decoder.h" -#if CONFIG_ANS -#include "aom_dsp/ans.h" -#endif // CONFIG_ANS #include "av1/common/scan.h" #endif // !CONFIG_PVQ diff --git a/av1/encoder/pvq_encoder.h b/av1/encoder/pvq_encoder.h index 50a5e8ae8..7492287e3 100644 --- a/av1/encoder/pvq_encoder.h +++ b/av1/encoder/pvq_encoder.h @@ -19,6 +19,10 @@ # include "av1/common/pvq.h" # include "av1/encoder/encint.h" +#ifndef OD_SIGNAL_Q_SCALING +# define OD_SIGNAL_Q_SCALING (0) +#endif + void aom_encode_band_pvq_splits(aom_writer *w, od_pvq_codeword_ctx *adapt, const int *y, int n, int k, int level); diff --git a/av1/encoder/resize.c b/av1/encoder/resize.c index ed416edab..3bb9f6058 100644 --- a/av1/encoder/resize.c +++ b/av1/encoder/resize.c @@ -16,6 +16,7 @@ #include #include +#include "./aom_config.h" #if CONFIG_AOM_HIGHBITDEPTH #include "aom_dsp/aom_dsp_common.h" #endif // CONFIG_AOM_HIGHBITDEPTH diff --git a/av1/encoder/temporal_filter.c b/av1/encoder/temporal_filter.c index 2dd7d02c3..c46b99099 100644 --- a/av1/encoder/temporal_filter.c +++ b/av1/encoder/temporal_filter.c @@ -12,6 +12,7 @@ #include #include +#include "./aom_config.h" #include "av1/common/alloccommon.h" #include "av1/common/onyxc_int.h" #include "av1/common/quant_common.h"