Commit ad4ac8a8 authored by Jingning Han's avatar Jingning Han

Allow adaptive scan to support a reduced txfm kernel set

Reduce the supported txfm kernel set from 9 to 4. This
substantially reduce the memory requirement in SRAM for hw design.

Change-Id: Id4f75b7fb1eaad05efe6db89a7bfc60d0324bd35
parent b3b5304f
......@@ -30,8 +30,9 @@ extern const SCAN_ORDER av1_intra_scan_orders[TX_SIZES_ALL][TX_TYPES];
extern const SCAN_ORDER av1_inter_scan_orders[TX_SIZES_ALL][TX_TYPES];
#if CONFIG_ADAPT_SCAN
#define USE_2X2_PROB 1
#define CACHE_SCAN_PROB 1
#define USE_2X2_PROB 0
#define CACHE_SCAN_PROB 0
#define REDUCED_SET 1
#define USE_TOPOLOGICAL_SORT 0
#define USE_LIMIT_SCAN_DISTANCE 0
void av1_update_scan_count_facade(AV1_COMMON *cm, FRAME_COUNTS *counts,
......@@ -91,6 +92,11 @@ static INLINE int do_adapt_scan(TX_SIZE tx_size, TX_TYPE tx_type) {
(void)tx_size;
if (tx_size_2d[tx_size] >= 1024 && tx_type != DCT_DCT) return 0;
if (tx_size > TX_32X16) return 0;
#if CONFIG_ADAPT_SCAN
#if REDUCED_SET
return tx_type <= ADST_ADST;
#endif
#endif
return tx_type < IDTX;
}
......
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