Commit 2194eecb authored by Jingning Han's avatar Jingning Han
Browse files

Support compute pixel domain distortion for 2x2 transform block

Directly use c code to compute the distortion in pixel domain for
2x2 transform block.

Change-Id: If70049f517d2086c462fcf9a02a12d6fa73adf54
parent bac17c19
...@@ -1133,6 +1133,11 @@ static uint64_t sum_squares_2d(const int16_t *diff, int diff_stride, ...@@ -1133,6 +1133,11 @@ static uint64_t sum_squares_2d(const int16_t *diff, int diff_stride,
TX_SIZE tx_size) { TX_SIZE tx_size) {
uint64_t sse; uint64_t sse;
switch (tx_size) { switch (tx_size) {
#if CONFIG_CB4X4
case TX_2X2:
sse = aom_sum_squares_2d_i16_c(diff, diff_stride, tx_size_wide[tx_size]);
break;
#endif
case TX_4X8: case TX_4X8:
sse = aom_sum_squares_2d_i16(diff, diff_stride, 4) + sse = aom_sum_squares_2d_i16(diff, diff_stride, 4) +
aom_sum_squares_2d_i16(diff + 4 * diff_stride, diff_stride, 4); aom_sum_squares_2d_i16(diff + 4 * diff_stride, diff_stride, 4);
......
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