diff options
author | paulwilkins <paulwilkins@google.com> | 2016-06-30 13:38:57 +0100 |
---|---|---|
committer | paulwilkins <paulwilkins@google.com> | 2016-06-30 13:38:57 +0100 |
commit | e25d6252a41bcc10bd099569193aac4a032589fc (patch) | |
tree | ddc816c2550a09c7575d853ad34a2d43b74d76bd /vp9 | |
parent | f9a3d08f1b4c1a41d87d9d74b640d68e9dacda8d (diff) | |
download | libvpx-e25d6252a41bcc10bd099569193aac4a032589fc.tar libvpx-e25d6252a41bcc10bd099569193aac4a032589fc.tar.gz libvpx-e25d6252a41bcc10bd099569193aac4a032589fc.tar.bz2 libvpx-e25d6252a41bcc10bd099569193aac4a032589fc.zip |
Fix error in get_ul_intra_threshold() for 10/12 bit.
The scaling of the threshold for 10 and 12 bit here appears
to be in the wrong direction. For 10 and 12 bit we expect sse
values to be higher and hence the threshold used should be
scaled up not down.
Change-Id: I2678116652b539aef48100e0f22873edd4f5a786
Diffstat (limited to 'vp9')
-rw-r--r-- | vp9/encoder/vp9_firstpass.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vp9/encoder/vp9_firstpass.c b/vp9/encoder/vp9_firstpass.c index 11b397cd6..66ccc92c4 100644 --- a/vp9/encoder/vp9_firstpass.c +++ b/vp9/encoder/vp9_firstpass.c @@ -506,10 +506,10 @@ static int get_ul_intra_threshold(VP9_COMMON *cm) { ret_val = UL_INTRA_THRESH; break; case VPX_BITS_10: - ret_val = UL_INTRA_THRESH >> 2; + ret_val = UL_INTRA_THRESH << 2; break; case VPX_BITS_12: - ret_val = UL_INTRA_THRESH >> 4; + ret_val = UL_INTRA_THRESH << 4; break; default: assert(0 && "cm->bit_depth should be VPX_BITS_8, " |