\r
#ifndef DISABLE_BLUEFISH\r
\r
-#include "fwd.h"\r
#include "bluefish_consumer.h"\r
#include "util.h"\r
-#include "exception.h"\r
#include "memory.h"\r
\r
#include "../../processor/read_frame.h"\r
#include <BlueVelvet4.h>\r
#include <BlueHancUtils.h>\r
\r
+#include <memory>\r
+\r
namespace caspar { namespace core { namespace bluefish {\r
\r
struct consumer::implementation : boost::noncopyable\r
boost::unique_future<void> active_;\r
executor executor_;\r
\r
- BlueVelvetPtr sdk_;\r
+ std::shared_ptr<CBlueVelvet4> sdk_;\r
\r
unsigned int device_index_;\r
video_format_desc format_desc_;\r
\r
namespace caspar { namespace core { namespace bluefish {\r
\r
+struct bluefish_exception : public caspar_exception{};\r
+\r
class consumer : public frame_consumer\r
{\r
public:\r
+++ /dev/null
-/*\r
-* copyright (c) 2010 Sveriges Television AB <info@casparcg.com>\r
-*\r
-* This file is part of CasparCG.\r
-*\r
-* CasparCG is free software: you can redistribute it and/or modify\r
-* it under the terms of the GNU General Public License as published by\r
-* the Free Software Foundation, either version 3 of the License, or\r
-* (at your option) any later version.\r
-*\r
-* CasparCG is distributed in the hope that it will be useful,\r
-* but WITHOUT ANY WARRANTY; without even the implied warranty of\r
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
-* GNU General Public License for more details.\r
-\r
-* You should have received a copy of the GNU General Public License\r
-* along with CasparCG. If not, see <http://www.gnu.org/licenses/>.\r
-*\r
-*/\r
-#pragma once\r
-\r
-#include "../../../common/exception/exceptions.h"\r
-\r
-namespace caspar { namespace core { namespace bluefish {\r
-\r
-struct bluefish_exception : public caspar_exception{};\r
-\r
-}}}
\ No newline at end of file
+++ /dev/null
-#pragma once\r
-\r
-class CBlueVelvet4;\r
-\r
-namespace caspar { namespace core { namespace bluefish {\r
-\r
-typedef std::tr1::shared_ptr<CBlueVelvet4> BlueVelvetPtr;\r
-\r
-class consumer;\r
-typedef std::shared_ptr<consumer> consumer_ptr;\r
-\r
-}}}
\ No newline at end of file
\r
#include <BlueVelvet4.h>\r
#include "../../format/video_format.h"\r
-#include "exception.h"\r
\r
#include <tbb/mutex.h>\r
\r
workingSetMaxSize += size;\r
\r
if(!::SetProcessWorkingSetSize(::GetCurrentProcess(), workingSetMinSize, workingSetMaxSize)) \r
- BOOST_THROW_EXCEPTION(bluefish_exception() << msg_info("Failed set workingset.")); \r
+ BOOST_THROW_EXCEPTION(caspar_exception() << msg_info("Failed set workingset.")); \r
}\r
}\r
\r
workingSetMaxSize += static_cast<SIZE_T>(static_cast<int>(workingSetMaxSize) - static_cast<int>(size));\r
\r
if(!::SetProcessWorkingSetSize(::GetCurrentProcess(), workingSetMinSize, workingSetMaxSize)) \r
- BOOST_THROW_EXCEPTION(bluefish_exception() << msg_info("Failed set workingset.")); \r
+ BOOST_THROW_EXCEPTION(caspar_exception() << msg_info("Failed set workingset.")); \r
}\r
}\r
\r
</ItemDefinitionGroup>\r
<ItemGroup>\r
<ClInclude Include="channel.h" />\r
- <ClInclude Include="consumer\bluefish\exception.h" />\r
- <ClInclude Include="consumer\bluefish\fwd.h" />\r
<ClInclude Include="consumer\bluefish\memory.h" />\r
<ClInclude Include="consumer\bluefish\bluefish_consumer.h" />\r
<ClInclude Include="consumer\bluefish\util.h" />\r
<ClInclude Include="consumer\bluefish\util.h">\r
<Filter>Source\channel\consumer\bluefish</Filter>\r
</ClInclude>\r
- <ClInclude Include="consumer\bluefish\exception.h">\r
- <Filter>Source\channel\consumer\bluefish</Filter>\r
- </ClInclude>\r
<ClInclude Include="consumer\bluefish\memory.h">\r
<Filter>Source\channel\consumer\bluefish</Filter>\r
</ClInclude>\r
- <ClInclude Include="consumer\bluefish\fwd.h">\r
- <Filter>Source\channel\consumer\bluefish</Filter>\r
- </ClInclude>\r
<ClInclude Include="consumer\ogl\ogl_consumer.h">\r
<Filter>Source\channel\consumer\ogl</Filter>\r
</ClInclude>\r