Hugintrunk
0.1
|
Support functions for GPU remapping. More...
#include <iostream>
#include <iomanip>
#include "hugin_config.h"
#include <GL/glew.h>
#include <string.h>
#include <vigra/diff2d.hxx>
#include <vigra/utilities.hxx>
#include <vigra/error.hxx>
#include <vigra_ext/ImageTransformsGPU.h>
#include <sys/time.h>
#include <time.h>
#include <vector>
Go to the source code of this file.
Namespaces | |
vigra_ext | |
Macros | |
#define | ___NCFILE___ ((char *) __FILE__) |
#define | CHECK_GL() checkGLErrors(__LINE__, ___NCFILE___) |
#define | GL_GPU_MEM_INFO_TOTAL_AVAILABLE_MEM_NVX 0x9048 |
#define | TEXTURE_FREE_MEMORY_ATI 0x87FC |
Functions | |
long | getms () |
static void | checkGLErrors (int line, char *file) |
static void | printInfoLog (GLhandleARB obj) |
static bool | checkFramebufferStatus (int line, char *file) |
static void | compileGLSL (const char *programName, GLhandleARB &programObject, GLhandleARB &shaderObject, const char **source) |
static void | makeChunks (const int width, const int height, const int maxTextureSize, const long long int maxPixels, vector< Rect2D > &result) |
void | vigra_ext::SetGPUDebugMessages (const bool doPrint) |
bool | vigra_ext::transformImageGPUIntern (const std::string &coordXformGLSL, const std::string &interpolatorGLSL, const int interpolatorSize, const std::string &photometricGLSL, const vector< double > &invLut, const vector< double > &destLut, const vigra::Diff2D srcSize, const void *const srcBuffer, const int srcGLInternalFormat, const int srcGLTransferFormat, const int srcGLFormat, const int srcGLType, const void *const srcAlphaBuffer, const int srcAlphaGLType, const vigra::Diff2D destUL, const vigra::Diff2D destSize, void *const destBuffer, const int destGLInternalFormat, const int destGLTransferFormat, const int destGLFormat, const int destGLType, void *const destAlphaBuffer, const int destAlphaGLType, const bool warparound) |
Variables | |
static GLenum | XGLMap [] |
static const char * | XGLStringMap [] |
static int | BytesPerPixel [] |
static const char * | AlphaCompositeKernelSource |
static bool | printDebug =false |
Support functions for GPU remapping.
$Id$
This is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU General Public License along with this software. If not, see http://www.gnu.org/licenses/.
Definition in file ImageTransformsGPU.cpp.
#define ___NCFILE___ ((char *) __FILE__) |
Definition at line 82 of file ImageTransformsGPU.cpp.
Referenced by vigra_ext::transformImageGPUIntern().
#define CHECK_GL | ( | ) | checkGLErrors(__LINE__, ___NCFILE___) |
Definition at line 83 of file ImageTransformsGPU.cpp.
Referenced by vigra_ext::transformImageGPUIntern().
#define GL_GPU_MEM_INFO_TOTAL_AVAILABLE_MEM_NVX 0x9048 |
Referenced by vigra_ext::transformImageGPUIntern().
#define TEXTURE_FREE_MEMORY_ATI 0x87FC |
Referenced by vigra_ext::transformImageGPUIntern().
|
static |
Definition at line 183 of file ImageTransformsGPU.cpp.
Referenced by vigra_ext::transformImageGPUIntern().
|
static |
Definition at line 125 of file ImageTransformsGPU.cpp.
|
static |
Definition at line 215 of file ImageTransformsGPU.cpp.
References printDebug, and printInfoLog().
Referenced by vigra_ext::transformImageGPUIntern().
long getms | ( | ) |
Definition at line 64 of file ImageTransformsGPU.cpp.
Referenced by vigra_ext::transformImageGPUIntern().
|
static |
Definition at line 252 of file ImageTransformsGPU.cpp.
Referenced by vigra_ext::transformImageGPUIntern().
|
static |
Definition at line 169 of file ImageTransformsGPU.cpp.
Referenced by compileGLSL().
|
static |
Definition at line 113 of file ImageTransformsGPU.cpp.
Referenced by vigra_ext::transformImageGPUIntern().
|
static |
Definition at line 106 of file ImageTransformsGPU.cpp.
Referenced by vigra_ext::transformImageGPUIntern().
|
static |
Definition at line 181 of file ImageTransformsGPU.cpp.
Referenced by compileGLSL(), vigra_ext::SetGPUDebugMessages(), and vigra_ext::transformImageGPUIntern().
|
static |
Definition at line 86 of file ImageTransformsGPU.cpp.
Referenced by vigra_ext::transformImageGPUIntern().
|
static |
Definition at line 96 of file ImageTransformsGPU.cpp.
Referenced by vigra_ext::transformImageGPUIntern().