Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
aom-rav1e
Commits
b1cc1f9d
Commit
b1cc1f9d
authored
Apr 11, 2017
by
hui su
Committed by
Hui Su
Apr 12, 2017
Browse files
Fix a bug for high-bit-depth in av1_dist_block()
BUG=aomedia:426 Change-Id: I246b0de3bd25863853643bdb238899bf8e5847be
parent
18ad894a
Changes
1
Hide whitespace changes
Inline
Side-by-side
av1/encoder/rdopt.c
View file @
b1cc1f9d
...
...
@@ -1459,6 +1459,10 @@ void av1_dist_block(const AV1_COMP *cpi, MACROBLOCK *x, int plane,
const int16_t *diff = &p->src_diff[diff_idx];
tmp = sum_squares_visible(xd, plane, diff, diff_stride, blk_row, blk_col,
plane_bsize, tx_bsize);
#if CONFIG_AOM_HIGHBITDEPTH
if (xd->cur_buf->flags & YV12_FLAG_HIGHBITDEPTH)
tmp = ROUND_POWER_OF_TWO(tmp, (xd->bd - 8) * 2);
#endif // CONFIG_AOM_HIGHBITDEPTH
}
*out_sse = (int64_t)tmp * 16;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment