rd_pick_palette_intra_sbuv: fix implicit float conv
float->int as reported by -Wfloat-conversion Change-Id: I9e3d6ce9dbb0689f214afc8d5950f209275e883d
This commit is contained in:
Родитель
d2e11e9705
Коммит
d2fa9fe853
|
@ -3817,12 +3817,12 @@ static void rd_pick_palette_intra_sbuv(VP10_COMP *cpi, MACROBLOCK *x,
|
||||||
#if CONFIG_VP9_HIGHBITDEPTH
|
#if CONFIG_VP9_HIGHBITDEPTH
|
||||||
if (cpi->common.use_highbitdepth)
|
if (cpi->common.use_highbitdepth)
|
||||||
pmi->palette_colors[i * PALETTE_MAX_SIZE + j] =
|
pmi->palette_colors[i * PALETTE_MAX_SIZE + j] =
|
||||||
clip_pixel_highbd(roundf(centroids[j * 2 + i - 1]),
|
clip_pixel_highbd((int)lroundf(centroids[j * 2 + i - 1]),
|
||||||
cpi->common.bit_depth);
|
cpi->common.bit_depth);
|
||||||
else
|
else
|
||||||
#endif // CONFIG_VP9_HIGHBITDEPTH
|
#endif // CONFIG_VP9_HIGHBITDEPTH
|
||||||
pmi->palette_colors[i * PALETTE_MAX_SIZE + j] =
|
pmi->palette_colors[i * PALETTE_MAX_SIZE + j] =
|
||||||
clip_pixel(roundf(centroids[j * 2 + i - 1]));
|
clip_pixel((int)lroundf(centroids[j * 2 + i - 1]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (r = 0; r < rows; ++r)
|
for (r = 0; r < rows; ++r)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче