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/FrameBuffer.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/FrameBuffer.h')
-rwxr-xr-x | jni/feature_mos/src/mosaic_renderer/FrameBuffer.h | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/jni/feature_mos/src/mosaic_renderer/FrameBuffer.h b/jni/feature_mos/src/mosaic_renderer/FrameBuffer.h deleted file mode 100755 index 314b12622..000000000 --- a/jni/feature_mos/src/mosaic_renderer/FrameBuffer.h +++ /dev/null @@ -1,34 +0,0 @@ -#pragma once - -#include <EGL/egl.h> -#include <GLES2/gl2.h> -#include <GLES2/gl2ext.h> - -#define checkGlError(op) checkGLErrorDetail(__FILE__, __LINE__, (op)) - -extern bool checkGLErrorDetail(const char* file, int line, const char* op); -extern void checkFramebufferStatus(const char* name); - -class FrameBuffer { - public: - FrameBuffer(); - virtual ~FrameBuffer(); - - bool InitializeGLContext(); - bool Init(int width, int height, GLenum format); - GLuint GetTextureName() const; - GLuint GetFrameBufferName() const; - GLenum GetFormat() const; - - int GetWidth() const; - int GetHeight() const; - - private: - void Reset(); - bool CreateBuffers(); - GLuint mFrameBufferName; - GLuint mTextureName; - int mWidth; - int mHeight; - GLenum mFormat; -}; |