aboutsummaryrefslogtreecommitdiffstats
path: root/libswscale/rgb2rgb.c
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2009-07-26 12:26:32 +0000
committerMåns Rullgård <mans@mansr.com>2009-07-26 12:26:32 +0000
commita898cdc99592a6427ed6d6282f8a338165b1f40a (patch)
tree1497a4c90e19fe12957273ca6c224103aace11e5 /libswscale/rgb2rgb.c
parent63613fe615160671b394a232c1a3736319a6a8ec (diff)
downloadffmpeg-a898cdc99592a6427ed6d6282f8a338165b1f40a.tar.gz
Replace WORDS_BIGENDIAN with HAVE_BIGENDIAN
Originally committed as revision 29439 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Diffstat (limited to 'libswscale/rgb2rgb.c')
-rw-r--r--libswscale/rgb2rgb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libswscale/rgb2rgb.c b/libswscale/rgb2rgb.c
index 59b8e30a63..7aeb2a3ac2 100644
--- a/libswscale/rgb2rgb.c
+++ b/libswscale/rgb2rgb.c
@@ -275,7 +275,7 @@ void rgb32to24(const uint8_t *src, uint8_t *dst, long src_size)
long num_pixels = src_size >> 2;
for (i=0; i<num_pixels; i++)
{
- #ifdef WORDS_BIGENDIAN
+ #if HAVE_BIGENDIAN
/* RGB32 (= A,B,G,R) -> BGR24 (= B,G,R) */
dst[3*i + 0] = src[4*i + 1];
dst[3*i + 1] = src[4*i + 2];
@@ -293,7 +293,7 @@ void rgb24to32(const uint8_t *src, uint8_t *dst, long src_size)
long i;
for (i=0; 3*i<src_size; i++)
{
- #ifdef WORDS_BIGENDIAN
+ #if HAVE_BIGENDIAN
/* RGB24 (= R,G,B) -> BGR32 (= A,R,G,B) */
dst[4*i + 0] = 255;
dst[4*i + 1] = src[3*i + 0];
@@ -318,7 +318,7 @@ void rgb16tobgr32(const uint8_t *src, uint8_t *dst, long src_size)
{
register uint16_t bgr;
bgr = *s++;
- #ifdef WORDS_BIGENDIAN
+ #if HAVE_BIGENDIAN
*d++ = 255;
*d++ = (bgr&0x1F)<<3;
*d++ = (bgr&0x7E0)>>3;
@@ -382,7 +382,7 @@ void rgb15tobgr32(const uint8_t *src, uint8_t *dst, long src_size)
{
register uint16_t bgr;
bgr = *s++;
- #ifdef WORDS_BIGENDIAN
+ #if HAVE_BIGENDIAN
*d++ = 255;
*d++ = (bgr&0x1F)<<3;
*d++ = (bgr&0x3E0)>>2;