From 809e8bdcb464d4be59d04825873f41ecebf9dc28 Mon Sep 17 00:00:00 2001 From: Jorgen Nilsson Date: Fri, 27 Jan 2012 15:26:45 +0100 Subject: b2r2: Improve image quality for HDMI clone The downscale filter for scale factors from 1 to 1.4 has been modified to reduce ringing effects. Ringing effects occur when the filter is a sinc function and the input is the step function (high contrast, e.g. a black line on a white surface). Destination pixels that were close to high contrast edges could be visibly contaminated by content from the opposite side of the edge. ST-Ericsson ID: 410185 ST-Ericsson Linux next: NA ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I789988e6e08cddc91f5364543efcc6287165b1b2 Signed-off-by: Jorgen Nilsson Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/50567 Reviewed-by: Robert FEKETE --- drivers/video/b2r2/b2r2_filters.c | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) (limited to 'drivers/video') diff --git a/drivers/video/b2r2/b2r2_filters.c b/drivers/video/b2r2/b2r2_filters.c index a969816a9e7..a93eb60d91f 100644 --- a/drivers/video/b2r2/b2r2_filters.c +++ b/drivers/video/b2r2/b2r2_filters.c @@ -12,6 +12,7 @@ #include "b2r2_filters.h" #include "b2r2_internal.h" +#include "b2r2_debug.h" /** * struct b2r2_filter_spec filters[] - Filter lookup table @@ -24,24 +25,24 @@ static struct b2r2_filter_spec filters[] = { .min = 1024, .max = 1433, .h_coeffs = { - 0xfc, 0x06, 0xf9, 0x09, 0x34, 0x09, 0xf9, 0x06, - 0xfd, 0x07, 0xf7, 0x10, 0x32, 0x02, 0xfc, 0x05, - 0xfe, 0x07, 0xf6, 0x17, 0x2f, 0xfc, 0xff, 0x04, - 0xff, 0x06, 0xf5, 0x20, 0x2a, 0xf9, 0x01, 0x02, - 0x00, 0x04, 0xf6, 0x27, 0x25, 0xf6, 0x04, 0x00, - 0x02, 0x01, 0xf9, 0x2d, 0x1d, 0xf5, 0x06, 0xff, - 0x04, 0xff, 0xfd, 0x31, 0x15, 0xf5, 0x07, 0xfe, - 0x05, 0xfc, 0x02, 0x35, 0x0d, 0xf7, 0x07, 0xfd + 0x00, 0x00, 0xFA, 0x09, 0x34, 0x09, 0x00, 0x00, + 0x00, 0x00, 0xF9, 0x10, 0x32, 0x06, 0xFF, 0x00, + 0x00, 0x00, 0xF8, 0x17, 0x2F, 0x02, 0x00, 0x00, + 0x00, 0x00, 0xF7, 0x20, 0x2A, 0xFF, 0x00, 0x00, + 0x00, 0x00, 0xF8, 0x27, 0x25, 0xFC, 0x00, 0x00, + 0x00, 0x00, 0xFA, 0x2D, 0x1D, 0xFC, 0x00, 0x00, + 0x00, 0x00, 0xFE, 0x31, 0x15, 0xFC, 0x00, 0x00, + 0x00, 0x00, 0x02, 0x35, 0x0D, 0xFC, 0x00, 0x00 }, .v_coeffs = { - 0xf8, 0x0a, 0x3c, 0x0a, 0xf8, - 0xf6, 0x12, 0x3b, 0x02, 0xfb, - 0xf4, 0x1b, 0x35, 0xfd, 0xff, - 0xf4, 0x23, 0x30, 0xf8, 0x01, - 0xf6, 0x29, 0x27, 0xf6, 0x04, - 0xf9, 0x2e, 0x1e, 0xf5, 0x06, - 0xfd, 0x31, 0x16, 0xf6, 0x06, - 0x02, 0x32, 0x0d, 0xf8, 0x07 + 0x00, 0x02, 0x3C, 0x02, 0x00, + 0x00, 0x08, 0x3B, 0xFD, 0x00, + 0x00, 0x10, 0x35, 0xFB, 0x00, + 0x00, 0x18, 0x30, 0xF8, 0x00, + 0x00, 0x1F, 0x27, 0xFA, 0x00, + 0x00, 0x27, 0x1E, 0xFB, 0x00, + 0x00, 0x2E, 0x16, 0xFC, 0x00, + 0x00, 0x34, 0x0D, 0xFF, 0x00 }, }, { -- cgit v1.2.3