moved BufferPool management functions to public

This commit is contained in:
Vladislav Vinogradov
2013-10-07 18:31:33 +04:00
parent 5ea8085220
commit 3b412b51ac
4 changed files with 8 additions and 7 deletions

View File

@@ -378,12 +378,12 @@ void cv::cuda::StackAllocator::free(uchar* devPtr, int* refcount)
fastFree(refcount);
}
void cv::cuda::setBufferAllocatorUsage(bool on)
void cv::cuda::setBufferPoolUsage(bool on)
{
enableMemoryPool = on;
}
void cv::cuda::allocateMemoryPool(int deviceId, size_t stackSize, int stackCount)
void cv::cuda::setBufferPoolConfig(int deviceId, size_t stackSize, int stackCount)
{
const int currentDevice = getDevice();