diff options
author | Maciej Socha <maciej.socha@stericsson.com> | 2011-10-28 16:59:40 +0200 |
---|---|---|
committer | Philippe Langlais <philippe.langlais@linaro.org> | 2012-03-19 09:00:19 +0100 |
commit | b3f1bd1806d5b832a38cc499d73d887d4ea6f093 (patch) | |
tree | de26312c45fd1e6589397c2c760b7ef3a91a2cd5 | |
parent | a479da9e1a497d9a98d1a482f1419c52d89bf133 (diff) |
b2r2: Improve image quality for large zoom blits
The bilinear filter kernel is essentially reduced in size
so the output is affected by fewer surrounding pixels.
Destination pixels that are close to high contrast edges
can otherwise be contaminated by content from
the opposite side of the edge.
ST-Ericsson ID: 367586
ST-Ericsson Linux next: NA
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I9cd8b8a7e0e3d36f987ee4fd96abebc42bb94628
Signed-off-by: Maciej Socha <maciej.socha@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/38272
Reviewed-by: Nils CALMSUND <nils.calmsund@stericsson.com>
Tested-by: Nils CALMSUND <nils.calmsund@stericsson.com>
Reviewed-by: QATOOLS
Reviewed-by: QABUILD
Reviewed-by: Jorgen NILSSON <jorgen.nilsson@stericsson.com>
Reviewed-by: Jimmy RUBIN <jimmy.rubin@stericsson.com>
-rw-r--r-- | drivers/video/b2r2/b2r2_filters.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/drivers/video/b2r2/b2r2_filters.c b/drivers/video/b2r2/b2r2_filters.c index 208cdcd286e..85cb697b522 100644 --- a/drivers/video/b2r2/b2r2_filters.c +++ b/drivers/video/b2r2/b2r2_filters.c @@ -154,23 +154,23 @@ static struct b2r2_filter_spec bilinear_filter = { .max = 0xffff, .h_coeffs = { 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, - 0xff, 0x03, 0xfd, 0x08, 0x3e, 0xf9, 0x04, 0xfe, - 0xfd, 0x06, 0xf8, 0x13, 0x3b, 0xf4, 0x07, 0xfc, - 0xfb, 0x08, 0xf5, 0x1f, 0x34, 0xf1, 0x09, 0xfb, - 0xfb, 0x09, 0xf2, 0x2b, 0x2a, 0xf1, 0x09, 0xfb, - 0xfb, 0x09, 0xf2, 0x35, 0x1e, 0xf4, 0x08, 0xfb, - 0xfc, 0x07, 0xf5, 0x3c, 0x12, 0xf7, 0x06, 0xfd, - 0xfe, 0x04, 0xfa, 0x3f, 0x07, 0xfc, 0x03, 0xff + 0x00, 0x00, 0xff, 0x08, 0x3e, 0xfb, 0x00, 0x00, + 0x00, 0x00, 0xfb, 0x13, 0x3b, 0xf7, 0x00, 0x00, + 0x00, 0x00, 0xf8, 0x1f, 0x34, 0xf5, 0x00, 0x00, + 0x00, 0x00, 0xf6, 0x2b, 0x2a, 0xf5, 0x00, 0x00, + 0x00, 0x00, 0xf6, 0x35, 0x1e, 0xf7, 0x00, 0x00, + 0x00, 0x00, 0xf9, 0x3c, 0x12, 0xf9, 0x00, 0x00, + 0x00, 0x00, 0xfd, 0x3f, 0x07, 0xfd, 0x00, 0x00 }, .v_coeffs = { 0x00, 0x00, 0x40, 0x00, 0x00, - 0xfd, 0x09, 0x3c, 0xfa, 0x04, - 0xf9, 0x13, 0x39, 0xf5, 0x06, - 0xf5, 0x1f, 0x31, 0xf3, 0x08, - 0xf3, 0x2a, 0x28, 0xf3, 0x08, - 0xf3, 0x34, 0x1d, 0xf5, 0x07, - 0xf5, 0x3b, 0x12, 0xf9, 0x05, - 0xfa, 0x3f, 0x07, 0xfd, 0x03 + 0x00, 0x09, 0x3d, 0xfa, 0x00, + 0x00, 0x13, 0x39, 0xf4, 0x00, + 0x00, 0x1e, 0x31, 0xf1, 0x00, + 0x00, 0x27, 0x28, 0xf1, 0x00, + 0x00, 0x31, 0x1d, 0xf2, 0x00, + 0x00, 0x38, 0x12, 0xf6, 0x00, + 0x00, 0x3d, 0x07, 0xfc, 0x00 }, }; |