diff options
author | iovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2006-11-13 14:07:26 +0000 |
---|---|---|
committer | iovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2006-11-13 14:07:26 +0000 |
commit | 7fb4367742b9efad12a69aeae4fc63a47a55eed0 (patch) | |
tree | 329a6b64c35f8d3bed5f3a21f83f26478bc6f187 /recordmydesktop/include | |
parent | 5157699f00469eeac8fc3203f8e9ab01f004c755 (diff) |
Changed endianess-related handling of bgra values.
git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@162 f606c939-3180-4ac9-a4b8-4b8779d57d0a
Diffstat (limited to 'recordmydesktop/include')
-rw-r--r-- | recordmydesktop/include/recordmydesktop.h | 12 |
1 files changed, 4 insertions, 8 deletions
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) |