History log of /packages/apps/LegacyCamera/src/com/android/camera/panorama/MosaicRenderer.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
2d303cacaf6606f580f040a1b03feab9483e302c 06-Aug-2013 Jun Tian <jun.j.tian@intel.com> Loading the corresponding library in LegacyCamera app

The LegacyCamera app is loading wrong library in MosaicRenderer.java.
It causes the camera app crash in the SDK image when changing
the camera to panorma mode.

Change-Id: I4c20af796622dd0e76a86ed7249d9b8fa54837b9
/packages/apps/LegacyCamera/src/com/android/camera/panorama/MosaicRenderer.java
d32aa042a7d7fdb52cd8cec571e7c648f837eaff 19-Oct-2011 Wei-Ta Chen <weita@google.com> Make Panorama work in portrait layout.

Add the support of both portrait and landscape layout to the panorama library.
Add a step into the preview renderer that rotates the content in the
offscreen buffer by 90 degrees in the case of a portrait layout.

Change-Id: I879e3476daac522b0c8b27fe3ef5b17ebf0797e3
/packages/apps/LegacyCamera/src/com/android/camera/panorama/MosaicRenderer.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/MosaicRenderer.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/MosaicRenderer.java
eeb94d4de94bfd4e01f3a716803f77a530f5b92c 02-Aug-2011 mbansal <mayank.bansal@sri.com> Updates for mosaic preview rendering to happen using native GLES2.0 code.

1) Added new subfolder mosaic_renderer in feature_mos/src with FrameBuffer and WarpRenderer classes.
2) Added mosaic_renderer_jni.h|cpp files to the jni folder to perform GL calls for rendering on the GL thread.
3) Updated code in feature_mos_jni.cpp to connect with mosaic_renderer_jni.cpp.
4) Added new java files in com.android.camera.panorama to encapsulate the GL JNI interface, a GLSurfaceView for display and a GLSurfaceView.Renderer for rendering.
5) Modified APP code to enable the new GL-based rendering and made relevant changes to the UI (in pano_views.xml).
6) Fixed a GL bug which was preventing the rendering from working properly after hitting the back button once.
7) Preview rendering now displays in the current frame coordinate system.
8) Fixed the ghost preview rendering bug.

Change-Id: Ieb64ee3fd4a9a2c6563a311a4930ddc85ce2247c
/packages/apps/LegacyCamera/src/com/android/camera/panorama/MosaicRenderer.java