From 49f9cb10018bf4ec07a60d1599cbe62d735baa23 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 14 Oct 2012 18:58:50 +0100 Subject: [PATCH] Remove unused code. --- src/lib/util.h | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/lib/util.h b/src/lib/util.h index e1ad7fd64..66c052c48 100644 --- a/src/lib/util.h +++ b/src/lib/util.h @@ -190,20 +190,4 @@ private: int _buffer_data; }; -#define SCALEBITS 10 -#define ONE_HALF (1 << (SCALEBITS - 1)) -#define FIX(x) ((int) ((x) * (1<> SCALEBITS) - -#define RGB_TO_U_CCIR(r1, g1, b1, shift)\ -(((- FIX(0.16874*224.0/255.0) * r1 - FIX(0.33126*224.0/255.0) * g1 + \ - FIX(0.50000*224.0/255.0) * b1 + (ONE_HALF << shift) - 1) >> (SCALEBITS + shift)) + 128) - -#define RGB_TO_V_CCIR(r1, g1, b1, shift)\ -(((FIX(0.50000*224.0/255.0) * r1 - FIX(0.41869*224.0/255.0) * g1 - \ - FIX(0.08131*224.0/255.0) * b1 + (ONE_HALF << shift) - 1) >> (SCALEBITS + shift)) + 128) - #endif -- 2.30.2