Commit 963b86d3 authored by Angie Chiang's avatar Angie Chiang

Use ADAPT_SCAN_PROB_PRECISION to init prob

Change-Id: I94d66c65d78235e1025703caf79ccca43208d604
parent 466ae062
...@@ -6824,7 +6824,8 @@ void av1_init_scan_order(AV1_COMMON *cm) { ...@@ -6824,7 +6824,8 @@ void av1_init_scan_order(AV1_COMMON *cm) {
int i; int i;
SCAN_ORDER *sc = &cm->fc->sc[tx_size][tx_type]; SCAN_ORDER *sc = &cm->fc->sc[tx_size][tx_type];
for (i = 0; i < tx2d_size; ++i) { for (i = 0; i < tx2d_size; ++i) {
non_zero_prob[i] = (1 << 16) / 2; // init non_zero_prob to 0.5 non_zero_prob[i] =
(1 << ADAPT_SCAN_PROB_PRECISION) / 2; // init non_zero_prob to 0.5
} }
update_scan_order_facade(cm, tx_size, tx_type); update_scan_order_facade(cm, tx_size, tx_type);
sc->scan = get_adapt_scan(cm->fc, tx_size, tx_type); sc->scan = get_adapt_scan(cm->fc, tx_size, tx_type);
......
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