Home | History | Annotate | Download | only in core
      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_HPP__
      8 #define __OPENCV_CORE_BUFFER_POOL_HPP__
      9 
     10 namespace cv
     11 {
     12 
     13 //! @addtogroup core
     14 //! @{
     15 
     16 class BufferPoolController
     17 {
     18 protected:
     19     ~BufferPoolController() { }
     20 public:
     21     virtual size_t getReservedSize() const = 0;
     22     virtual size_t getMaxReservedSize() const = 0;
     23     virtual void setMaxReservedSize(size_t size) = 0;
     24     virtual void freeAllReservedBuffers() = 0;
     25 };
     26 
     27 //! @}
     28 
     29 }
     30 
     31 #endif // __OPENCV_CORE_BUFFER_POOL_HPP__
     32