Mercurial > libavcodec.hg
comparison libpostproc/postprocess.h @ 97:e57b1d38d71f libavcodec
bugfixes: last 3 lines not brightness/contrast corrected
brightness statistics messed up with initial black pic
changed initial values of the brightness statistics
C++ -> C conversation
QP range question solved (very likely 1<=QP<=32 according to arpi)
new experimental vertical deblocking filter
RK filter has 3dNow support now (untested)
| author | michael |
|---|---|
| date | Thu, 11 Oct 2001 22:35:45 +0000 |
| parents | 29ac11dc53d3 |
| children | eaae16507d9b |
comparison
equal
deleted
inserted
replaced
| 96:29ac11dc53d3 | 97:e57b1d38d71f |
|---|---|
| 24 #define TEMP_STRIDE 8 | 24 #define TEMP_STRIDE 8 |
| 25 | 25 |
| 26 #define V_DEBLOCK 0x01 | 26 #define V_DEBLOCK 0x01 |
| 27 #define H_DEBLOCK 0x02 | 27 #define H_DEBLOCK 0x02 |
| 28 #define DERING 0x04 | 28 #define DERING 0x04 |
| 29 #define LEVEL_FIX 0x08 /* Brightness & Contrast */ | |
| 29 | 30 |
| 30 #define LUM_V_DEBLOCK V_DEBLOCK | 31 #define LUM_V_DEBLOCK V_DEBLOCK |
| 31 #define LUM_H_DEBLOCK H_DEBLOCK | 32 #define LUM_H_DEBLOCK H_DEBLOCK |
| 32 #define CHROM_V_DEBLOCK (V_DEBLOCK<<4) | 33 #define CHROM_V_DEBLOCK (V_DEBLOCK<<4) |
| 33 #define CHROM_H_DEBLOCK (H_DEBLOCK<<4) | 34 #define CHROM_H_DEBLOCK (H_DEBLOCK<<4) |
| 34 #define LUM_DERING DERING | 35 #define LUM_DERING DERING |
| 35 #define CHROM_DERING (DERING<<4) | 36 #define CHROM_DERING (DERING<<4) |
| 37 #define LUM_LEVEL_FIX LEVEL_FIX | |
| 38 //not supported currently | |
| 39 #define CHROM_LEVEL_FIX (LEVEL_FIX<<4) | |
| 36 | 40 |
| 37 // Experimental stuff | 41 // Experimental stuff |
| 38 #define RK_FILTER 0x0100 | 42 #define RK_FILTER 0x0100 |
| 39 #define LUM_V_RK_FILTER RK_FILTER | 43 #define LUM_V_RK_FILTER RK_FILTER |
| 40 #define CHROM_V_RK_FILTER (RK_FILTER<<4) | 44 #define CHROM_V_RK_FILTER (RK_FILTER<<4) |
| 45 | |
| 46 #define X1_FILTER 0x0200 | |
| 47 #define LUM_V_X1_FILTER X1_FILTER | |
| 48 #define CHROM_V_X1_FILTER (X1_FILTER<<4) | |
| 41 | 49 |
| 42 | 50 |
| 43 #define TIMEING | 51 #define TIMEING |
| 44 #define MORE_TIMEING | 52 #define MORE_TIMEING |
| 45 | 53 |
| 58 | 66 |
| 59 #ifdef __cplusplus | 67 #ifdef __cplusplus |
| 60 //#include <inttypes.h> | 68 //#include <inttypes.h> |
| 61 | 69 |
| 62 void postProcess(uint8_t src[], int srcStride, uint8_t dst[], int dstStride, int width, int height, | 70 void postProcess(uint8_t src[], int srcStride, uint8_t dst[], int dstStride, int width, int height, |
| 63 QP_STORE_T QPs[], int QPStride, bool isColor, int mode); | 71 QP_STORE_T QPs[], int QPStride, int isColor, int mode); |
| 64 #endif | 72 #endif |
| 65 | 73 |
| 66 #ifdef __cplusplus | 74 #ifdef __cplusplus |
| 67 extern "C" | 75 extern "C" |
| 68 { | 76 { |
