add cuda::HostMem::getAllocator method

it allows to use cudaHostAlloc methods for cv::Mat objects
This commit is contained in:
Vladislav Vinogradov
2014-12-19 17:59:18 +03:00
parent 2f8e1798ca
commit f054d6316a
3 changed files with 135 additions and 0 deletions

View File

@@ -344,6 +344,8 @@ class CV_EXPORTS HostMem
public:
enum AllocType { PAGE_LOCKED = 1, SHARED = 2, WRITE_COMBINED = 4 };
static MatAllocator* getAllocator(AllocType alloc_type = PAGE_LOCKED);
explicit HostMem(AllocType alloc_type = PAGE_LOCKED);
HostMem(const HostMem& m);