lround
extern long lround(double x);
lround(width * widthScale), height);
VideoFormatChange(width, height, lround(width * widthScale), height);
width = lround(width * shrinkScale);
height = lround(height * shrinkScale);
int renderWidth = lround(scaledWidth * factor);
int renderHeight = lround(scaledHeight * factor);
scale = lround(100000 / scale);