Commit fc256542 authored by David Barker's avatar David Barker Committed by Debargha Mukherjee

Fix inconsistency in compound-segment masks

The value of 'mask_base' passed to diffwtd_mask is currently
38 for the lowbd path and 42 for the highbd path. Going off of
the mode name (DIFFWTD_38), presumably these are both supposed
to be 38, so change the highbd path accordingly.

Change-Id: I5fb0099c4b8b3ca3c4f211562401b12012f5c002
parent 0b90540e
......@@ -457,12 +457,12 @@ void build_compound_seg_mask_highbd(uint8_t *mask, SEG_MASK_TYPE mask_type,
BLOCK_SIZE sb_type, int h, int w, int bd) {
switch (mask_type) {
case DIFFWTD_38:
diffwtd_mask_highbd(mask, 0, 42, CONVERT_TO_SHORTPTR(src0), src0_stride,
diffwtd_mask_highbd(mask, 0, 38, CONVERT_TO_SHORTPTR(src0), src0_stride,
CONVERT_TO_SHORTPTR(src1), src1_stride, sb_type, h, w,
bd);
break;
case DIFFWTD_38_INV:
diffwtd_mask_highbd(mask, 1, 42, CONVERT_TO_SHORTPTR(src0), src0_stride,
diffwtd_mask_highbd(mask, 1, 38, CONVERT_TO_SHORTPTR(src0), src0_stride,
CONVERT_TO_SHORTPTR(src1), src1_stride, sb_type, h, w,
bd);
break;
......
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