Commit 7bb84f30 authored by Sarah Parker's avatar Sarah Parker Committed by Debargha Mukherjee
Browse files

Lower base weight in difference modulated masks

This improves peformance on the lowres set by about 0.05%

Change-Id: I2b7b7ae11eb96ac6ff582438bcc8e12925f1e2b3
parent 40a42d4b
......@@ -63,8 +63,8 @@ typedef enum {
#define MAX_SEG_MASK_BITS 1
// SEG_MASK_TYPES should not surpass 1 << MAX_SEG_MASK_BITS
typedef enum {
DIFFWTD_42 = 0,
DIFFWTD_42_INV,
DIFFWTD_38 = 0,
DIFFWTD_38_INV,
SEG_MASK_TYPES,
} SEG_MASK_TYPE;
......
......@@ -371,12 +371,12 @@ void build_compound_seg_mask(uint8_t *mask, SEG_MASK_TYPE mask_type,
const uint8_t *src1, int src1_stride,
BLOCK_SIZE sb_type, int h, int w) {
switch (mask_type) {
case DIFFWTD_42:
diffwtd_mask(mask, 0, 42, src0, src0_stride, src1, src1_stride, sb_type,
case DIFFWTD_38:
diffwtd_mask(mask, 0, 38, src0, src0_stride, src1, src1_stride, sb_type,
h, w);
break;
case DIFFWTD_42_INV:
diffwtd_mask(mask, 1, 42, src0, src0_stride, src1, src1_stride, sb_type,
case DIFFWTD_38_INV:
diffwtd_mask(mask, 1, 38, src0, src0_stride, src1, src1_stride, sb_type,
h, w);
break;
default: assert(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