22struct cudaGraphicsResource;
34 bool isInitialized()
const;
36 bool readpixels(GLint x, GLint y, GLint w, GLint pitch, GLint h, GLenum format,
int ps, GLubyte *bits, GLint buf,
37 GLenum type = GL_UNSIGNED_BYTE);
38 bool readpixelsyuv(GLint x, GLint y, GLint w, GLint pitch, GLint h, GLenum format,
int ps, GLubyte *bits, GLint buf,
40 bool readdepthquant(GLint x, GLint y, GLint w, GLint pitch, GLint h, GLenum format,
int ps, GLubyte *bits,
41 GLint buf, GLenum type = GL_UNSIGNED_BYTE);
45 bool initPbo(
size_t raw,
size_t compressed);
46 bool pbo2cuda(GLint x, GLint y, GLint w, GLint pitch, GLint h, GLenum format,
int ps, GLint buf, GLenum type,
49 cudaGraphicsResource *imgRes;
70 GLint buf, GLenum type)
75 GLint buf,
int subx,
int suby)
80 GLint buf, GLenum type)
unsigned char uchar
Definition: ReadBackCuda.h:22
fast framebuffer read-back using CUDA
Definition: ReadBackCuda.h:28
bool init()
Definition: ReadBackCuda.h:61
bool isInitialized() const
Definition: ReadBackCuda.h:65
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)
Definition: ReadBackCuda.h:69
ReadBackCuda()
Definition: ReadBackCuda.h:57
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)
Definition: ReadBackCuda.h:79
bool readpixelsyuv(GLint x, GLint y, GLint w, GLint pitch, GLint h, GLenum format, int ps, GLubyte *bits, GLint buf, int subx, int suby)
Definition: ReadBackCuda.h:74
static bool s_error
whether a CUDA error occurred
Definition: ReadBackCuda.h:43
~ReadBackCuda()
Definition: ReadBackCuda.h:59
unsigned char uchar
Definition: depthquant.cpp:16
#define V_RHREXPORT
Definition: export.h:9