Renesas GR-PEACH OpenCV Development / gr-peach-opencv-project-sd-card_update

Fork of gr-peach-opencv-project-sd-card by the do

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers bufferpool.impl.hpp Source File

bufferpool.impl.hpp

00001 // This file is part of OpenCV project.
00002 // It is subject to the license terms in the LICENSE file found in the top-level directory
00003 // of this distribution and at http://opencv.org/license.html.
00004 //
00005 // Copyright (C) 2014, Advanced Micro Devices, Inc., all rights reserved.
00006 
00007 #ifndef __OPENCV_CORE_BUFFER_POOL_IMPL_HPP__
00008 #define __OPENCV_CORE_BUFFER_POOL_IMPL_HPP__
00009 
00010 #include "opencv2/core/bufferpool.hpp"
00011 
00012 namespace cv {
00013 
00014 class DummyBufferPoolController : public BufferPoolController
00015 {
00016 public:
00017     DummyBufferPoolController() { }
00018     virtual ~DummyBufferPoolController() { }
00019 
00020     virtual size_t getReservedSize() const { return (size_t)-1; }
00021     virtual size_t getMaxReservedSize() const { return (size_t)-1; }
00022     virtual void setMaxReservedSize(size_t size) { (void)size; }
00023     virtual void freeAllReservedBuffers() { }
00024 };
00025 
00026 } // namespace
00027 
00028 #endif // __OPENCV_CORE_BUFFER_POOL_IMPL_HPP__
00029