diff options
author | Andrew Mahone <andrew.mahone@gmail.com> | 2009-05-06 04:53:56 +0000 |
---|---|---|
committer | Andrew Mahone <andrew.mahone@gmail.com> | 2009-05-06 04:53:56 +0000 |
commit | eef7945a970e4da69b95c638a44a8ee1a9205430 (patch) | |
tree | ec015938370aaa6e84d3652f914c1766a963582d /apps/plugins/jpeg/yuv2rgb.c | |
parent | f779160de53686e45f57fad882a6d8f8db6360fd (diff) | |
download | rockbox-eef7945a970e4da69b95c638a44a8ee1a9205430.tar.gz rockbox-eef7945a970e4da69b95c638a44a8ee1a9205430.zip |
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
Diffstat (limited to 'apps/plugins/jpeg/yuv2rgb.c')
-rw-r--r-- | apps/plugins/jpeg/yuv2rgb.c | 7 |
1 files changed, 0 insertions, 7 deletions
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 @@ | |||
48 | #define COMPONENT_SHIFT 15 | 48 | #define COMPONENT_SHIFT 15 |
49 | #define MATRIX_SHIFT 7 | 49 | #define MATRIX_SHIFT 7 |
50 | 50 | ||
51 | static inline int clamp_component(int x) | ||
52 | { | ||
53 | if ((unsigned)x > YUV_WHITE) | ||
54 | x = x < 0 ? 0 : YUV_WHITE; | ||
55 | return x; | ||
56 | } | ||
57 | |||
58 | static inline int clamp_component_bits(int x, int bits) | 51 | static inline int clamp_component_bits(int x, int bits) |
59 | { | 52 | { |
60 | if ((unsigned)x > (1u << bits) - 1) | 53 | if ((unsigned)x > (1u << bits) - 1) |