Public Member Functions | Static Public Member Functions | Protected Attributes | Friends
CuTexImage Class Reference

#include <CuTexImage.h>

List of all members.

Public Member Functions

void BindTexture (textureReference &texRef)
void BindTexture2D (textureReference &texRef)
void CopyFromHost (const void *buf)
void CopyFromPBO (int width, int height, GLuint pbo)
void CopyToHost (void *buf)
void CopyToHost (void *buf, int stream)
int CopyToPBO (GLuint pbo)
void CopyToTexture2D ()
 CuTexImage ()
 CuTexImage (int width, int height, int nchannel, GLuint pbo)
int GetDataSize ()
int GetImgHeight ()
int GetImgWidth ()
virtual void InitTexture (int width, int height, int nchannel=1)
void InitTexture2D ()
virtual void SetImageSize (int width, int height)
virtual ~CuTexImage ()

Static Public Member Functions

static int DebugCopyToTexture2D ()

Protected Attributes

void * _cuData
cudaArray * _cuData2D
GLuint _fromPBO
int _imgHeight
int _imgWidth
int _numBytes
int _numChannel
int _texHeight
int _texWidth

Friends

class ProgramCU
class PyramidCU

Detailed Description

Definition at line 35 of file CuTexImage.h.


Constructor & Destructor Documentation

CuTexImage::CuTexImage ( int  width,
int  height,
int  nchannel,
GLuint  pbo 
)
virtual CuTexImage::~CuTexImage ( ) [virtual]

Member Function Documentation

void CuTexImage::BindTexture ( textureReference &  texRef) [inline]
void CuTexImage::BindTexture2D ( textureReference &  texRef) [inline]
void CuTexImage::CopyFromHost ( const void *  buf)
void CuTexImage::CopyFromPBO ( int  width,
int  height,
GLuint  pbo 
)
void CuTexImage::CopyToHost ( void *  buf)
void CuTexImage::CopyToHost ( void *  buf,
int  stream 
)
int CuTexImage::CopyToPBO ( GLuint  pbo)
static int CuTexImage::DebugCopyToTexture2D ( ) [static]
int CuTexImage::GetDataSize ( ) [inline]

Definition at line 63 of file CuTexImage.h.

int CuTexImage::GetImgHeight ( ) [inline]

Definition at line 62 of file CuTexImage.h.

int CuTexImage::GetImgWidth ( ) [inline]

Definition at line 61 of file CuTexImage.h.

virtual void CuTexImage::InitTexture ( int  width,
int  height,
int  nchannel = 1 
) [virtual]
virtual void CuTexImage::SetImageSize ( int  width,
int  height 
) [virtual]

Friends And Related Function Documentation

friend class ProgramCU [friend]

Definition at line 68 of file CuTexImage.h.

friend class PyramidCU [friend]

Definition at line 69 of file CuTexImage.h.


Member Data Documentation

void* CuTexImage::_cuData [protected]

Definition at line 38 of file CuTexImage.h.

cudaArray* CuTexImage::_cuData2D [protected]

Definition at line 39 of file CuTexImage.h.

GLuint CuTexImage::_fromPBO [protected]

Definition at line 46 of file CuTexImage.h.

int CuTexImage::_imgHeight [protected]

Definition at line 43 of file CuTexImage.h.

int CuTexImage::_imgWidth [protected]

Definition at line 42 of file CuTexImage.h.

int CuTexImage::_numBytes [protected]

Definition at line 41 of file CuTexImage.h.

int CuTexImage::_numChannel [protected]

Definition at line 40 of file CuTexImage.h.

int CuTexImage::_texHeight [protected]

Definition at line 45 of file CuTexImage.h.

int CuTexImage::_texWidth [protected]

Definition at line 44 of file CuTexImage.h.


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


siftgpu
Author(s): Changchang Wu (library), Bence Magyar (ROS wrapper)
autogenerated on Thu Jan 2 2014 11:38:01