Commit 54efc186 authored by michael's avatar michael

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: file:///var/local/repositories/mplayer/trunk/postproc@2204 b3059339-0415-0410-9bf9-f77b7e298cf2
parent 97910b54
This diff is collapsed.
......@@ -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
This diff is collapsed.
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