summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/pullup.h
diff options
context:
space:
mode:
authorrfelker <rfelker@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-06-14 05:33:34 +0000
committerrfelker <rfelker@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-06-14 05:33:34 +0000
commiteeec580edcc0d1f72e883dcc6ae07886006e2be9 (patch)
tree3fb4dfdef3c0976d55ecc239d7fbb78c12a53127 /libmpcodecs/pullup.h
parent12a755b63bdc1f80499f151289e33d403af9bacd (diff)
downloadmpv-eeec580edcc0d1f72e883dcc6ae07886006e2be9.tar.bz2
mpv-eeec580edcc0d1f72e883dcc6ae07886006e2be9.tar.xz
small change to field-matching metrics which hopefully makes a big
improvement to results. inter-field comparison is now counterbalanced with intra-field total (vertical) variation. this means that areas of extreme high frequency content, which become aliased within individual fields, will not interfere with field matching. examples: white noise effects, small kanji, very small latin text, ... may still need tweaking. please report regressions. this change will likely be made optional in the future (right now it's enclosed in "if (1)"... git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15722 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs/pullup.h')
-rw-r--r--libmpcodecs/pullup.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libmpcodecs/pullup.h b/libmpcodecs/pullup.h
index fec1b8b9f0..f6cde2c39a 100644
--- a/libmpcodecs/pullup.h
+++ b/libmpcodecs/pullup.h
@@ -27,6 +27,7 @@ struct pullup_field
int affinity;
int *diffs;
int *comb;
+ int *var;
struct pullup_field *prev, *next;
};
@@ -57,6 +58,7 @@ struct pullup_context
int nbuffers;
int (*diff)(unsigned char *, unsigned char *, int);
int (*comb)(unsigned char *, unsigned char *, int);
+ int (*var)(unsigned char *, unsigned char *, int);
int metric_w, metric_h, metric_len, metric_offset;
struct pullup_frame *frame;
};