From eeec580edcc0d1f72e883dcc6ae07886006e2be9 Mon Sep 17 00:00:00 2001 From: rfelker Date: Tue, 14 Jun 2005 05:33:34 +0000 Subject: 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 --- libmpcodecs/pullup.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libmpcodecs/pullup.h') 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; }; -- cgit v1.2.3