summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/MosaicRenderer.java
diff options
context:
space:
mode:
authorJay Wang <jaywang@codeaurora.org>2014-12-26 18:10:22 -0800
committerJay Wang <jaywang@codeaurora.org>2015-01-05 17:13:36 -0800
commit8c1e4ff06d80d69792170f0cab8dea2f490cb7fa (patch)
treebe5bbc1308b214d991947185d60e708852e9fdaa /src/com/android/camera/MosaicRenderer.java
parent90301e97f4575e5e2f7eae5f7b2bd7f724620f79 (diff)
downloadandroid_packages_apps_Snap-8c1e4ff06d80d69792170f0cab8dea2f490cb7fa.tar.gz
android_packages_apps_Snap-8c1e4ff06d80d69792170f0cab8dea2f490cb7fa.tar.bz2
android_packages_apps_Snap-8c1e4ff06d80d69792170f0cab8dea2f490cb7fa.zip
SnapdragonCamera: Add FullScreen Preview when in Panoramic shoot
Changed the Panoramic preview to full screen Resized the warped preview image to smaller Size and render on top of the full screen preview image Change-Id: I98735dbed2ff4dada8708bf5a4a0f9da6ba030c7 Conflicts: res/layout-land/pano_preview_progress.xml res/layout-port/pano_preview_progress.xml
Diffstat (limited to 'src/com/android/camera/MosaicRenderer.java')
-rw-r--r--src/com/android/camera/MosaicRenderer.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/com/android/camera/MosaicRenderer.java b/src/com/android/camera/MosaicRenderer.java
index 92d9cb7b6..daf94abe6 100644
--- a/src/com/android/camera/MosaicRenderer.java
+++ b/src/com/android/camera/MosaicRenderer.java
@@ -86,4 +86,14 @@ public class MosaicRenderer
* @param flag boolean flag to set the warping to true or false.
*/
public static native void setWarping(boolean flag);
+ /**
+ * This function allows toggling between drawing the background full
+ * screen preview image data to screen and drawing the warped smaller
+ * preview on top of it. To render the full screen background preview,
+ * we set the falsg to true and to render the warped image on top of this
+ * we set the flag to false and flag in setWarping to true.
+ *
+ * @param flag boolean flag to set the warping to true or false.
+ */
+ public static native void setPreviewBackground(boolean flag);
}