scale_down
scale_down(convertedBits, dst, width, height, dstWidth, dstHeight);
scale_down(tempBits, dst, width * 2, height * 2, dstWidth, dstHeight);
scale_down(tempBits, dst, width * 3, height * 3, dstWidth, dstHeight);
scale_down(tempBits, dst, width * 3, height * 3, dstWidth, dstHeight);