From 05aca1c928c4b65a9fb31c7f6d2acee6e4c3309f Mon Sep 17 00:00:00 2001 From: Bertrand Augereau Date: Wed, 25 Oct 2006 19:32:01 +0000 Subject: DS : Yet another scaling helpers svn-id: r24505 --- backends/platform/ds/arm9/source/blitters.cpp | 16 ++++++++++++++++ backends/platform/ds/arm9/source/blitters.h | 2 ++ 2 files changed, 18 insertions(+) (limited to 'backends/platform/ds/arm9') diff --git a/backends/platform/ds/arm9/source/blitters.cpp b/backends/platform/ds/arm9/source/blitters.cpp index b1a7ed89e3..cba8b6fda8 100644 --- a/backends/platform/ds/arm9/source/blitters.cpp +++ b/backends/platform/ds/arm9/source/blitters.cpp @@ -222,4 +222,20 @@ void Rescale_320x1555Scanline_To_256x1555Scanline(u16* dest, const u16* src) } } +void Rescale_320x256xPAL8_To_256x256x1555(u16* dest, const u8* src, const u16* palette, int destStride, int srcStride) +{ + for(size_t i=0; i<200; ++i) + { + Rescale_320xPAL8Scanline_To_256x1555Scanline(dest + i*destStride, src + i *srcStride, palette); + } +} + +void Rescale_320x256x1555_To_256x256x1555(u16* dest, const u16* src, int destStride, int srcStride) +{ + for(size_t i=0; i<200; ++i) + { + Rescale_320x1555Scanline_To_256x1555Scanline(dest + i*destStride, src + i *srcStride); + } +} + } diff --git a/backends/platform/ds/arm9/source/blitters.h b/backends/platform/ds/arm9/source/blitters.h index 47cf143965..b24ceb7f7d 100644 --- a/backends/platform/ds/arm9/source/blitters.h +++ b/backends/platform/ds/arm9/source/blitters.h @@ -28,6 +28,8 @@ void asmDrawStripToScreen(int height, int width, byte const* text, byte const* s void asmCopy8Col(byte* dst, int dstPitch, const byte* src, int height); void Rescale_320xPAL8Scanline_To_256x1555Scanline(u16* dest, const u8* src, const u16* palette); void Rescale_320x1555Scanline_To_256x1555Scanline(u16* dest, const u16* src); +void Rescale_320x256xPAL8_To_256x256x1555(u16* dest, const u8* src, const u16* palette, int destStride, int srcStride); +void Rescale_320x256x1555_To_256x256x1555(u16* dest, const u16* src, int destStride, int srcStride); } -- cgit v1.2.3