summaryrefslogtreecommitdiffstats
path: root/liboverlay
diff options
context:
space:
mode:
authorWu-cheng Li <wuchengli@google.com>2010-10-23 17:40:49 +0800
committerWu-cheng Li <wuchengli@google.com>2010-10-23 17:41:48 +0800
commit03255efdffcf8c35abfc254d40e3e85079b51b75 (patch)
treef919edc02e3e2b5291d134880523c2048730bb43 /liboverlay
parent3fda02d334845a570b9de76006741be42280f544 (diff)
downloaddevice_samsung_crespo-03255efdffcf8c35abfc254d40e3e85079b51b75.zip
device_samsung_crespo-03255efdffcf8c35abfc254d40e3e85079b51b75.tar.gz
device_samsung_crespo-03255efdffcf8c35abfc254d40e3e85079b51b75.tar.bz2
Fix OVERLAY_TRANSFORM_FLIP_H and OVERLAY_TRANSFORM_FLIP_V.
OVERLAY_TRANSFORM_FLIP_H = FIMC VFLIP OVERLAY_TRANSFORM_FLIP_V = FIMC HFLIP FIMC rotates first but android flips first. So, OVERLAY_TRANSFORM_FLIP_H and then OVERLAY_TRANSFORM_ROT_90 = OVERLAY_TRANSFORM_ROT_90 and then OVERLAY_TRANSFORM_FLIP_V = FIMC ROT 90 and then FIMC HFLIP bug:3114236 Change-Id: I07c2f40d5324a9b8e022ea30199ccb7c2aa56208
Diffstat (limited to 'liboverlay')
-rw-r--r--liboverlay/overlay.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/liboverlay/overlay.cpp b/liboverlay/overlay.cpp
index 73c3501..4983e87 100644
--- a/liboverlay/overlay.cpp
+++ b/liboverlay/overlay.cpp
@@ -794,14 +794,16 @@ static int overlay_setParameter(struct overlay_control_device_t *dev,
stage->rotation = 270;
stage->flip = 0;
break;
+ // FIMC VFLIP = android overlay FLIP_H.
case OVERLAY_TRANSFORM_FLIP_H:
stage->rotation = 0;
- stage->flip = V4L2_CID_HFLIP;
+ stage->flip = V4L2_CID_VFLIP;
break;
case OVERLAY_TRANSFORM_FLIP_V:
stage->rotation = 0;
- stage->flip = V4L2_CID_VFLIP;
+ stage->flip = V4L2_CID_HFLIP;
break;
+ // FIMC rotates first but android flips first.
case OVERLAY_TRANSFORM_ROT_90+OVERLAY_TRANSFORM_FLIP_H:
stage->rotation = 90;
stage->flip = V4L2_CID_HFLIP;