History log of /packages/apps/LegacyCamera/src/com/android/camera/panorama/MosaicFrameProcessor.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
7d9eadd0c6c38b3761b7e8d3fa3658d194810d60 21-Oct-2011 Jim Miller <jaggies@google.com> Fix 5491362: don't open the camera in onResume in lockscreen.

Change-Id: I678dd23f1603647e801c339a557fc08b53dbfa38
/packages/apps/LegacyCamera/src/com/android/camera/panorama/MosaicFrameProcessor.java
d991766dc3bcc03a02c6648e2cfd54ee4f8cbd9e 18-Oct-2011 Angus Kong <shkong@google.com> Use calculated frame offset instead of gyroscope.

bug:5359162
Change-Id: I319e9d54e08a2d711dc63bafa2593d6d68ef06fb
/packages/apps/LegacyCamera/src/com/android/camera/panorama/MosaicFrameProcessor.java
dd28e1cc00373c02adf88dff878dbbe5d8be9e59 21-Sep-2011 mbansal <mayank.bansal@sri.com> Updates to handle textureless scenes during capture.

1) Starts stitching only when the camera sees a textured scene at the beginning.
2) If a texturess scene is encountered in the middle of a capture, the stitching continues with the intermediate frames translated using the pan velocity estimate.
3) Added more error codes and percolated them up to the java layer.
4) Fix a build error in Mosaic::addFrame() and added comments.
5) Update the javadoc in Mosaic.java to reflect the new returning codes.

Change-Id: I7727ace615ece22adefe313a19ac2cbe8c8d21a8
/packages/apps/LegacyCamera/src/com/android/camera/panorama/MosaicFrameProcessor.java
b28b9c0fa991bc97e8aa11da83d27f71fdfef6da 19-Sep-2011 mbansal <mayank.bansal@sri.com> Blending algorithm updates to support WIDE strip-based blending.

1) Added algorithm to select wider strips (and made it the default mode in the app).
2) Added algorithm to cross-fade blend between the wider strips.

Change-Id: I744e69edb16a20f0040ee82c3390548b78853087
/packages/apps/LegacyCamera/src/com/android/camera/panorama/MosaicFrameProcessor.java
e1178a73fd5756771d25d0b8375452450f509e99 08-Sep-2011 mbansal <mayank.bansal@sri.com> Updates to allow cancellation of mosaic computation from a UI trigger.

1) reportProgress now takes a new boolean parameter that can be used to break out of the mosaic computation loop at the library level.
2) Added a cancel button to the progressDialog and a new Handler message to handle the button click so that the user can be taken back to the capture stage.
3) Updates to address the code review.

Change-Id: I0768da55dd6ccd9b1464d456ab41973779734c65
/packages/apps/LegacyCamera/src/com/android/camera/panorama/MosaicFrameProcessor.java
e47b5624a1aa3cc7bd9763852bed4ac3215a77b2 30-Aug-2011 Wei-Ta Chen <weita@google.com> Fix the panning speed issue.

Use the moving average speed, rather than an instantaneous speed, to
calculate the panning speed. Also, set the panning speed threshold to 20
degrees/sec across all devices.

Bug: 5249945

Change-Id: Ib5bedf34b2a999d2e380873db48589b7f1882936
/packages/apps/LegacyCamera/src/com/android/camera/panorama/MosaicFrameProcessor.java
c89a0eb7b1f0cd5cd45de8fd08ff051f6f74f382 30-Aug-2011 Angus Kong <shkong@google.com> The angle indication now goes in two directions.

The computation of angles is moved into PanoramaActivity from MosaicFrameProcessor for rapid update
of the UI.

bug:5141674
Change-Id: I1bb6721c8354a0460701b5b0f60d772dd0b8633a
/packages/apps/LegacyCamera/src/com/android/camera/panorama/MosaicFrameProcessor.java
50b3c890986aadb3780b4da8c0b8dbb0f1422eba 23-Aug-2011 mbansal <mayank.bansal@sri.com> 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
/packages/apps/LegacyCamera/src/com/android/camera/panorama/MosaicFrameProcessor.java
43b0b2ccd5949ee8fc377c37e7e2b82a26c88ca8 19-Aug-2011 Wei-Ta Chen <weita@google.com> Set a panning speed threshold across all devices.

We set the threshold to 30 degrees/sec.

Bug: 5182333
Change-Id: I29282893519f54601738b74945b2146c016c0af3
/packages/apps/LegacyCamera/src/com/android/camera/panorama/MosaicFrameProcessor.java
1f227d20aa000d0798581f451b89b1d3b2bcd349 15-Aug-2011 Wei-Ta Chen <weita@google.com> Fix an issue with hitting frame number limit.

In the native side, the library always returns the transformation of the 100th
frame after hitting the frame number limit - 100. The application codes
need to avoid adding more frames once the limit reaches. Otherwise, we
see the UI repeating the 100th on the panorama preview. Ultimately, we
want this termination condition to be solely determined in the native
side.

Also updates a comment on MosaicRenderer.

Change-Id: I6883b25f14103527de8454a2568f4768669e0aff
/packages/apps/LegacyCamera/src/com/android/camera/panorama/MosaicFrameProcessor.java
0adf2489520d3a98a56e081aeacb1ab9336a012f 13-Aug-2011 Wei-Ta Chen <weita@google.com> Remove the flag - mUseSurfaceTexture.

The flag was used for debugging.
We completed the transition of using SurfaceTexture to get preview frame data.

Change-Id: I4af16456845c741342bbbf65e912a67c094ab006
/packages/apps/LegacyCamera/src/com/android/camera/panorama/MosaicFrameProcessor.java
41a2e9735136f372de95652d0828600282c8e967 09-Aug-2011 mbansal <mayank.bansal@sri.com> Updates to allow using SurfaceTexture for reading the preview frames directly from GPU memory.

1) SurfaceTexture is now used to obtain the data processed by the mosaicing library.
2) SurfaceTexture in GPU memory is directly rendered using the transformation from the mosaicing library to generate the preview mosaic.
3) GPU is also used to generate the Low-Res frames from the High-res frames (was being done in CPU before).
4) SurfaceTexture is also used to render the viewfinder as soon as the mosaicing application starts (eliminating the need for a separate SurfaceHolder to render the camera).
5) Modified the XML layout during the preview state to be the same size as during the capture stage to accommodate the SurfaceTexture based viewfinder [this needs to be reviewed and adjusted].
6) Fixed the viewfinder and back button issues identified by Wei-Ta.
7) Round-1 of removing trailing spaces and tabs.
8) Added documentation to new Java side interfaces and cleaned up code in general.
9) Cleaned up redundant and commented out code from the native side.
10) Merged with latest updates from the main trunk.
11) Fixed issues identified in code review and also cleaned up and refactored some code.
12) Added layout-w1024dp/pano_capture.xml for tablet layout.

Change-Id: If8fb0116de6c7fc6652cc67ac453553726961c32
/packages/apps/LegacyCamera/src/com/android/camera/panorama/MosaicFrameProcessor.java
142402d57c1689c1342d096c976b9b0826f8ce1a 08-Aug-2011 Angus Kong <shkong@google.com> "Retake" and "Ok" buttons can function correctly.

1. "Retake" button brings user back to preview stage without saving the final result.
2. "Ok" button brings user back to preview stage after saving the final result.

bug:5031609
bug:5142100
bug:5134202
bug:5133871
Change-Id: I234e242182765cc5624b2fc8444bc38e5a9edf9f
/packages/apps/LegacyCamera/src/com/android/camera/panorama/MosaicFrameProcessor.java
d690626cc82e43eb3fadde968ea15a10e40590bf 09-Aug-2011 Wei-Ta Chen <weita@google.com> Remove the unnecessary low-res alpha bitmap.

Since we now use OpenGL to render panorama preview in the native layer, there is no need to
maintaine a low resolution alpha bitmap in the application layer for
panorama preview rendering. The change improves the rendering
performance.

Change-Id: I3e7fa36e895d600de06808a2a67f72ae757205e2
/packages/apps/LegacyCamera/src/com/android/camera/panorama/MosaicFrameProcessor.java
a955261dd734524eb7d8e1af76c695122efc8aa7 04-Aug-2011 Angus Kong <shkong@google.com> Stop button added on panorama UI.

1. Individual layout XML file added for preview, capture and review stages.
2. Stop button added for capture stage.
3. Layout changed to comply UI spec more.

bug:5031609
Change-Id: I152daafe8a1a9fcc12b3803f3f7a36875b425628
/packages/apps/LegacyCamera/src/com/android/camera/panorama/MosaicFrameProcessor.java
94f592fc405ca45b8794007cd9083c3250924b50 27-Jul-2011 Wei-Ta Chen <weita@google.com> Fix memory leaks both in the native and Java side.

Change-Id: I80dabe069047fb2327ddbb4f78477723870e1c2a
/packages/apps/LegacyCamera/src/com/android/camera/panorama/MosaicFrameProcessor.java
8a2c41754655a3733175fce81fb7506ff7022959 28-Jul-2011 Angus Kong <shkong@google.com> Refactoring Panorama UI codes.

Mosaic native interface is moved out from Preview.java. Program logics and UI are now
decoupled.

bug:5031609
Change-Id: If46a21a6be05deba7fd1f94f37d14c4afa460d78
/packages/apps/LegacyCamera/src/com/android/camera/panorama/MosaicFrameProcessor.java