OMAP: DSS2: adjust YUV overlay width to be even
authorTomi Valkeinen <tomi.valkeinen@nokia.com>
Thu, 3 Jun 2010 13:27:46 +0000 (16:27 +0300)
committerTomi Valkeinen <tomi.valkeinen@nokia.com>
Thu, 5 Aug 2010 13:52:11 +0000 (16:52 +0300)
commitf55fdcfe88c5a23115b6d93674ad1e082e841091
tree9354e881477de261dfce1b16046e9b299851b600
parent5cb33e2166067e1fff7ebc3b849ec70a6fd7ec1d
OMAP: DSS2: adjust YUV overlay width to be even

An overlay in YUV mode has to have an even input width, because data for
each pixel is divided between two adjacent pixels.

The algorithm handling manual update overlay adjusting may adjust the
overlay width to be odd.

This patch adds a check for that situation, and makes the width even.
The width is increased by one if it is possible (the unadjusted input
width is larger than the width), and decreased by one if increasing is
not possible.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
drivers/video/omap2/dss/manager.c
This page took 0.024533 seconds and 5 git commands to generate.