From 7fb4367742b9efad12a69aeae4fc63a47a55eed0 Mon Sep 17 00:00:00 2001 From: iovar Date: Mon, 13 Nov 2006 14:07:26 +0000 Subject: Changed endianess-related handling of bgra values. git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@162 f606c939-3180-4ac9-a4b8-4b8779d57d0a --- recordmydesktop/include/recordmydesktop.h | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'recordmydesktop/include') diff --git a/recordmydesktop/include/recordmydesktop.h b/recordmydesktop/include/recordmydesktop.h index e9f27b1..68f9fd0 100644 --- a/recordmydesktop/include/recordmydesktop.h +++ b/recordmydesktop/include/recordmydesktop.h @@ -70,10 +70,6 @@ #define __GBYTE 1 #define __BBYTE 0 -#define __RVALUE(tmp_val) (((tmp_val)&0x00ff0000)>>16) -#define __GVALUE(tmp_val) (((tmp_val)&0x0000ff00)>>8) -#define __BVALUE(tmp_val) (((tmp_val)&0x000000ff)) - #elif __BYTE_ORDER == __BIG_ENDIAN #define __ABYTE 0 @@ -81,14 +77,14 @@ #define __GBYTE 2 #define __BBYTE 3 -#define __RVALUE(tmp_val) (((tmp_val)&0x0000ff00)>>8) -#define __GVALUE(tmp_val) (((tmp_val)&0x00ff0000)>>16) -#define __BVALUE(tmp_val) (((tmp_val)&0xff000000)>>24) - #else #error Only little-endian and big-endian systems are supported #endif +#define __RVALUE(tmp_val) (((tmp_val)&0x00ff0000)>>16) +#define __GVALUE(tmp_val) (((tmp_val)&0x0000ff00)>>8) +#define __BVALUE(tmp_val) (((tmp_val)&0x000000ff)) + //500 mb file size #define CACHE_FILE_SIZE_LIMIT (500*1<<20) -- cgit v1.2.3