bufferpool.hpp 885 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. #ifndef OPENCV_CORE_BUFFER_POOL_HPP
  7. #define OPENCV_CORE_BUFFER_POOL_HPP
  8. #ifdef _MSC_VER
  9. #pragma warning(push)
  10. #pragma warning(disable: 4265)
  11. #endif
  12. namespace cv
  13. {
  14. //! @addtogroup core
  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. #ifdef _MSC_VER
  29. #pragma warning(pop)
  30. #endif
  31. #endif // OPENCV_CORE_BUFFER_POOL_HPP