Skip to content
Commit f55fdcfe authored by Tomi Valkeinen's avatar Tomi Valkeinen
Browse files

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: default avatarTomi Valkeinen <tomi.valkeinen@nokia.com>
parent 5cb33e21
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment