Commit 80668233 authored by Hui Su's avatar Hui Su Committed by Yaowu Xu
Browse files

Add call to aom_clear_system_state() in pallete RDO


Change-Id: Ia8fb6df1a72bd1ff86c7955b681ec0d99c7a99eb
parent d2f281ba
......@@ -2997,6 +2997,7 @@ static int rd_pick_palette_intra_sby(const AV1_COMP *const cpi, MACROBLOCK *x,
// TODO( 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) {
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,
Supports Markdown
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