diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2001-10-15 03:01:08 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2001-10-15 03:01:08 +0000 |
commit | 3b58b885fa875ce2a1c716c3cf675260dfa82369 (patch) | |
tree | 200b66075739498667864f655791e70803f32aa2 /postproc/postprocess.h | |
parent | 9ae0a66da12523b31b19ba85419e37cc7cd627ee (diff) | |
download | ffmpeg-3b58b885fa875ce2a1c716c3cf675260dfa82369.tar.gz |
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)
Originally committed as revision 2204 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
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 |