diff options
author | Byunghun Jeon <bjeon@codeaurora.org> | 2015-05-18 11:35:38 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2015-07-30 12:29:07 -0700 |
commit | f61915f04cf9c47e1c23688a9eeffbf552617b82 (patch) | |
tree | c78e9f505aadd87d37ed91d74a75c3199bffc575 /jni/feature_mos/src/mosaic_renderer/WarpRenderer.h | |
parent | a2a57a538c401b564070f10dfac34cae12312928 (diff) | |
download | android_packages_apps_Snap-f61915f04cf9c47e1c23688a9eeffbf552617b82.tar.gz android_packages_apps_Snap-f61915f04cf9c47e1c23688a9eeffbf552617b82.tar.bz2 android_packages_apps_Snap-f61915f04cf9c47e1c23688a9eeffbf552617b82.zip |
SnapdragonCamera: Improved panorama
Improved panorama with faster performance and low memory
consumption. Also displays progress while taking panorama shot.
Change-Id: I88ae1205f056ebe59129e65d69fcc44f46a5ab92
CRs-Fixed: 859274
Diffstat (limited to 'jni/feature_mos/src/mosaic_renderer/WarpRenderer.h')
-rwxr-xr-x | jni/feature_mos/src/mosaic_renderer/WarpRenderer.h | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/jni/feature_mos/src/mosaic_renderer/WarpRenderer.h b/jni/feature_mos/src/mosaic_renderer/WarpRenderer.h deleted file mode 100755 index 2f50c6f34..000000000 --- a/jni/feature_mos/src/mosaic_renderer/WarpRenderer.h +++ /dev/null @@ -1,50 +0,0 @@ -#pragma once - -#include "FrameBuffer.h" -#include "Renderer.h" - -#include <GLES2/gl2.h> - -#include <stdint.h> -#include <stdio.h> -#include <stdlib.h> - -class WarpRenderer: public Renderer { - public: - WarpRenderer(); - virtual ~WarpRenderer(); - - // Initialize OpenGL resources - // @return true if successful - bool InitializeGLProgram(); - - void SetViewportMatrix(int w, int h, int W, int H); - void SetScalingMatrix(float xscale, float yscale); - void SetRotation(int degree); - bool DrawTexture(GLfloat *affine); - - private: - // Source code for shaders. - const char* VertexShaderSource() const; - const char* FragmentShaderSource() const; - - GLuint mTexHandle; // Handle to s_texture. - GLuint mTexCoordHandle; // Handle to a_texCoord. - GLuint mTriangleVerticesHandle; // Handle to vPosition. - - // Attribute locations - GLint mPositionLoc; - GLint mAffinetransLoc; - GLint mViewporttransLoc; - GLint mScalingtransLoc; - GLint mTexCoordLoc; - GLint mRotationtransLoc; - - GLfloat mViewportMatrix[16]; - GLfloat mScalingMatrix[16]; - GLfloat mRotationMatrix[16]; - - // Sampler location - GLint mSamplerLoc; -}; - |