Commit 8fbd7cb6 authored by diego's avatar diego

Rename SIGN macro to FFSIGN to avoid clashes with system headers.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6665 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 096da599
...@@ -193,7 +193,7 @@ typedef uint64_t uint_fast64_t; ...@@ -193,7 +193,7 @@ typedef uint64_t uint_fast64_t;
/* assume b>0 */ /* assume b>0 */
#define ROUNDED_DIV(a,b) (((a)>0 ? (a) + ((b)>>1) : (a) - ((b)>>1))/(b)) #define ROUNDED_DIV(a,b) (((a)>0 ? (a) + ((b)>>1) : (a) - ((b)>>1))/(b))
#define ABS(a) ((a) >= 0 ? (a) : (-(a))) #define ABS(a) ((a) >= 0 ? (a) : (-(a)))
#define SIGN(a) ((a) > 0 ? 1 : -1) #define FFSIGN(a) ((a) > 0 ? 1 : -1)
#define FFMAX(a,b) ((a) > (b) ? (a) : (b)) #define FFMAX(a,b) ((a) > (b) ? (a) : (b))
#define FFMIN(a,b) ((a) > (b) ? (b) : (a)) #define FFMIN(a,b) ((a) > (b) ? (b) : (a))
......
...@@ -340,7 +340,7 @@ static inline void doHorizDefFilter_C(uint8_t dst[], int stride, PPContext *c) ...@@ -340,7 +340,7 @@ static inline void doHorizDefFilter_C(uint8_t dst[], int stride, PPContext *c)
d= FFMAX(d, 0); d= FFMAX(d, 0);
d= (5*d + 32) >> 6; d= (5*d + 32) >> 6;
d*= SIGN(-middleEnergy); d*= FFSIGN(-middleEnergy);
if(q>0) if(q>0)
{ {
...@@ -449,7 +449,7 @@ static inline void horizX1Filter(uint8_t *src, int stride, int QP) ...@@ -449,7 +449,7 @@ static inline void horizX1Filter(uint8_t *src, int stride, int QP)
if(d < QP) if(d < QP)
{ {
int v = d * SIGN(-b); int v = d * FFSIGN(-b);
src[1] +=v/8; src[1] +=v/8;
src[2] +=v/4; src[2] +=v/4;
...@@ -542,7 +542,7 @@ static always_inline void do_a_deblock_C(uint8_t *src, int step, int stride, PPC ...@@ -542,7 +542,7 @@ static always_inline void do_a_deblock_C(uint8_t *src, int step, int stride, PPC
d= FFMAX(d, 0); d= FFMAX(d, 0);
d= (5*d + 32) >> 6; d= (5*d + 32) >> 6;
d*= SIGN(-middleEnergy); d*= FFSIGN(-middleEnergy);
if(q>0) if(q>0)
{ {
......
...@@ -594,7 +594,7 @@ static inline void RENAME(vertX1Filter)(uint8_t *src, int stride, PPContext *co) ...@@ -594,7 +594,7 @@ static inline void RENAME(vertX1Filter)(uint8_t *src, int stride, PPContext *co)
if(d < co->QP*2) if(d < co->QP*2)
{ {
int v = d * SIGN(-b); int v = d * FFSIGN(-b);
src[l2] +=v>>3; src[l2] +=v>>3;
src[l3] +=v>>2; src[l3] +=v>>2;
...@@ -855,7 +855,7 @@ static inline void RENAME(doVertDefFilter)(uint8_t src[], int stride, PPContext ...@@ -855,7 +855,7 @@ static inline void RENAME(doVertDefFilter)(uint8_t src[], int stride, PPContext
d= FFMAX(d, 0); d= FFMAX(d, 0);
d= (5*d + 32) >> 6; d= (5*d + 32) >> 6;
d*= SIGN(-middleEnergy); d*= FFSIGN(-middleEnergy);
if(q>0) if(q>0)
{ {
...@@ -1159,7 +1159,7 @@ src-=8; ...@@ -1159,7 +1159,7 @@ src-=8;
d= FFMAX(d, 0); d= FFMAX(d, 0);
d= (5*d + 32) >> 6; d= (5*d + 32) >> 6;
d*= SIGN(-middleEnergy); d*= FFSIGN(-middleEnergy);
if(q>0) if(q>0)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment