View on GitHub

Vistle

Distributed Data-parallel Scientific Visualization in VR

Public Member Functions | Static Public Attributes | List of all members
vistle::ReadBackCuda Class Reference

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...
 

Detailed Description

fast framebuffer read-back using CUDA

Constructor & Destructor Documentation

◆ ReadBackCuda()

vistle::ReadBackCuda::ReadBackCuda ( )

◆ ~ReadBackCuda()

vistle::ReadBackCuda::~ReadBackCuda ( )

Member Function Documentation

◆ init()

bool vistle::ReadBackCuda::init ( )

◆ isInitialized()

bool vistle::ReadBackCuda::isInitialized ( ) const

◆ readdepthquant()

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 
)

◆ readpixels()

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 
)

◆ readpixelsyuv()

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 
)

Member Data Documentation

◆ s_error

bool vistle::ReadBackCuda::s_error
static

whether a CUDA error occurred


The documentation for this class was generated from the following file: