summaryrefslogtreecommitdiffstats
path: root/postproc/postprocess.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2001-10-22 23:36:35 +0000
committerMichael Niedermayer <michaelni@gmx.at>2001-10-22 23:36:35 +0000
commit911879d15eeb5cae8ff00ab4ad28408c2ee9f31b (patch)
tree61a6613e5b72fc5ab859eb51e32279c831c5aa4b /postproc/postprocess.h
parenta525ce8db1c9792f309d225c872cca07748185a3 (diff)
downloadffmpeg-streaming-911879d15eeb5cae8ff00ab4ad28408c2ee9f31b.zip
ffmpeg-streaming-911879d15eeb5cae8ff00ab4ad28408c2ee9f31b.tar.gz
auto brightness/ contrast bugfix
getPPModeByNameAndQuality Originally committed as revision 2390 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
Diffstat (limited to 'postproc/postprocess.h')
-rw-r--r--postproc/postprocess.h29
1 files changed, 28 insertions, 1 deletions
diff --git a/postproc/postprocess.h b/postproc/postprocess.h
index 78a45b1..7d932f2 100644
--- a/postproc/postprocess.h
+++ b/postproc/postprocess.h
@@ -46,7 +46,7 @@
#define H_RK1_FILTER 0x1000 // 4096 (not implemented yet)
#define H_X1_FILTER 0x2000 // 8192
-// select between full y range (255-0) or standart one (
+// select between full y range (255-0) or standart one (234-16)
#define FULL_Y_RANGE 0x8000 // 32768
//Deinterlacing Filters
@@ -67,11 +67,38 @@
#define QP_STORE_T int
+struct PPMode{
+ int lumMode; //acivates filters for luminance
+ int chromMode; //acivates filters for chrominance
+ int oldMode; // will be passed to odivx
+ int error; // non zero on error
+
+ int minAllowedY;
+ int maxAllowedY;
+};
+
+struct PPFilter{
+ char *shortName;
+ char *longName;
+ int chromDefault;
+ int minLumQuality;
+ int minChromQuality;
+ int mask;
+};
+
void postprocess(unsigned char * src[], int src_stride,
unsigned char * dst[], int dst_stride,
int horizontal_size, int vertical_size,
QP_STORE_T *QP_store, int QP_stride, int mode);
+void postprocess2(unsigned char * src[], int src_stride,
+ unsigned char * dst[], int dst_stride,
+ int horizontal_size, int vertical_size,
+ QP_STORE_T *QP_store, int QP_stride, struct PPMode *mode);
+
+
int getPpModeForQuality(int quality);
+struct PPMode getPpModeByNameAndQuality(char *name, int quality);
+
#endif
OpenPOWER on IntegriCloud