FastCV Sample Application  1.7.1
CameraUtil Class Reference

CameraUtil class provide utility functions useful for camera image capture and rendering. More...

#include <CameraUtil.h>

Static Public Member Functions

static uint64_t GetCurrentTimeus ()
 Gives current time in micro seconds.
static GLuint CompileAndLinkShaderProgram (const char *vShaderStr, const char *fShaderStr)
 Compiles the given fragment and vertex shader source code and linked into an OpenGL shader program object stored in mProgramObject.
static bool LoadShader (GLenum type, const char *shaderSrc, GLuint &shader)
 Creates shader object by loading shader source, and compiling shader.
static bool checkGlError (const char *op)
 Check for opengl error and prints the error message if an error was found.
static uint64_t GetCurrentTimeus ()
 Gives current time in micro seconds.
static GLuint CompileAndLinkShaderProgram (const char *vShaderStr, const char *fShaderStr)
 Compiles the given fragment and vertex shader source code and linked into an OpenGL shader program object stored in mProgramObject.
static bool LoadShader (GLenum type, const char *shaderSrc, GLuint &shader)
 Creates shader object by loading shader source, and compiling shader.
static bool checkGlError (const char *op)
 Check for opengl error and prints the error message if an error was found.

Detailed Description

CameraUtil class provide utility functions useful for camera image capture and rendering.


Member Function Documentation

bool CameraUtil::checkGlError ( const char *  op) [static]

Check for opengl error and prints the error message if an error was found.

Parameters:
opString specifying the OpenGL operation performed before this check.
Returns:
true if an error was found. false otherwise.
static bool CameraUtil::checkGlError ( const char *  op) [static]

Check for opengl error and prints the error message if an error was found.

Parameters:
opString specifying the OpenGL operation performed before this check.
Returns:
true if an error was found. false otherwise.
GLuint CameraUtil::CompileAndLinkShaderProgram ( const char *  vShaderStr,
const char *  fShaderStr 
) [static]

Compiles the given fragment and vertex shader source code and linked into an OpenGL shader program object stored in mProgramObject.

Parameters:
vShaderStrVertex Shader Source code string.
fShaderStrFragment Shader Source code string.
Returns:
returns 0 if cannot compile and link, non-zero if successfull.
static GLuint CameraUtil::CompileAndLinkShaderProgram ( const char *  vShaderStr,
const char *  fShaderStr 
) [static]

Compiles the given fragment and vertex shader source code and linked into an OpenGL shader program object stored in mProgramObject.

Parameters:
vShaderStrVertex Shader Source code string.
fShaderStrFragment Shader Source code string.
Returns:
returns 0 if cannot compile and link, non-zero if successfull.
static uint64_t CameraUtil::GetCurrentTimeus ( ) [inline, static]

Gives current time in micro seconds.

Returns:
returns current time in micro seconds.
static uint64_t CameraUtil::GetCurrentTimeus ( ) [inline, static]

Gives current time in micro seconds.

Returns:
returns current time in micro seconds.
bool CameraUtil::LoadShader ( GLenum  type,
const char *  shaderSrc,
GLuint &  shader 
) [static]

Creates shader object by loading shader source, and compiling shader.

Parameters:
typeshader type
shaderSrcshader source.
shaderi/o parameter - reference to a shader object.
Returns:
returns true if successfull false otherwise.
static bool CameraUtil::LoadShader ( GLenum  type,
const char *  shaderSrc,
GLuint &  shader 
) [static]

Creates shader object by loading shader source, and compiling shader.

Parameters:
typeshader type
shaderSrcshader source.
shaderi/o parameter - reference to a shader object.
Returns:
returns true if successfull false otherwise.

The documentation for this class was generated from the following files:
 All Data Structures Functions Variables