Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
aom-rav1e
Commits
fd65c8dc
Commit
fd65c8dc
authored
Nov 07, 2017
by
Debargha Mukherjee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix to hashing function to support highbitdepth
Change-Id: Ib5de3d1c1acce676b3fcc12b4c237d681ac9a845
parent
e09a9a6c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
+4
-10
av1/encoder/rdopt.c
av1/encoder/rdopt.c
+4
-10
No files found.
av1/encoder/rdopt.c
View file @
fd65c8dc
...
...
@@ -4639,18 +4639,12 @@ int inter_block_yrd(const AV1_COMP *cpi, MACROBLOCK *x, RD_STATS *rd_stats,
static uint32_t get_block_residue_hash(MACROBLOCK *x, BLOCK_SIZE bsize) {
const int rows = block_size_high[bsize];
const int cols = block_size_wide[bsize];
const int diff_stride = cols;
const struct macroblock_plane *const p = &x->plane[0];
const int16_t *diff = &p->src_diff[0];
uint8_t hash_data[MAX_SB_SQUARE];
for (int r = 0; r < rows; ++r) {
for (int c = 0; c < cols; ++c) {
hash_data[cols * r + c] = clip_pixel(diff[c] + 128);
}
diff += diff_stride;
}
return (av1_get_crc_value(&x->tx_rd_record.crc_calculator, hash_data,
rows * cols)
uint16_t hash_data[MAX_SB_SQUARE];
memcpy(hash_data, diff, sizeof(*hash_data) * rows * cols);
return (av1_get_crc_value(&x->tx_rd_record.crc_calculator,
(uint8_t *)hash_data, 2 * rows * cols)
<< 7) +
bsize;
}
...
...
Write
Preview
Markdown
is supported
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