fast framebuffer read-back using CUDA More...
#include <rhr/ReadBackCuda.h>
Public Member Functions | |
ReadBackCuda () | |
~ReadBackCuda () | |
bool | init () |
bool | isInitialized () const |
bool | readpixels (GLint x, GLint y, GLint w, GLint pitch, GLint h, GLenum format, int ps, GLubyte *bits, GLint buf, GLenum type=GL_UNSIGNED_BYTE) |
bool | readpixelsyuv (GLint x, GLint y, GLint w, GLint pitch, GLint h, GLenum format, int ps, GLubyte *bits, GLint buf, int subx, int suby) |
bool | readdepthquant (GLint x, GLint y, GLint w, GLint pitch, GLint h, GLenum format, int ps, GLubyte *bits, GLint buf, GLenum type=GL_UNSIGNED_BYTE) |
Static Public Attributes | |
static bool | s_error |
whether a CUDA error occurred More... | |
fast framebuffer read-back using CUDA
vistle::ReadBackCuda::ReadBackCuda | ( | ) |
vistle::ReadBackCuda::~ReadBackCuda | ( | ) |
bool vistle::ReadBackCuda::init | ( | ) |
bool vistle::ReadBackCuda::isInitialized | ( | ) | const |
bool vistle::ReadBackCuda::readdepthquant | ( | GLint | x, |
GLint | y, | ||
GLint | w, | ||
GLint | pitch, | ||
GLint | h, | ||
GLenum | format, | ||
int | ps, | ||
GLubyte * | bits, | ||
GLint | buf, | ||
GLenum | type = GL_UNSIGNED_BYTE |
||
) |
bool vistle::ReadBackCuda::readpixels | ( | GLint | x, |
GLint | y, | ||
GLint | w, | ||
GLint | pitch, | ||
GLint | h, | ||
GLenum | format, | ||
int | ps, | ||
GLubyte * | bits, | ||
GLint | buf, | ||
GLenum | type = GL_UNSIGNED_BYTE |
||
) |
bool vistle::ReadBackCuda::readpixelsyuv | ( | GLint | x, |
GLint | y, | ||
GLint | w, | ||
GLint | pitch, | ||
GLint | h, | ||
GLenum | format, | ||
int | ps, | ||
GLubyte * | bits, | ||
GLint | buf, | ||
int | subx, | ||
int | suby | ||
) |
|
static |
whether a CUDA error occurred