Mercurial > libavcodec.hg
comparison libpostproc/postprocess.h @ 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 | 0ec7d482ec8d |
| children | 389391a6d0bf |
comparison
equal
deleted
inserted
replaced
| 103:0ec7d482ec8d | 104:9607b48e2c2d |
|---|---|
| 44 | 44 |
| 45 // Experimental horizontal filters | 45 // Experimental horizontal filters |
| 46 #define H_RK1_FILTER 0x1000 // 4096 | 46 #define H_RK1_FILTER 0x1000 // 4096 |
| 47 #define H_X1_FILTER 0x2000 // 8192 | 47 #define H_X1_FILTER 0x2000 // 8192 |
| 48 | 48 |
| 49 #define GET_PP_QUALITY_MAX 6 | |
| 49 | 50 |
| 50 #define TIMEING | 51 //#define TIMEING |
| 51 #define MORE_TIMEING | 52 //#define MORE_TIMEING |
| 52 | |
| 53 #define MIN(a,b) ((a) > (b) ? (b) : (a)) | |
| 54 #define MAX(a,b) ((a) < (b) ? (b) : (a)) | |
| 55 #define ABS(a) ((a) > 0 ? (a) : (-(a))) | |
| 56 #define SIGN(a) ((a) > 0 ? 1 : -1) | |
| 57 | 53 |
| 58 #define QP_STORE_T int | 54 #define QP_STORE_T int |
| 59 | |
| 60 #ifdef HAVE_MMX2 | |
| 61 #define PAVGB(a,b) "pavgb " #a ", " #b " \n\t" | |
| 62 #elif defined (HAVE_3DNOW) | |
| 63 #define PAVGB(a,b) "pavgusb " #a ", " #b " \n\t" | |
| 64 #endif | |
| 65 | 55 |
| 66 //#ifdef __cplusplus | 56 //#ifdef __cplusplus |
| 67 //#include <inttypes.h> | 57 //#include <inttypes.h> |
| 68 | 58 |
| 69 //void postProcess(uint8_t src[], int srcStride, uint8_t dst[], int dstStride, int width, int height, | 59 //void postProcess(uint8_t src[], int srcStride, uint8_t dst[], int dstStride, int width, int height, |
| 72 | 62 |
| 73 //#ifdef __cplusplus | 63 //#ifdef __cplusplus |
| 74 //extern "C" | 64 //extern "C" |
| 75 //{ | 65 //{ |
| 76 //#endif | 66 //#endif |
| 67 | |
| 77 void postprocess(unsigned char * src[], int src_stride, | 68 void postprocess(unsigned char * src[], int src_stride, |
| 78 unsigned char * dst[], int dst_stride, | 69 unsigned char * dst[], int dst_stride, |
| 79 int horizontal_size, int vertical_size, | 70 int horizontal_size, int vertical_size, |
| 80 QP_STORE_T *QP_store, int QP_stride, int mode); | 71 QP_STORE_T *QP_store, int QP_stride, int mode); |
| 72 | |
| 81 int getPpModeForQuality(int quality); | 73 int getPpModeForQuality(int quality); |
| 74 | |
| 82 //#ifdef __cplusplus | 75 //#ifdef __cplusplus |
| 83 //} | 76 //} |
| 84 //#endif | 77 //#endif |
| 85 | 78 |
| 86 #define GET_PP_QUALITY_MAX 6 | |
| 87 | |
| 88 #endif | 79 #endif |
