Skip to content
GitLab
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
80668233
Commit
80668233
authored
Dec 17, 2017
by
Hui Su
Committed by
Yaowu Xu
Dec 18, 2017
Browse files
Add call to aom_clear_system_state() in pallete RDO
BUG=aomedia:1144 Change-Id: Ia8fb6df1a72bd1ff86c7955b681ec0d99c7a99eb
parent
d2f281ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
av1/encoder/rdopt.c
View file @
80668233
...
...
@@ -2997,6 +2997,7 @@ static int rd_pick_palette_intra_sby(const AV1_COMP *const cpi, MACROBLOCK *x,
// TODO(huisu@google.com): Try to avoid duplicate computation in cases
// where the dominant colors and the k-means results are similar.
for (n = AOMMIN(colors, PALETTE_MAX_SIZE); n >= 2; --n) {
aom_clear_system_state();
for (i = 0; i < n; ++i) centroids[i] = (float)(top_colors[i]);
palette_rd_y(cpi, x, mbmi, bsize, palette_ctx, dc_mode_cost, data,
centroids, n, color_cache, n_cache, best_mbmi,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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