Commit 48876390 authored by Jingning Han's avatar Jingning Han
Browse files

Make get_entropy_context() support 2x2 transform block

Change-Id: Icbb4e686b4a5e7fdd1de76d412f43fdf1bf8830a
parent 9c405d4f
......@@ -219,6 +219,12 @@ static INLINE int get_entropy_context(TX_SIZE tx_size, const ENTROPY_CONTEXT *a,
ENTROPY_CONTEXT above_ec = 0, left_ec = 0;
switch (tx_size) {
#if CONFIG_CB4X4
case TX_2X2:
above_ec = a[0] != 0;
left_ec = l[0] != 0;
break;
#endif
case TX_4X4:
above_ec = a[0] != 0;
left_ec = l[0] != 0;
......
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