summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhoony.yu <hoony.yu@samsung.com>2010-10-20 18:32:04 -0700
committerWu-cheng Li <wuchengli@google.com>2010-10-21 12:48:00 +0800
commit6a0dfcee1be91e7fc61dd9f62bdeee7a10fbffb2 (patch)
tree8eedfb4f8176e73fbf8daafdfcd5db7bd5633962
parenta9b420259c3dee3b5b1b790f55d38fef4f1b016e (diff)
downloaddevice_samsung_crespo-6a0dfcee1be91e7fc61dd9f62bdeee7a10fbffb2.zip
device_samsung_crespo-6a0dfcee1be91e7fc61dd9f62bdeee7a10fbffb2.tar.gz
device_samsung_crespo-6a0dfcee1be91e7fc61dd9f62bdeee7a10fbffb2.tar.bz2
S5PC11X: OVERLAY: change flip & rotation order.
Change-Id: I05d6d098fb07ecf892a35edfff03aa14fce8a4fb Signed-off-by: hoony.yu <hoony.yu@samsung.com> pid:3491
-rw-r--r--liboverlay/overlay.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/liboverlay/overlay.cpp b/liboverlay/overlay.cpp
index 73c3501..12b747f 100644
--- a/liboverlay/overlay.cpp
+++ b/liboverlay/overlay.cpp
@@ -802,13 +802,16 @@ static int overlay_setParameter(struct overlay_control_device_t *dev,
stage->rotation = 0;
stage->flip = V4L2_CID_VFLIP;
break;
+ /*
+ * FIMC rotates first. but android devices flip first.
+ */
case OVERLAY_TRANSFORM_ROT_90+OVERLAY_TRANSFORM_FLIP_H:
stage->rotation = 90;
- stage->flip = V4L2_CID_HFLIP;
+ stage->flip = V4L2_CID_VFLIP;
break;
case OVERLAY_TRANSFORM_ROT_90+OVERLAY_TRANSFORM_FLIP_V:
stage->rotation = 90;
- stage->flip = V4L2_CID_VFLIP;
+ stage->flip = V4L2_CID_HFLIP;
break;
default: