From b3ed0f2029538ee66505f8490efd84deb202058e Mon Sep 17 00:00:00 2001 From: Nicolas Bacca Date: Sun, 9 May 2004 14:51:08 +0000 Subject: Add Zoom scaler and Smartphone scaler svn-id: r13824 --- backends/wince/CEScaler.cpp | 58 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) (limited to 'backends/wince/CEScaler.cpp') diff --git a/backends/wince/CEScaler.cpp b/backends/wince/CEScaler.cpp index 6b6cd07623..189abe0134 100644 --- a/backends/wince/CEScaler.cpp +++ b/backends/wince/CEScaler.cpp @@ -95,3 +95,61 @@ void PocketPCHalf(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 ds } } + +void PocketPCHalfZoom(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 dstPitch, int width, int height) { + uint8 *work; + int i; + uint16 srcPitch16 = (uint16)(srcPitch / sizeof(uint16)); + + if (!height) + return; + + while (height--) { + i = 0; + work = dstPtr; + + for (int i=0; i