• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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:
DummyBufferPoolController()17     DummyBufferPoolController() { }
~DummyBufferPoolController()18     virtual ~DummyBufferPoolController() { }
19 
getReservedSize() const20     virtual size_t getReservedSize() const { return (size_t)-1; }
getMaxReservedSize() const21     virtual size_t getMaxReservedSize() const { return (size_t)-1; }
setMaxReservedSize(size_t size)22     virtual void setMaxReservedSize(size_t size) { (void)size; }
freeAllReservedBuffers()23     virtual void freeAllReservedBuffers() { }
24 };
25 
26 } // namespace
27 
28 #endif // __OPENCV_CORE_BUFFER_POOL_IMPL_HPP__
29