From 3ea7a7fc380b795edefca0d0d162d832d377101f Mon Sep 17 00:00:00 2001 From: Naomi Luis Date: Tue, 5 Apr 2011 19:14:55 -0700 Subject: [PATCH] overlay: Separate the interlace information from the color format When getting the MDP format in the setSource api, separate the color format from the interlace information. Change-Id: I6a92d2d6d2c9f70b0c0bd6486227032716f70914 CRs-fixed: 282157 --- liboverlay/overlayLib.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/liboverlay/overlayLib.cpp b/liboverlay/overlayLib.cpp index 08b5bc4..cbaff7e 100644 --- a/liboverlay/overlayLib.cpp +++ b/liboverlay/overlayLib.cpp @@ -734,7 +734,9 @@ bool OverlayControlChannel::closeControlChannel() { } bool OverlayControlChannel::setSource(uint32_t w, uint32_t h, - int format, int orientation, bool ignoreFB) { + int cFormat, int orientation, bool ignoreFB) { + int format = cFormat & INTERLACE_MASK ? + (cFormat ^ HAL_PIXEL_FORMAT_INTERLACE) : cFormat; format = get_mdp_format(format); if ((orientation == mOrientation) && ((orientation == OVERLAY_TRANSFORM_ROT_90)