cv::gpu::CudaMem Class Reference
#include <gpu.hpp>
List of all members.
Public Types |
enum | { ALLOC_PAGE_LOCKED = 1,
ALLOC_ZEROCOPY = 2,
ALLOC_WRITE_COMBINED = 4
} |
Public Member Functions |
| CudaMem () |
| CudaMem (const CudaMem &m) |
| CudaMem (int rows, int cols, int type, int _alloc_type=ALLOC_PAGE_LOCKED) |
| CudaMem (Size size, int type, int alloc_type=ALLOC_PAGE_LOCKED) |
| CudaMem (const Mat &m, int alloc_type=ALLOC_PAGE_LOCKED) |
| creates from cv::Mat with coping data
|
| ~CudaMem () |
CudaMem & | operator= (const CudaMem &m) |
CudaMem | clone () const |
| returns deep copy of the matrix, i.e. the data is copied
|
void | create (int rows, int cols, int type, int alloc_type=ALLOC_PAGE_LOCKED) |
| allocates new matrix data unless the matrix already has specified size and type.
|
void | create (Size size, int type, int alloc_type=ALLOC_PAGE_LOCKED) |
void | release () |
| decrements reference counter and released memory if needed.
|
Mat | createMatHeader () const |
| returns matrix header with disabled reference counting for CudaMem data.
|
| operator Mat () const |
GpuMat | createGpuMatHeader () const |
| maps host memory into device address space and returns GpuMat header for it. Throws exception if not supported by hardware.
|
| operator GpuMat () const |
bool | isContinuous () const |
size_t | elemSize () const |
size_t | elemSize1 () const |
int | type () const |
int | depth () const |
int | channels () const |
size_t | step1 () const |
Size | size () const |
bool | empty () const |
Static Public Member Functions |
static bool | canMapHostMemory () |
Public Attributes |
int | flags |
int | rows |
int | cols |
size_t | step |
uchar * | data |
int * | refcount |
uchar * | datastart |
uchar * | dataend |
int | alloc_type |
Member Enumeration Documentation
- Enumerator:
ALLOC_PAGE_LOCKED |
|
ALLOC_ZEROCOPY |
|
ALLOC_WRITE_COMBINED |
|
Constructor & Destructor Documentation
cv::gpu::CudaMem::CudaMem |
( |
|
) |
|
cv::gpu::CudaMem::CudaMem |
( |
const CudaMem & |
m |
) |
|
cv::gpu::CudaMem::CudaMem |
( |
int |
rows, |
|
|
int |
cols, |
|
|
int |
type, |
|
|
int |
_alloc_type = ALLOC_PAGE_LOCKED | |
|
) |
| | |
cv::gpu::CudaMem::CudaMem |
( |
Size |
size, |
|
|
int |
type, |
|
|
int |
alloc_type = ALLOC_PAGE_LOCKED | |
|
) |
| | |
cv::gpu::CudaMem::CudaMem |
( |
const Mat & |
m, |
|
|
int |
alloc_type = ALLOC_PAGE_LOCKED | |
|
) |
| | [explicit] |
creates from cv::Mat with coping data
cv::gpu::CudaMem::~CudaMem |
( |
|
) |
|
Member Function Documentation
CudaMem cv::gpu::CudaMem::clone |
( |
|
) |
const |
returns deep copy of the matrix, i.e. the data is copied
void cv::gpu::CudaMem::create |
( |
int |
rows, |
|
|
int |
cols, |
|
|
int |
type, |
|
|
int |
alloc_type = ALLOC_PAGE_LOCKED | |
|
) |
| | |
allocates new matrix data unless the matrix already has specified size and type.
void cv::gpu::CudaMem::create |
( |
Size |
size, |
|
|
int |
type, |
|
|
int |
alloc_type = ALLOC_PAGE_LOCKED | |
|
) |
| | |
void cv::gpu::CudaMem::release |
( |
|
) |
|
decrements reference counter and released memory if needed.
Mat cv::gpu::CudaMem::createMatHeader |
( |
|
) |
const |
returns matrix header with disabled reference counting for CudaMem data.
cv::gpu::CudaMem::operator Mat |
( |
|
) |
const |
GpuMat cv::gpu::CudaMem::createGpuMatHeader |
( |
|
) |
const |
maps host memory into device address space and returns GpuMat header for it. Throws exception if not supported by hardware.
cv::gpu::CudaMem::operator GpuMat |
( |
|
) |
const |
static bool cv::gpu::CudaMem::canMapHostMemory |
( |
|
) |
[static] |
bool cv::gpu::CudaMem::isContinuous |
( |
|
) |
const |
size_t cv::gpu::CudaMem::elemSize |
( |
|
) |
const |
size_t cv::gpu::CudaMem::elemSize1 |
( |
|
) |
const |
int cv::gpu::CudaMem::type |
( |
|
) |
const |
int cv::gpu::CudaMem::depth |
( |
|
) |
const |
int cv::gpu::CudaMem::channels |
( |
|
) |
const |
size_t cv::gpu::CudaMem::step1 |
( |
|
) |
const |
Size cv::gpu::CudaMem::size |
( |
|
) |
const |
bool cv::gpu::CudaMem::empty |
( |
|
) |
const |
Member Data Documentation
The documentation for this class was generated from the following files: