summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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: