git.videolan.org
/
ffmpeg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace WORDS_BIGENDIAN with HAVE_BIGENDIAN
[ffmpeg.git]
/
libswscale
/
rgb2rgb_template.c
diff --git
a/libswscale/rgb2rgb_template.c
b/libswscale/rgb2rgb_template.c
index
56c9426
..
cd7fbae
100644
(file)
--- a/
libswscale/rgb2rgb_template.c
+++ b/
libswscale/rgb2rgb_template.c
@@
-115,7
+115,7
@@
static inline void RENAME(rgb24tobgr32)(const uint8_t *src, uint8_t *dst, long s
#endif
while (s < end)
{
#endif
while (s < end)
{
- #if
def WORDS
_BIGENDIAN
+ #if
HAVE
_BIGENDIAN
/* RGB24 (= R,G,B) -> RGB32 (= A,B,G,R) */
*dest++ = 255;
*dest++ = s[2];
/* RGB24 (= R,G,B) -> RGB32 (= A,B,G,R) */
*dest++ = 255;
*dest++ = s[2];
@@
-201,7
+201,7
@@
static inline void RENAME(rgb32tobgr24)(const uint8_t *src, uint8_t *dst, long s
#endif
while (s < end)
{
#endif
while (s < end)
{
-#if
def WORDS
_BIGENDIAN
+#if
HAVE
_BIGENDIAN
/* RGB32 (= A,B,G,R) -> RGB24 (= R,G,B) */
s++;
dest[2] = *s++;
/* RGB32 (= A,B,G,R) -> RGB24 (= R,G,B) */
s++;
dest[2] = *s++;
@@
-1264,7
+1264,7
@@
static inline void RENAME(rgb15to32)(const uint8_t *src, uint8_t *dst, long src_
#else
register uint16_t bgr;
bgr = *s++;
#else
register uint16_t bgr;
bgr = *s++;
-#if
def WORDS
_BIGENDIAN
+#if
HAVE
_BIGENDIAN
*d++ = 255;
*d++ = (bgr&0x7C00)>>7;
*d++ = (bgr&0x3E0)>>2;
*d++ = 255;
*d++ = (bgr&0x7C00)>>7;
*d++ = (bgr&0x3E0)>>2;
@@
-1321,7
+1321,7
@@
static inline void RENAME(rgb16to32)(const uint8_t *src, uint8_t *dst, long src_
{
register uint16_t bgr;
bgr = *s++;
{
register uint16_t bgr;
bgr = *s++;
-#if
def WORDS
_BIGENDIAN
+#if
HAVE
_BIGENDIAN
*d++ = 255;
*d++ = (bgr&0xF800)>>8;
*d++ = (bgr&0x7E0)>>3;
*d++ = 255;
*d++ = (bgr&0xF800)>>8;
*d++ = (bgr&0x7E0)>>3;
@@
-1581,7
+1581,7
@@
static inline void RENAME(yuvPlanartoyuy2)(const uint8_t *ysrc, const uint8_t *u
int i, *idst = (int32_t *) dst;
const uint8_t *yc = ysrc, *uc = usrc, *vc = vsrc;
for (i = 0; i < chromWidth; i++){
int i, *idst = (int32_t *) dst;
const uint8_t *yc = ysrc, *uc = usrc, *vc = vsrc;
for (i = 0; i < chromWidth; i++){
-#if
def WORDS
_BIGENDIAN
+#if
HAVE
_BIGENDIAN
*idst++ = (yc[0] << 24)+ (uc[0] << 16) +
(yc[1] << 8) + (vc[0] << 0);
#else
*idst++ = (yc[0] << 24)+ (uc[0] << 16) +
(yc[1] << 8) + (vc[0] << 0);
#else
@@
-1687,7
+1687,7
@@
static inline void RENAME(yuvPlanartouyvy)(const uint8_t *ysrc, const uint8_t *u
int i, *idst = (int32_t *) dst;
const uint8_t *yc = ysrc, *uc = usrc, *vc = vsrc;
for (i = 0; i < chromWidth; i++){
int i, *idst = (int32_t *) dst;
const uint8_t *yc = ysrc, *uc = usrc, *vc = vsrc;
for (i = 0; i < chromWidth; i++){
-#if
def WORDS
_BIGENDIAN
+#if
HAVE
_BIGENDIAN
*idst++ = (uc[0] << 24)+ (yc[0] << 16) +
(vc[0] << 8) + (yc[1] << 0);
#else
*idst++ = (uc[0] << 24)+ (yc[0] << 16) +
(vc[0] << 8) + (yc[1] << 0);
#else