Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Tetragramm
GitHub Repository: Tetragramm/opencv
Path: blob/master/modules/core/src/bufferpool.impl.hpp
16337 views
1
// This file is part of OpenCV project.
2
// It is subject to the license terms in the LICENSE file found in the top-level directory
3
// of this distribution and at http://opencv.org/license.html.
4
//
5
// Copyright (C) 2014, Advanced Micro Devices, Inc., all rights reserved.
6
7
#ifndef __OPENCV_CORE_BUFFER_POOL_IMPL_HPP__
8
#define __OPENCV_CORE_BUFFER_POOL_IMPL_HPP__
9
10
#include "opencv2/core/bufferpool.hpp"
11
12
namespace cv {
13
14
class DummyBufferPoolController : public BufferPoolController
15
{
16
public:
17
DummyBufferPoolController() { }
18
virtual ~DummyBufferPoolController() { }
19
20
virtual size_t getReservedSize() const CV_OVERRIDE { return (size_t)-1; }
21
virtual size_t getMaxReservedSize() const CV_OVERRIDE { return (size_t)-1; }
22
virtual void setMaxReservedSize(size_t size) CV_OVERRIDE { CV_UNUSED(size); }
23
virtual void freeAllReservedBuffers() CV_OVERRIDE { }
24
};
25
26
} // namespace
27
28
#endif // __OPENCV_CORE_BUFFER_POOL_IMPL_HPP__
29
30