|
|
|
@ -20,7 +20,7 @@ |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @file |
|
|
|
|
* internal api header. |
|
|
|
|
* internal API header. |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
#ifndef POSTPROC_POSTPROCESS_INTERNAL_H |
|
|
|
@ -53,7 +53,7 @@ |
|
|
|
|
#define H_X1_FILTER 0x2000 // 8192
|
|
|
|
|
#define H_A_DEBLOCK 0x4000 |
|
|
|
|
|
|
|
|
|
/// select between full y range (255-0) or standart one (234-16)
|
|
|
|
|
/// select between full y range (255-0) or standard one (234-16)
|
|
|
|
|
#define FULL_Y_RANGE 0x8000 // 32768
|
|
|
|
|
|
|
|
|
|
//Deinterlacing Filters
|
|
|
|
@ -80,7 +80,7 @@ static inline int CLIP(int a){ |
|
|
|
|
else return a; |
|
|
|
|
} |
|
|
|
|
/**
|
|
|
|
|
* Postprocessng filter. |
|
|
|
|
* Postprocessing filter. |
|
|
|
|
*/ |
|
|
|
|
struct PPFilter{ |
|
|
|
|
const char *shortName; |
|
|
|
@ -92,15 +92,15 @@ struct PPFilter{ |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Postprocessng mode. |
|
|
|
|
* Postprocessing mode. |
|
|
|
|
*/ |
|
|
|
|
typedef struct PPMode{ |
|
|
|
|
int lumMode; ///< acivates filters for luminance
|
|
|
|
|
int chromMode; ///< acivates filters for chrominance
|
|
|
|
|
int lumMode; ///< activates filters for luminance
|
|
|
|
|
int chromMode; ///< activates filters for chrominance
|
|
|
|
|
int error; ///< non zero on error
|
|
|
|
|
|
|
|
|
|
int minAllowedY; ///< for brigtness correction
|
|
|
|
|
int maxAllowedY; ///< for brihtness correction
|
|
|
|
|
int minAllowedY; ///< for brightness correction
|
|
|
|
|
int maxAllowedY; ///< for brightness correction
|
|
|
|
|
float maxClippedThreshold; ///< amount of "black" you are willing to lose to get a brightness-corrected picture
|
|
|
|
|
|
|
|
|
|
int maxTmpNoise[3]; ///< for Temporal Noise Reducing filter (Maximal sum of abs differences)
|
|
|
|
|