2007-05-30 21:56:52 +00:00
|
|
|
/* ScummVM - Graphic Adventure Engine
|
|
|
|
*
|
|
|
|
* ScummVM is the legal property of its developers, whose names
|
|
|
|
* are too numerous to list here. Please refer to the COPYRIGHT
|
|
|
|
* file distributed with this source distribution.
|
2003-09-29 16:02:47 +00:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
2014-02-18 01:34:20 +00:00
|
|
|
*
|
2003-09-29 16:02:47 +00:00
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
2014-02-18 01:34:20 +00:00
|
|
|
*
|
2003-09-29 16:02:47 +00:00
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
2005-10-18 01:30:26 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2003-09-29 16:02:47 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2006-02-20 20:40:12 +00:00
|
|
|
#include "graphics/scaler/intern.h"
|
2010-03-08 10:29:00 +00:00
|
|
|
#include "graphics/scaler/aspect.h"
|
2003-09-29 16:02:47 +00:00
|
|
|
|
2012-10-21 17:43:07 +00:00
|
|
|
#ifdef USE_ARM_NEON_ASPECT_CORRECTOR
|
2012-09-03 09:04:33 +00:00
|
|
|
#include <arm_neon.h>
|
|
|
|
#endif
|
2003-09-29 16:02:47 +00:00
|
|
|
|
2010-03-08 10:32:45 +00:00
|
|
|
#define kSuperFastAndUglyAspectMode 0 // No interpolation at all, but super-fast
|
|
|
|
#define kVeryFastAndGoodAspectMode 1 // Good quality with very good speed
|
|
|
|
#define kFastAndVeryGoodAspectMode 2 // Very good quality with good speed
|
|
|
|
#define kSlowAndPerfectAspectMode 3 // Accurate but slow code
|
2003-09-29 16:02:47 +00:00
|
|
|
|
2010-03-08 10:32:45 +00:00
|
|
|
#define ASPECT_MODE kVeryFastAndGoodAspectMode
|
2003-09-29 16:02:47 +00:00
|
|
|
|
|
|
|
|
|
|
|
#if ASPECT_MODE == kSlowAndPerfectAspectMode
|
|
|
|
|
2010-03-08 10:29:35 +00:00
|
|
|
template<typename ColorMask, int scale>
|
2003-09-29 16:02:47 +00:00
|
|
|
static inline uint16 interpolate5(uint16 A, uint16 B) {
|
2010-03-08 10:29:35 +00:00
|
|
|
uint16 r = (uint16)(((A & ColorMask::kRedBlueMask & 0xFF00) * scale + (B & ColorMask::kRedBlueMask & 0xFF00) * (5 - scale)) / 5);
|
|
|
|
uint16 g = (uint16)(((A & ColorMask::kGreenMask) * scale + (B & ColorMask::kGreenMask) * (5 - scale)) / 5);
|
|
|
|
uint16 b = (uint16)(((A & ColorMask::kRedBlueMask & 0x00FF) * scale + (B & ColorMask::kRedBlueMask & 0x00FF) * (5 - scale)) / 5);
|
2003-09-29 16:02:47 +00:00
|
|
|
|
2010-03-08 10:29:35 +00:00
|
|
|
return (uint16)((r & ColorMask::kRedBlueMask & 0xFF00) | (g & ColorMask::kGreenMask) | (b & ColorMask::kRedBlueMask & 0x00FF));
|
2003-09-29 16:02:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2010-03-08 10:29:35 +00:00
|
|
|
template<typename ColorMask, int scale>
|
2003-09-29 16:02:47 +00:00
|
|
|
static inline void interpolate5Line(uint16 *dst, const uint16 *srcA, const uint16 *srcB, int width) {
|
|
|
|
// Accurate but slightly slower code
|
|
|
|
while (width--) {
|
2010-03-08 10:29:35 +00:00
|
|
|
*dst++ = interpolate5<ColorMask, scale>(*srcA++, *srcB++);
|
2003-09-29 16:02:47 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2010-03-08 10:32:45 +00:00
|
|
|
#if ASPECT_MODE == kVeryFastAndGoodAspectMode
|
2003-09-29 16:02:47 +00:00
|
|
|
|
2012-10-21 17:43:07 +00:00
|
|
|
#ifdef USE_ARM_NEON_ASPECT_CORRECTOR
|
2012-09-03 09:04:33 +00:00
|
|
|
|
|
|
|
template<typename ColorMask>
|
|
|
|
static void interpolate5LineNeon(uint16 *dst, const uint16 *srcA, const uint16 *srcB, int width, int k1, int k2) {
|
2012-09-25 13:16:54 +00:00
|
|
|
uint16x4_t kRedBlueMask_4 = vdup_n_u16(ColorMask::kRedBlueMask);
|
|
|
|
uint16x4_t kGreenMask_4 = vdup_n_u16(ColorMask::kGreenMask);
|
|
|
|
uint16x4_t k1_4 = vdup_n_u16(k1);
|
|
|
|
uint16x4_t k2_4 = vdup_n_u16(k2);
|
|
|
|
while (width >= 4) {
|
|
|
|
uint16x4_t srcA_4 = vld1_u16(srcA);
|
|
|
|
uint16x4_t srcB_4 = vld1_u16(srcB);
|
|
|
|
uint16x4_t p1_4 = srcB_4;
|
|
|
|
uint16x4_t p2_4 = srcA_4;
|
|
|
|
|
|
|
|
uint16x4_t p1_rb_4 = vand_u16(p1_4, kRedBlueMask_4);
|
|
|
|
uint16x4_t p1_g_4 = vand_u16(p1_4, kGreenMask_4);
|
|
|
|
uint16x4_t p2_rb_4 = vand_u16(p2_4, kRedBlueMask_4);
|
|
|
|
uint16x4_t p2_g_4 = vand_u16(p2_4, kGreenMask_4);
|
|
|
|
|
|
|
|
uint32x4_t tmp_rb_4 = vshrq_n_u32(vmlal_u16(vmull_u16(p2_rb_4, k2_4), p1_rb_4, k1_4), 3);
|
|
|
|
uint32x4_t tmp_g_4 = vshrq_n_u32(vmlal_u16(vmull_u16(p2_g_4, k2_4), p1_g_4, k1_4), 3);
|
|
|
|
uint16x4_t p_rb_4 = vmovn_u32(tmp_rb_4);
|
|
|
|
p_rb_4 = vand_u16(p_rb_4, kRedBlueMask_4);
|
|
|
|
uint16x4_t p_g_4 = vmovn_u32(tmp_g_4);
|
|
|
|
p_g_4 = vand_u16(p_g_4, kGreenMask_4);
|
|
|
|
|
|
|
|
uint16x4_t result_4 = p_rb_4 | p_g_4;
|
|
|
|
vst1_u16(dst, result_4);
|
|
|
|
|
|
|
|
dst += 4;
|
|
|
|
srcA += 4;
|
|
|
|
srcB += 4;
|
|
|
|
width -= 4;
|
|
|
|
}
|
2012-09-03 09:04:33 +00:00
|
|
|
}
|
2012-10-21 17:43:07 +00:00
|
|
|
#endif // USE_ARM_NEON_ASPECT_CORRECTOR
|
2012-09-03 09:04:33 +00:00
|
|
|
|
2010-03-08 10:29:35 +00:00
|
|
|
template<typename ColorMask, int scale>
|
2012-09-02 23:32:50 +00:00
|
|
|
static void interpolate5Line(uint16 *dst, const uint16 *srcA, const uint16 *srcB, int width) {
|
2010-03-08 10:32:45 +00:00
|
|
|
if (scale == 1) {
|
2012-10-21 17:43:07 +00:00
|
|
|
#ifdef USE_NEON_ASPECT_CORRECTOR
|
2012-09-03 09:04:33 +00:00
|
|
|
int width4 = width & ~3;
|
|
|
|
interpolate5LineNeon<ColorMask>(dst, srcA, srcB, width4, 7, 1);
|
|
|
|
srcA += width4;
|
|
|
|
srcB += width4;
|
|
|
|
dst += width4;
|
|
|
|
width -= width4;
|
2012-10-21 17:43:07 +00:00
|
|
|
#endif // USE_ARM_NEON_ASPECT_CORRECTOR
|
2010-03-08 10:32:45 +00:00
|
|
|
while (width--) {
|
|
|
|
*dst++ = interpolate16_7_1<ColorMask>(*srcB++, *srcA++);
|
|
|
|
}
|
|
|
|
} else {
|
2012-10-21 17:43:07 +00:00
|
|
|
#ifdef USE_ARM_NEON_ASPECT_CORRECTOR
|
2012-09-03 09:04:33 +00:00
|
|
|
int width4 = width & ~3;
|
|
|
|
interpolate5LineNeon<ColorMask>(dst, srcA, srcB, width4, 5, 3);
|
|
|
|
srcA += width4;
|
|
|
|
srcB += width4;
|
|
|
|
dst += width4;
|
|
|
|
width -= width4;
|
2012-10-21 17:43:07 +00:00
|
|
|
#endif // USE_ARM_NEON_ASPECT_CORRECTOR
|
2010-03-08 10:32:45 +00:00
|
|
|
while (width--) {
|
2011-05-06 23:38:53 +00:00
|
|
|
*dst++ = interpolate16_5_3<ColorMask>(*srcB++, *srcA++);
|
2010-03-08 10:32:45 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if ASPECT_MODE == kFastAndVeryGoodAspectMode
|
|
|
|
|
|
|
|
template<typename ColorMask, int scale>
|
|
|
|
static inline void interpolate5Line(uint16 *dst, const uint16 *srcA, const uint16 *srcB, int width) {
|
2011-06-08 17:30:22 +00:00
|
|
|
// For efficiency reasons we blit two pixels at a time, so it is important
|
|
|
|
// that makeRectStretchable() guarantees that the width is even and that
|
|
|
|
// the rect starts on a well-aligned address. (Even where unaligned memory
|
|
|
|
// access is allowed there may be a speed penalty for it.)
|
|
|
|
|
|
|
|
// These asserts are disabled for maximal speed; but I leave them in here
|
|
|
|
// in case other people want to test if the memory alignment (to an
|
|
|
|
// address divisible by 4) is really working properly.
|
|
|
|
//assert(((int)dst & 3) == 0);
|
|
|
|
//assert(((int)srcA & 3) == 0);
|
|
|
|
//assert(((int)srcB & 3) == 0);
|
|
|
|
//assert((width & 1) == 0);
|
2010-03-08 10:32:45 +00:00
|
|
|
|
2003-09-29 16:02:47 +00:00
|
|
|
width /= 2;
|
|
|
|
const uint32 *sA = (const uint32 *)srcA;
|
|
|
|
const uint32 *sB = (const uint32 *)srcB;
|
|
|
|
uint32 *d = (uint32 *)dst;
|
|
|
|
if (scale == 1) {
|
|
|
|
while (width--) {
|
2010-03-08 10:29:35 +00:00
|
|
|
*d++ = interpolate32_3_1<ColorMask>(*sB++, *sA++);
|
2003-09-29 16:02:47 +00:00
|
|
|
}
|
|
|
|
} else {
|
|
|
|
while (width--) {
|
2010-03-08 10:29:35 +00:00
|
|
|
*d++ = interpolate32_1_1<ColorMask>(*sB++, *sA++);
|
2003-09-29 16:02:47 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
void makeRectStretchable(int &x, int &y, int &w, int &h) {
|
2010-03-08 10:32:45 +00:00
|
|
|
#if ASPECT_MODE != kSuperFastAndUglyAspectMode
|
2003-09-29 16:02:47 +00:00
|
|
|
int m = real2Aspect(y) % 6;
|
|
|
|
|
|
|
|
// Ensure that the rect will start on a line that won't have its
|
2010-11-17 12:21:37 +00:00
|
|
|
// colors changed by the stretching function.
|
2003-09-29 16:02:47 +00:00
|
|
|
if (m != 0 && m != 5) {
|
|
|
|
y -= m;
|
|
|
|
h += m;
|
|
|
|
}
|
|
|
|
|
2010-03-08 10:32:45 +00:00
|
|
|
#if ASPECT_MODE == kVeryFastAndGoodAspectMode
|
2003-09-29 16:02:47 +00:00
|
|
|
// Force x to be even, to ensure aligned memory access (this assumes
|
|
|
|
// that each line starts at an even memory location, but that should
|
|
|
|
// be the case on every target anyway).
|
|
|
|
if (x & 1) {
|
|
|
|
x--;
|
|
|
|
w++;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Finally force the width to be even, since we blit 2 pixels at a time.
|
|
|
|
// While this means we may sometimes blit one column more than necessary,
|
2005-07-30 21:11:48 +00:00
|
|
|
// this should actually be faster than having the check for the
|
2003-09-29 16:02:47 +00:00
|
|
|
if (w & 1)
|
|
|
|
w++;
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Stretch a 16bpp image vertically by factor 1.2. Used to correct the
|
|
|
|
* aspect-ratio in games using 320x200 pixel graphics with non-qudratic
|
|
|
|
* pixels. Applying this method effectively turns that into 320x240, which
|
|
|
|
* provides the correct aspect-ratio on modern displays.
|
|
|
|
*
|
|
|
|
* The image would normally have occupied y coordinates origSrcY through
|
|
|
|
* origSrcY + height - 1.
|
|
|
|
*
|
|
|
|
* However, we have already placed it at srcY - the aspect-corrected y
|
|
|
|
* coordinate - to allow in-place stretching.
|
|
|
|
*
|
|
|
|
* Therefore, the source image now occupies Y coordinates srcY through
|
|
|
|
* srcY + height - 1, and it should be stretched to Y coordinates srcY
|
|
|
|
* through real2Aspect(srcY + height - 1).
|
|
|
|
*/
|
2010-03-08 10:29:35 +00:00
|
|
|
template<typename ColorMask>
|
2003-09-29 16:02:47 +00:00
|
|
|
int stretch200To240(uint8 *buf, uint32 pitch, int width, int height, int srcX, int srcY, int origSrcY) {
|
|
|
|
int maxDstY = real2Aspect(origSrcY + height - 1);
|
|
|
|
int y;
|
|
|
|
const uint8 *startSrcPtr = buf + srcX * 2 + (srcY - origSrcY) * pitch;
|
|
|
|
uint8 *dstPtr = buf + srcX * 2 + maxDstY * pitch;
|
|
|
|
|
|
|
|
for (y = maxDstY; y >= srcY; y--) {
|
|
|
|
const uint8 *srcPtr = startSrcPtr + aspect2Real(y) * pitch;
|
|
|
|
|
2010-03-08 10:32:45 +00:00
|
|
|
#if ASPECT_MODE == kSuperFastAndUglyAspectMode
|
2003-09-29 16:02:47 +00:00
|
|
|
if (srcPtr == dstPtr)
|
|
|
|
break;
|
2012-06-12 02:13:00 +00:00
|
|
|
memcpy(dstPtr, srcPtr, sizeof(uint16) * width);
|
2003-09-29 16:02:47 +00:00
|
|
|
#else
|
|
|
|
// Bilinear filter
|
|
|
|
switch (y % 6) {
|
|
|
|
case 0:
|
|
|
|
case 5:
|
|
|
|
if (srcPtr != dstPtr)
|
2012-06-12 02:13:00 +00:00
|
|
|
memcpy(dstPtr, srcPtr, sizeof(uint16) * width);
|
2003-09-29 16:02:47 +00:00
|
|
|
break;
|
|
|
|
case 1:
|
2010-03-08 10:29:35 +00:00
|
|
|
interpolate5Line<ColorMask, 1>((uint16 *)dstPtr, (const uint16 *)(srcPtr - pitch), (const uint16 *)srcPtr, width);
|
2003-09-29 16:02:47 +00:00
|
|
|
break;
|
|
|
|
case 2:
|
2010-03-08 10:29:35 +00:00
|
|
|
interpolate5Line<ColorMask, 2>((uint16 *)dstPtr, (const uint16 *)(srcPtr - pitch), (const uint16 *)srcPtr, width);
|
2003-09-29 16:02:47 +00:00
|
|
|
break;
|
|
|
|
case 3:
|
2010-03-08 10:29:35 +00:00
|
|
|
interpolate5Line<ColorMask, 2>((uint16 *)dstPtr, (const uint16 *)srcPtr, (const uint16 *)(srcPtr - pitch), width);
|
2003-09-29 16:02:47 +00:00
|
|
|
break;
|
|
|
|
case 4:
|
2010-03-08 10:29:35 +00:00
|
|
|
interpolate5Line<ColorMask, 1>((uint16 *)dstPtr, (const uint16 *)srcPtr, (const uint16 *)(srcPtr - pitch), width);
|
2003-09-29 16:02:47 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
dstPtr -= pitch;
|
|
|
|
}
|
|
|
|
|
|
|
|
return 1 + maxDstY - srcY;
|
|
|
|
}
|
2003-09-29 18:38:51 +00:00
|
|
|
|
|
|
|
int stretch200To240(uint8 *buf, uint32 pitch, int width, int height, int srcX, int srcY, int origSrcY) {
|
2010-03-08 10:30:23 +00:00
|
|
|
extern int gBitFormat;
|
2003-09-29 18:38:51 +00:00
|
|
|
if (gBitFormat == 565)
|
2010-03-08 10:29:35 +00:00
|
|
|
return stretch200To240<Graphics::ColorMasks<565> >(buf, pitch, width, height, srcX, srcY, origSrcY);
|
2003-09-29 18:38:51 +00:00
|
|
|
else // gBitFormat == 555
|
2010-03-08 10:29:35 +00:00
|
|
|
return stretch200To240<Graphics::ColorMasks<555> >(buf, pitch, width, height, srcX, srcY, origSrcY);
|
2003-09-29 18:38:51 +00:00
|
|
|
}
|
|
|
|
|
2010-03-08 10:31:42 +00:00
|
|
|
|
2010-03-08 10:32:28 +00:00
|
|
|
template<typename ColorMask>
|
|
|
|
void Normal1xAspectTemplate(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 dstPitch, int width, int height) {
|
2010-03-08 10:31:42 +00:00
|
|
|
|
2011-06-14 20:19:48 +00:00
|
|
|
for (int y = 0; y < (height * 6 / 5); ++y) {
|
2010-03-08 10:31:42 +00:00
|
|
|
|
2010-03-08 10:32:45 +00:00
|
|
|
#if ASPECT_MODE == kSuperFastAndUglyAspectMode
|
2010-03-08 10:32:28 +00:00
|
|
|
if ((y % 6) == 5)
|
|
|
|
srcPtr -= srcPitch;
|
2012-06-12 02:13:00 +00:00
|
|
|
memcpy(dstPtr, srcPtr, sizeof(uint16) * width);
|
2010-03-08 10:32:28 +00:00
|
|
|
#else
|
|
|
|
// Bilinear filter five input lines onto six output lines
|
|
|
|
switch (y % 6) {
|
|
|
|
case 0:
|
|
|
|
// First output line is copied from first input line
|
2012-06-12 02:13:00 +00:00
|
|
|
memcpy(dstPtr, srcPtr, sizeof(uint16) * width);
|
2010-03-08 10:32:28 +00:00
|
|
|
break;
|
|
|
|
case 1:
|
|
|
|
// Second output line is mixed from first and second input line
|
|
|
|
interpolate5Line<ColorMask, 1>((uint16 *)dstPtr, (const uint16 *)(srcPtr - srcPitch), (const uint16 *)srcPtr, width);
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
// Third output line is mixed from second and third input line
|
|
|
|
interpolate5Line<ColorMask, 2>((uint16 *)dstPtr, (const uint16 *)(srcPtr - srcPitch), (const uint16 *)srcPtr, width);
|
|
|
|
break;
|
|
|
|
case 3:
|
|
|
|
// Fourth output line is mixed from third and fourth input line
|
|
|
|
interpolate5Line<ColorMask, 2>((uint16 *)dstPtr, (const uint16 *)srcPtr, (const uint16 *)(srcPtr - srcPitch), width);
|
|
|
|
break;
|
|
|
|
case 4:
|
|
|
|
// Fifth output line is mixed from fourth and fifth input line
|
|
|
|
interpolate5Line<ColorMask, 1>((uint16 *)dstPtr, (const uint16 *)srcPtr, (const uint16 *)(srcPtr - srcPitch), width);
|
|
|
|
break;
|
|
|
|
case 5:
|
|
|
|
// Sixth (and last) output line is copied from fifth (and last) input line
|
|
|
|
srcPtr -= srcPitch;
|
2012-06-12 02:13:00 +00:00
|
|
|
memcpy(dstPtr, srcPtr, sizeof(uint16) * width);
|
2010-03-08 10:32:28 +00:00
|
|
|
break;
|
2010-03-08 10:31:42 +00:00
|
|
|
}
|
2010-03-08 10:32:28 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
srcPtr += srcPitch;
|
|
|
|
dstPtr += dstPitch;
|
2010-03-08 10:31:42 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2010-03-08 10:32:28 +00:00
|
|
|
void Normal1xAspect(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 dstPitch, int width, int height) {
|
|
|
|
extern int gBitFormat;
|
|
|
|
if (gBitFormat == 565)
|
|
|
|
Normal1xAspectTemplate<Graphics::ColorMasks<565> >(srcPtr, srcPitch, dstPtr, dstPitch, width, height);
|
|
|
|
else
|
|
|
|
Normal1xAspectTemplate<Graphics::ColorMasks<555> >(srcPtr, srcPitch, dstPtr, dstPitch, width, height);
|
|
|
|
}
|
2010-03-08 10:31:42 +00:00
|
|
|
|
|
|
|
#ifdef USE_ARM_SCALER_ASM
|
|
|
|
extern "C" void Normal2xAspectMask(const uint8 *srcPtr,
|
|
|
|
uint32 srcPitch,
|
|
|
|
uint8 *dstPtr,
|
|
|
|
uint32 dstPitch,
|
|
|
|
int width,
|
|
|
|
int height,
|
|
|
|
uint32 mask);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* A 2x scaler which also does aspect ratio correction.
|
|
|
|
* This is Normal2x combined with vertical stretching,
|
|
|
|
* so it will scale a 320x200 surface to a 640x480 surface.
|
|
|
|
*/
|
|
|
|
void Normal2xAspect(const uint8 *srcPtr,
|
|
|
|
uint32 srcPitch,
|
|
|
|
uint8 *dstPtr,
|
|
|
|
uint32 dstPitch,
|
|
|
|
int width,
|
|
|
|
int height) {
|
2010-03-09 01:20:23 +00:00
|
|
|
extern int gBitFormat;
|
2010-03-08 10:31:42 +00:00
|
|
|
if (gBitFormat == 565) {
|
|
|
|
Normal2xAspectMask(srcPtr,
|
|
|
|
srcPitch,
|
|
|
|
dstPtr,
|
|
|
|
dstPitch,
|
|
|
|
width,
|
|
|
|
height,
|
|
|
|
0x07e0F81F);
|
|
|
|
} else {
|
|
|
|
Normal2xAspectMask(srcPtr,
|
|
|
|
srcPitch,
|
|
|
|
dstPtr,
|
|
|
|
dstPitch,
|
|
|
|
width,
|
|
|
|
height,
|
|
|
|
0x03e07C1F);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // USE_ARM_SCALER_ASM
|