OpenCV  2.4.13.2
Open Source Computer Vision
cv::GlBuffer Class Reference

Smart pointer for OpenGL buffer memory with reference counting. More...

#include <opengl_interop_deprecated.hpp>

Public Types

enum  Usage { ARRAY_BUFFER = 0x8892, TEXTURE_BUFFER = 0x88EC }
 

Public Member Functions

 GlBuffer (Usage usage)
 create empty buffer More...
 
 GlBuffer (int rows, int cols, int type, Usage usage)
 create buffer More...
 
 GlBuffer (Size size, int type, Usage usage)
 
 GlBuffer (InputArray mat, Usage usage)
 copy from host/device memory More...
 
void create (int rows, int cols, int type, Usage usage)
 
void create (Size size, int type, Usage usage)
 
void create (int rows, int cols, int type)
 
void create (Size size, int type)
 
void release ()
 
void copyFrom (InputArray mat)
 copy from host/device memory More...
 
void bind () const
 
void unbind () const
 
Mat mapHost ()
 map to host memory More...
 
void unmapHost ()
 
gpu::GpuMat mapDevice ()
 map to device memory More...
 
void unmapDevice ()
 
int rows () const
 
int cols () const
 
Size size () const
 
bool empty () const
 
int type () const
 
int depth () const
 
int channels () const
 
int elemSize () const
 
int elemSize1 () const
 
Usage usage () const
 

Detailed Description

Smart pointer for OpenGL buffer memory with reference counting.

Member Enumeration Documentation

§ Usage

Enumerator
ARRAY_BUFFER 
TEXTURE_BUFFER 

Constructor & Destructor Documentation

§ GlBuffer() [1/4]

cv::GlBuffer::GlBuffer ( Usage  usage)
explicit

create empty buffer

§ GlBuffer() [2/4]

cv::GlBuffer::GlBuffer ( int  rows,
int  cols,
int  type,
Usage  usage 
)

create buffer

§ GlBuffer() [3/4]

cv::GlBuffer::GlBuffer ( Size  size,
int  type,
Usage  usage 
)

§ GlBuffer() [4/4]

cv::GlBuffer::GlBuffer ( InputArray  mat,
Usage  usage 
)

copy from host/device memory

Member Function Documentation

§ bind()

void cv::GlBuffer::bind ( ) const

§ channels()

int cv::GlBuffer::channels ( ) const
inline

§ cols()

int cv::GlBuffer::cols ( ) const
inline

§ copyFrom()

void cv::GlBuffer::copyFrom ( InputArray  mat)

copy from host/device memory

§ create() [1/4]

void cv::GlBuffer::create ( int  rows,
int  cols,
int  type,
Usage  usage 
)

§ create() [2/4]

void cv::GlBuffer::create ( Size  size,
int  type,
Usage  usage 
)
inline

§ create() [3/4]

void cv::GlBuffer::create ( int  rows,
int  cols,
int  type 
)
inline

§ create() [4/4]

void cv::GlBuffer::create ( Size  size,
int  type 
)
inline

§ depth()

int cv::GlBuffer::depth ( ) const
inline

§ elemSize()

int cv::GlBuffer::elemSize ( ) const
inline

§ elemSize1()

int cv::GlBuffer::elemSize1 ( ) const
inline

§ empty()

bool cv::GlBuffer::empty ( ) const
inline

§ mapDevice()

gpu::GpuMat cv::GlBuffer::mapDevice ( )

map to device memory

§ mapHost()

Mat cv::GlBuffer::mapHost ( )

map to host memory

§ release()

void cv::GlBuffer::release ( )

§ rows()

int cv::GlBuffer::rows ( ) const
inline

§ size()

Size cv::GlBuffer::size ( ) const
inline

§ type()

int cv::GlBuffer::type ( ) const
inline

§ unbind()

void cv::GlBuffer::unbind ( ) const

§ unmapDevice()

void cv::GlBuffer::unmapDevice ( )

§ unmapHost()

void cv::GlBuffer::unmapHost ( )

§ usage()

Usage cv::GlBuffer::usage ( ) const
inline

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