1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 07:43:03 +04:00

core/ocl: OpenCLBufferPool

This commit is contained in:
Alexander Alekhin
2014-01-16 18:30:39 +04:00
parent 22146e4b18
commit 485635310c
10 changed files with 479 additions and 14 deletions
+8
View File
@@ -43,6 +43,8 @@
#include "precomp.hpp"
#include "opencl_kernels.hpp"
#include "bufferpool.impl.hpp"
/****************************************************************************************\
* [scaled] Identity matrix initialization *
\****************************************************************************************/
@@ -157,6 +159,12 @@ void MatAllocator::copy(UMatData* usrc, UMatData* udst, int dims, const size_t s
memcpy(ptrs[1], ptrs[0], planesz);
}
BufferPoolController* MatAllocator::getBufferPoolController() const
{
static DummyBufferPoolController dummy;
return &dummy;
}
class StdMatAllocator : public MatAllocator
{
public: