From 64bd705607da006dc5ff73a6cd7695bb49ee6923 Mon Sep 17 00:00:00 2001 From: Kinjal Bhavsar Date: Thu, 10 Feb 2011 20:05:58 -0800 Subject: [PATCH] liboverlay: Add TV detection and monoscopic display for S3D Add the state machine for overlay configuration. When connected, check whether the TV on HDMI is 3D capable or not using the EDID info. Show L channel on primary panel; and R channel on 2D TV if non 3DTV is connected via HDMI, else switch TV to 3D mode. Change-Id: I3109f8b0b81a8f5ad542db038262fd668e225e96 --- gralloc_priv.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/gralloc_priv.h b/gralloc_priv.h index 8e779d9..0a5ab60 100644 --- a/gralloc_priv.h +++ b/gralloc_priv.h @@ -1,6 +1,6 @@ /* * Copyright (C) 2008 The Android Open Source Project - * Copyright (c) 2010, Code Aurora Forum. All rights reserved. + * Copyright (c) 2010-2011, Code Aurora Forum. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -150,15 +150,15 @@ enum { /* possible formats for 3D content*/ enum { - HAL_NO_3D = 0x00, - HAL_3D_IN_SIDE_BY_SIDE_HALF_L_R = 0x10000, + HAL_NO_3D = 0x0000, + HAL_3D_IN_SIDE_BY_SIDE_L_R = 0x10000, HAL_3D_IN_TOP_BOTTOM = 0x20000, HAL_3D_IN_INTERLEAVE = 0x40000, - HAL_3D_IN_SIDE_BY_SIDE_FULL = 0x80000, - HAL_3D_IN_SIDE_BY_SIDE_HALF_R_L = 0xC0000, - HAL_3D_OUT_SIDE_BY_SIDE = 0x1000, - HAL_3D_OUT_TOP_BOTTOM = 0x2000, - HAL_3D_OUT_INTERLEAVE = 0x4000, + HAL_3D_IN_SIDE_BY_SIDE_R_L = 0x80000, + HAL_3D_OUT_SIDE_BY_SIDE = 0x1000, + HAL_3D_OUT_TOP_BOTTOM = 0x2000, + HAL_3D_OUT_INTERLEAVE = 0x4000, + HAL_3D_OUT_MONOSCOPIC = 0x8000 }; /*****************************************************************************/