aboutsummaryrefslogtreecommitdiff
path: root/common/scaler/hq2x.cpp
diff options
context:
space:
mode:
authorMax Horn2003-10-01 16:47:49 +0000
committerMax Horn2003-10-01 16:47:49 +0000
commit628f65b639ee9357935d8f141d43d46825506082 (patch)
tree5456ce7c06498953bc0dad6eb0b0320bfb42c3c0 /common/scaler/hq2x.cpp
parentb6f85de558e57bcae7932329523ed8478dd83760 (diff)
downloadscummvm-rg350-628f65b639ee9357935d8f141d43d46825506082.tar.gz
scummvm-rg350-628f65b639ee9357935d8f141d43d46825506082.tar.bz2
scummvm-rg350-628f65b639ee9357935d8f141d43d46825506082.zip
move INTERPOLATE / Q_INTERPOLATE to intern.h; remove some jumps (pipelin trashers I call 'em :-) from diffYUV
svn-id: r10523
Diffstat (limited to 'common/scaler/hq2x.cpp')
-rw-r--r--common/scaler/hq2x.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/common/scaler/hq2x.cpp b/common/scaler/hq2x.cpp
index 92a80f5e6c..cd461f7be9 100644
--- a/common/scaler/hq2x.cpp
+++ b/common/scaler/hq2x.cpp
@@ -83,7 +83,6 @@
*/
template<int bitFormat>
void HQ2x(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 dstPitch, int width, int height) {
-// int w[10];
register int w1, w2, w3, w4, w5, w6, w7, w8, w9;
const uint32 nextlineSrc = srcPitch / sizeof(uint16);
@@ -130,23 +129,8 @@ void HQ2x(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 dstPitch,
vector signed char vecYUV5555;
vector signed char vecYUV1234;
vector signed char vecYUV6789;
-/*
- // The pixel vectors.
- // TODO: Keep the pixels up-to-date in this, just like for the YUV data.
- // But instead of just keeping the 16 bit pixel values in them, keep
- // them convert to 32 bit RGB in there! This way, we avoid converting
- // the same pixels to 32 bit repeatedly (which may be expensive, esp.
- // when reading 16 bit pixels in 565 format).
- // The Altivec enhanced interpolation functions (to be written :-)
- // then can directly make use of these vectors.
- vector signed char vecRGB5555;
- vector signed char vecRGB1234;
- vector signed char vecRGB6789;
-*/
#endif
-
-
while (height--) {
w1 = *(p - 1 - nextlineSrc);
w4 = *(p - 1);