From 78b6bed8db4052d97d37fa4ca0bac1bab7b669c3 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Mon, 8 Mar 2010 10:29:52 +0000 Subject: Code formatting svn-id: r48188 --- graphics/scaler/thumbnail_intern.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'graphics') diff --git a/graphics/scaler/thumbnail_intern.cpp b/graphics/scaler/thumbnail_intern.cpp index 54252892b6..66b275fcb2 100644 --- a/graphics/scaler/thumbnail_intern.cpp +++ b/graphics/scaler/thumbnail_intern.cpp @@ -32,18 +32,18 @@ #include "graphics/scaler/intern.h" template -uint16 quadBlockInterpolate(const uint8* src, uint32 srcPitch) { - uint16 colorx1y1 = *(((const uint16*)src)); - uint16 colorx2y1 = *(((const uint16*)src) + 1); +uint16 quadBlockInterpolate(const uint8 *src, uint32 srcPitch) { + uint16 colorx1y1 = *(((const uint16 *)src)); + uint16 colorx2y1 = *(((const uint16 *)src) + 1); - uint16 colorx1y2 = *(((const uint16*)(src + srcPitch))); - uint16 colorx2y2 = *(((const uint16*)(src + srcPitch)) + 1); + uint16 colorx1y2 = *(((const uint16 *)(src + srcPitch))); + uint16 colorx2y2 = *(((const uint16 *)(src + srcPitch)) + 1); return interpolate16_1_1_1_1 >(colorx1y1, colorx2y1, colorx1y2, colorx2y2); } template -void createThumbnail_2(const uint8* src, uint32 srcPitch, uint8* dstPtr, uint32 dstPitch, int width, int height) { +void createThumbnail_2(const uint8 *src, uint32 srcPitch, uint8 *dstPtr, uint32 dstPitch, int width, int height) { assert(width % 2 == 0); assert(height % 2 == 0); for (int y = 0; y < height; y += 2) { @@ -56,7 +56,7 @@ void createThumbnail_2(const uint8* src, uint32 srcPitch, uint8* dstPtr, uint32 } template -void createThumbnail_4(const uint8* src, uint32 srcPitch, uint8* dstPtr, uint32 dstPitch, int width, int height) { +void createThumbnail_4(const uint8 *src, uint32 srcPitch, uint8 *dstPtr, uint32 dstPitch, int width, int height) { assert(width % 4 == 0); assert(height % 4 == 0); for (int y = 0; y < height; y += 4) { @@ -73,7 +73,7 @@ void createThumbnail_4(const uint8* src, uint32 srcPitch, uint8* dstPtr, uint32 } } -static void createThumbnail(const uint8* src, uint32 srcPitch, uint8* dstPtr, uint32 dstPitch, int width, int height) { +static void createThumbnail(const uint8 *src, uint32 srcPitch, uint8 *dstPtr, uint32 dstPitch, int width, int height) { // only 1/2 and 1/4 downscale supported if (width != 320 && width != 640) return; -- cgit v1.2.3