OpenCV  2.4.13
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

Enumerator
ARRAY_BUFFER 
TEXTURE_BUFFER 

Constructor & Destructor Documentation

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

create empty buffer

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

create buffer

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

copy from host/device memory

Member Function Documentation

void cv::GlBuffer::bind ( ) const
int cv::GlBuffer::channels ( ) const
inline
int cv::GlBuffer::cols ( ) const
inline
void cv::GlBuffer::copyFrom ( InputArray  mat)

copy from host/device memory

void cv::GlBuffer::create ( int  rows,
int  cols,
int  type,
Usage  usage 
)
void cv::GlBuffer::create ( Size  size,
int  type,
Usage  usage 
)
inline
void cv::GlBuffer::create ( int  rows,
int  cols,
int  type 
)
inline
void cv::GlBuffer::create ( Size  size,
int  type 
)
inline
int cv::GlBuffer::depth ( ) const
inline
int cv::GlBuffer::elemSize ( ) const
inline
int cv::GlBuffer::elemSize1 ( ) const
inline
bool cv::GlBuffer::empty ( ) const
inline
gpu::GpuMat cv::GlBuffer::mapDevice ( )

map to device memory

Mat cv::GlBuffer::mapHost ( )

map to host memory

void cv::GlBuffer::release ( )
int cv::GlBuffer::rows ( ) const
inline
Size cv::GlBuffer::size ( ) const
inline
int cv::GlBuffer::type ( ) const
inline
void cv::GlBuffer::unbind ( ) const
void cv::GlBuffer::unmapDevice ( )
void cv::GlBuffer::unmapHost ( )
Usage cv::GlBuffer::usage ( ) const
inline

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