summaryrefslogtreecommitdiff
path: root/apps/plugins/jpeg
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/jpeg')
-rw-r--r--apps/plugins/jpeg/yuv2rgb.c7
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
51static 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
58static inline int clamp_component_bits(int x, int bits) 51static 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)