Lines Matching refs:dstWidth

47 scale_bilinear(uint8* bits, int32 srcWidth, int32 srcHeight, int32 dstWidth,
82 dst = bits + (dstWidth - 1) * 4;
84 for (int32 y = 0; y < dstWidth; y++) {
86 for (int32 x = dstWidth - 1; x >= 0; x--) {
87 int32 columnF = (x << 8) * (srcWidth - 1) / (dstWidth - 1);
114 int32 dstWidth, int32 dstHeight)
129 for (int32 j = 0; j < dstWidth; j++) {
138 tmp = (float)(j) / (float)(dstWidth - 1) * (srcWidth - 1);
169 *((rgb_color*)dstBits + (i * dstWidth) + j) = out;
750 uint32 dstWidth = icon->Bounds().IntegerWidth() + 1;
757 if (dstWidth < width || dstHeight < height
758 || (dstWidth == 2 * width && dstHeight == 2 * height)
759 || (dstWidth == 3 * width && dstHeight == 3 * height)
760 || (dstWidth == 4 * width && dstHeight == 4 * height)) {
771 if (dstWidth < width || dstHeight < height)
772 scale_down(convertedBits, dst, width, height, dstWidth, dstHeight);
773 else if (dstWidth == 2 * width && dstHeight == 2 * height)
775 else if (dstWidth == 3 * width && dstHeight == 3 * height)
777 else if (dstWidth == 4 * width && dstHeight == 4 * height)
806 if (width == dstWidth && height == dstHeight)
813 if (dstWidth > width && dstHeight > height
814 && dstWidth < 2 * width && dstHeight < 2 * height) {
825 scale_down(tempBits, dst, width * 2, height * 2, dstWidth, dstHeight);
827 } else if (dstWidth > 2 * width && dstHeight > 2 * height
828 && dstWidth < 3 * width && dstHeight < 3 * height) {
839 scale_down(tempBits, dst, width * 3, height * 3, dstWidth, dstHeight);
841 } else if (dstWidth > 3 * width && dstHeight > 3 * height
842 && dstWidth < 4 * width && dstHeight < 4 * height) {
853 scale_down(tempBits, dst, width * 3, height * 3, dstWidth, dstHeight);
855 } else if (dstWidth > 4 * width && dstHeight > 4 * height) {
868 scale_bilinear(dst, width, height, dstWidth, dstHeight, dstBPR);
872 scale_bilinear(dst, width, height, dstWidth, dstHeight, dstBPR);
893 uint32 dstWidth = icon->Bounds().IntegerWidth() + 1;
896 if (dstWidth < width || dstHeight < height) {
899 } else if (dstWidth > width || dstHeight > height) {