Commit 62d2abad authored by arpi's avatar arpi

Cleanup:

- TIMEING && MORE_TIMEING disabled by default
- private stuff moved to postprocess.c to avoid possible conflicts


git-svn-id: file:///var/local/repositories/mplayer/trunk/postproc@2190 b3059339-0415-0410-9bf9-f77b7e298cf2
parent c49ed351
...@@ -90,6 +90,16 @@ Changelog: use the CVS log ...@@ -90,6 +90,16 @@ Changelog: use the CVS log
//#undef HAVE_MMX //#undef HAVE_MMX
#include "postprocess.h" #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 packedYOffset= 0x0000000000000000LL;
static uint64_t packedYScale= 0x0100010001000100LL; static uint64_t packedYScale= 0x0100010001000100LL;
......
...@@ -46,23 +46,13 @@ ...@@ -46,23 +46,13 @@
#define H_RK1_FILTER 0x1000 // 4096 #define H_RK1_FILTER 0x1000 // 4096
#define H_X1_FILTER 0x2000 // 8192 #define H_X1_FILTER 0x2000 // 8192
#define GET_PP_QUALITY_MAX 6
#define TIMEING //#define TIMEING
#define MORE_TIMEING //#define MORE_TIMEING
#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)
#define QP_STORE_T int #define QP_STORE_T int
#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
//#ifdef __cplusplus //#ifdef __cplusplus
//#include <inttypes.h> //#include <inttypes.h>
...@@ -74,15 +64,16 @@ ...@@ -74,15 +64,16 @@
//extern "C" //extern "C"
//{ //{
//#endif //#endif
void postprocess(unsigned char * src[], int src_stride, void postprocess(unsigned char * src[], int src_stride,
unsigned char * dst[], int dst_stride, unsigned char * dst[], int dst_stride,
int horizontal_size, int vertical_size, int horizontal_size, int vertical_size,
QP_STORE_T *QP_store, int QP_stride, int mode); QP_STORE_T *QP_store, int QP_stride, int mode);
int getPpModeForQuality(int quality); int getPpModeForQuality(int quality);
//#ifdef __cplusplus //#ifdef __cplusplus
//} //}
//#endif //#endif
#define GET_PP_QUALITY_MAX 6
#endif #endif
...@@ -90,6 +90,16 @@ Changelog: use the CVS log ...@@ -90,6 +90,16 @@ Changelog: use the CVS log
//#undef HAVE_MMX //#undef HAVE_MMX
#include "postprocess.h" #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 packedYOffset= 0x0000000000000000LL;
static uint64_t packedYScale= 0x0100010001000100LL; static uint64_t packedYScale= 0x0100010001000100LL;
......
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