sw_engine raster: ++strict types.

This commit is contained in:
Hermet Park 2023-07-19 21:56:18 +09:00
parent 251c97b2d8
commit 0e86cfebba

View file

@ -256,8 +256,8 @@ static uint32_t _interpUpScaler(const uint32_t *img, TVG_UNUSED uint32_t stride,
//OPTIMIZE_ME: Skip the function pointer access
static uint32_t _interpDownScaler(const uint32_t *img, uint32_t stride, uint32_t w, uint32_t h, float sx, float sy, uint32_t n, uint32_t n2)
{
uint32_t rx = lround(sx);
uint32_t ry = lround(sy);
uint32_t rx = lroundf(sx);
uint32_t ry = lroundf(sy);
uint32_t c[4] = {0, 0, 0, 0};
auto src = img + rx - n + (ry - n) * stride;