summaryrefslogtreecommitdiff
path: root/drivers/video
diff options
context:
space:
mode:
authorMaciej Socha <maciej.socha@stericsson.com>2011-10-28 16:59:40 +0200
committerPhilippe Langlais <philippe.langlais@stericsson.com>2012-05-22 11:04:19 +0200
commite1b1e5bb51dd27c8043d0336d2396796023f9260 (patch)
treea29b39f09c0b38c31e6afb830b8e89894e873268 /drivers/video
parent7f9720fc26e42a82df0f76d9a6ab884ce3f9a78a (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>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/b2r2/b2r2_filters.c28
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,
- 0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