summaryrefslogtreecommitdiffstats
path: root/postproc/postprocess.h
diff options
context:
space:
mode:
authormichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-10-22 23:36:35 +0000
committermichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-10-22 23:36:35 +0000
commite2fcfe476b1c8a88e24e0c27b4baac6b9af4e887 (patch)
tree1758faae692161fea170b984ea4bdfc2dffec0c0 /postproc/postprocess.h
parent76f52268fd3a96f5e7e22a8932ec020953293c76 (diff)
downloadmpv-e2fcfe476b1c8a88e24e0c27b4baac6b9af4e887.tar.bz2
mpv-e2fcfe476b1c8a88e24e0c27b4baac6b9af4e887.tar.xz
auto brightness/ contrast bugfix
getPPModeByNameAndQuality git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2390 b3059339-0415-0410-9bf9-f77b7e298cf2
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 78a45b1026..7d932f2131 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