summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/panorama/Mosaic.java
diff options
context:
space:
mode:
authormbansal <mayank.bansal@sri.com>2011-08-23 11:42:36 -0400
committerWei-Ta Chen <weita@google.com>2011-08-24 10:43:01 -0700
commit50b3c890986aadb3780b4da8c0b8dbb0f1422eba (patch)
tree963262c11e8a2e7afc301f9886e0d0d90430db21 /src/com/android/camera/panorama/Mosaic.java
parentf26e1ab12cb3f359fe1d6efcbe65344a3a0bf276 (diff)
downloadLegacyCamera-50b3c890986aadb3780b4da8c0b8dbb0f1422eba.zip
LegacyCamera-50b3c890986aadb3780b4da8c0b8dbb0f1422eba.tar.gz
LegacyCamera-50b3c890986aadb3780b4da8c0b8dbb0f1422eba.tar.bz2
Updates to allow the mosaic library to report the mosaic computation progress (both low-res and high-res).
1) Added a new method to the Mosaic class that reports the percent progress for both LR and HR mosaicers. 2) Added a test function to the activity that logs the reported progress. 3) [REMOVED] Added a test progress-bar to the UI for quick testing of the progress reporting UI. 4) Made minor updates in response to Wei-Ta's review. Change-Id: Iaf8ccf771579a40580a868743a6b53c6b05f14c6
Diffstat (limited to 'src/com/android/camera/panorama/Mosaic.java')
-rw-r--r--src/com/android/camera/panorama/Mosaic.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/com/android/camera/panorama/Mosaic.java b/src/com/android/camera/panorama/Mosaic.java
index 80e8263..ef9d367 100644
--- a/src/com/android/camera/panorama/Mosaic.java
+++ b/src/com/android/camera/panorama/Mosaic.java
@@ -156,4 +156,13 @@ public class Mosaic {
* Also re-initializes the native mosaic object to make it ready for capturing a new mosaic.
*/
public native void reset();
+
+ /**
+ * Get the progress status of the mosaic computation process.
+ * @param hires Boolean flag to select whether to report progress of the
+ * low-res or high-res mosaicer.
+ * @return Returns a number from 0-100 where 50 denotes that the mosaic
+ * computation is 50% done.
+ */
+ public native int reportProgress(boolean hires);
}