diff options
author | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-10-15 03:01:08 +0000 |
---|---|---|
committer | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-10-15 03:01:08 +0000 |
commit | e503beaf7ceb84bc0b102ee8d722adcd8b6ba2d8 (patch) | |
tree | 26c2d342602ce868638cb5d46066382a1f5ec6fa /postproc/postprocess.h | |
parent | b7498e1370de0bdc92dc53bcad7e115827b4f3bf (diff) | |
download | mpv-e503beaf7ceb84bc0b102ee8d722adcd8b6ba2d8.tar.bz2 mpv-e503beaf7ceb84bc0b102ee8d722adcd8b6ba2d8.tar.xz |
rewrote the horizontal lowpass filter to fix a bug which caused a blocky look
added deinterlace filters (linear interpolate, linear blend, median)
minor cleanups (removed some outcommented stuff)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2204 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'postproc/postprocess.h')
-rw-r--r-- | postproc/postprocess.h | 35 |
1 files changed, 14 insertions, 21 deletions
diff --git a/postproc/postprocess.h b/postproc/postprocess.h index 81f5435b40..143ea579a8 100644 --- a/postproc/postprocess.h +++ b/postproc/postprocess.h @@ -22,6 +22,7 @@ #define BLOCK_SIZE 8 #define TEMP_STRIDE 8 +//#define NUM_BLOCKS_AT_ONCE 16 //not used yet #define V_DEBLOCK 0x01 #define H_DEBLOCK 0x02 @@ -32,20 +33,28 @@ #define LUM_H_DEBLOCK H_DEBLOCK // 2 #define CHROM_V_DEBLOCK (V_DEBLOCK<<4) // 16 #define CHROM_H_DEBLOCK (H_DEBLOCK<<4) // 32 -#define LUM_DERING DERING // 4 -#define CHROM_DERING (DERING<<4) // 64 +#define LUM_DERING DERING // 4 (not implemented yet) +#define CHROM_DERING (DERING<<4) // 64 (not implemented yet) #define LUM_LEVEL_FIX LEVEL_FIX // 8 -//not supported currently -#define CHROM_LEVEL_FIX (LEVEL_FIX<<4) // 128 +#define CHROM_LEVEL_FIX (LEVEL_FIX<<4) // 128 (not implemented yet) // Experimental vertical filters #define V_RK1_FILTER 0x0100 // 256 #define V_X1_FILTER 0x0200 // 512 // Experimental horizontal filters -#define H_RK1_FILTER 0x1000 // 4096 +#define H_RK1_FILTER 0x1000 // 4096 (not implemented yet) #define H_X1_FILTER 0x2000 // 8192 +//Deinterlacing Filters +#define DEINTERLACE_FILTER_MASK 0xF0000 +#define LINEAR_IPOL_DEINT_FILTER 0x10000 // 65536 +#define LINEAR_BLEND_DEINT_FILTER 0x20000 // 131072 +#define CUBIC_BLEND_DEINT_FILTER 0x30000 // 196608 (not implemented yet) +#define CUBIC_IPOL_DEINT_FILTER 0x40000 // 262144 (not implemented yet) +#define MEDIAN_DEINT_FILTER 0x80000 // 524288 + + #define GET_PP_QUALITY_MAX 6 //#define TIMEING @@ -53,18 +62,6 @@ #define QP_STORE_T int -//#ifdef __cplusplus -//#include <inttypes.h> - -//void postProcess(uint8_t src[], int srcStride, uint8_t dst[], int dstStride, int width, int height, -// QP_STORE_T QPs[], int QPStride, int isColor, int mode); -//#endif - -//#ifdef __cplusplus -//extern "C" -//{ -//#endif - void postprocess(unsigned char * src[], int src_stride, unsigned char * dst[], int dst_stride, int horizontal_size, int vertical_size, @@ -72,8 +69,4 @@ void postprocess(unsigned char * src[], int src_stride, int getPpModeForQuality(int quality); -//#ifdef __cplusplus -//} -//#endif - #endif |