History log of /packages/apps/LegacyCamera/jni/feature_mos/src/mosaic_renderer/SurfaceTextureRenderer.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
2a799a3a3149c59e554169da1e6e4c529621507b 26-Jan-2015 Elliott Hughes <enh@google.com> Add missing <string.h> include.

Change-Id: I985a631fcca9553e046ae63e03f1aba6f2ff812e
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic_renderer/SurfaceTextureRenderer.cpp
274ca49c63557a8c3ee12c8da5f75e28b4875a5d 11-Sep-2011 Wei-Ta Chen <weita@google.com> Clean up the logs.

Bug: 5277853
Change-Id: Ic1c9a0395846b6815f2c18663e3c9078781a6194
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic_renderer/SurfaceTextureRenderer.cpp
c73d5e20e80cf8b28017dff3b7672b8416a3a9f4 30-Aug-2011 Wei-Ta Chen <weita@google.com> Update the transform matrix from SurfaceTexture.

Bug: 5211070

Fix the issue that the transform matrix from SurfaceTexture is not set
into the shader. Also, the texture coordinates are corrected to fix the
upside down issue.

Change-Id: Ia97f590a572aff64c65b6fb94672752e1634405b
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic_renderer/SurfaceTextureRenderer.cpp
a6f0b9e759fa2d19d493bde7ffa8105ec2978b94 19-Aug-2011 mbansal <mayank.bansal@sri.com> Updates to remove compile warnings and stop the viewfinder panning at UI boundary. Also, new logic for rendering the preview mosaic.

1) Fixed compiler warnings reported by Wei-Ta.
2) The viewfinder now stops panning (for both left-to-right and right-to-left motions) when it hits a pre-defined border region within the screen viewport.
3) Updated the logic for rendering to always maintain the preview mosaic (previewFBO) in the current-frame coordinate system. This fixes the repeating issues.

Change-Id: I6619ffe96955965ba523e330fa6561c88e6e6d5c
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic_renderer/SurfaceTextureRenderer.cpp
1e762b1f935c9d4a06af6dd56121590ca81d48b1 16-Aug-2011 mbansal <mayank.bansal@sri.com> Updates to allow the viewfinder to slide across the UI with device panning. Also, rendering updates for color conversion using GPU.

1) Refactored the SurfaceTextureRenderer and WarpRenderer classes to inherit from a new base class Renderer.
2) Fixed a minor bug in the Blend class and added a helper function to create the mosaic in middle frame coordinate system [no changes in run-time behavior].
3) Added a flip-flop gPreviewFBO to allow panning the viewfinder across the UI when the user pans the device.
4) Fixed the size of the viewfinder and preview mosaic to match the UI layout height.
5) The viewfinder in the preview stage is now aligned with the viewfinder in the capture stage.
6) Added new class YVURenderer that converts from RGB to YVU data using GLSL shaders.
7) Modified the rendering pipeline to use GPU for RGB to YVU conversion. The processing thread now only performs conversion from YVUA interlaced to YVU planar format.
8) Updates following Wei-Ta's code-review comments.

Change-Id: I6c18df3b57d1c2d78d55da8a8f3b9cd970c8d903
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic_renderer/SurfaceTextureRenderer.cpp
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/jni/feature_mos/src/mosaic_renderer/SurfaceTextureRenderer.cpp