Mercurial > libavcodec.hg
diff libpostproc/postprocess.c @ 104:9607b48e2c2d libavcodec
Cleanup:
- TIMEING && MORE_TIMEING disabled by default
- private stuff moved to postprocess.c to avoid possible conflicts
author | arpi |
---|---|
date | Sat, 13 Oct 2001 15:53:24 +0000 |
parents | 2cb2660cbd7e |
children | a2f94bfb5793 |
line wrap: on
line diff
--- a/libpostproc/postprocess.c Sat Oct 13 15:38:19 2001 +0000 +++ b/libpostproc/postprocess.c Sat Oct 13 15:53:24 2001 +0000 @@ -90,6 +90,16 @@ //#undef HAVE_MMX #include "postprocess.h" +#define MIN(a,b) ((a) > (b) ? (b) : (a)) +#define MAX(a,b) ((a) < (b) ? (b) : (a)) +#define ABS(a) ((a) > 0 ? (a) : (-(a))) +#define SIGN(a) ((a) > 0 ? 1 : -1) + +#ifdef HAVE_MMX2 +#define PAVGB(a,b) "pavgb " #a ", " #b " \n\t" +#elif defined (HAVE_3DNOW) +#define PAVGB(a,b) "pavgusb " #a ", " #b " \n\t" +#endif static uint64_t packedYOffset= 0x0000000000000000LL; static uint64_t packedYScale= 0x0100010001000100LL;