From eef7945a970e4da69b95c638a44a8ee1a9205430 Mon Sep 17 00:00:00 2001 From: Andrew Mahone Date: Wed, 6 May 2009 04:53:56 +0000 Subject: Move YUV->RGB in JPEG load from before scaler to after scaler. Required change to struct custom_format, so sorted the plugin API as well. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20856 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/jpeg/yuv2rgb.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'apps/plugins/jpeg/yuv2rgb.c') diff --git a/apps/plugins/jpeg/yuv2rgb.c b/apps/plugins/jpeg/yuv2rgb.c index c2464924fe..ed88d5416a 100644 --- a/apps/plugins/jpeg/yuv2rgb.c +++ b/apps/plugins/jpeg/yuv2rgb.c @@ -48,13 +48,6 @@ #define COMPONENT_SHIFT 15 #define MATRIX_SHIFT 7 -static inline int clamp_component(int x) -{ - if ((unsigned)x > YUV_WHITE) - x = x < 0 ? 0 : YUV_WHITE; - return x; -} - static inline int clamp_component_bits(int x, int bits) { if ((unsigned)x > (1u << bits) - 1) -- cgit v1.2.3