From 04aa25cfb9a35d638a521ac1579fb48d64fb778a Mon Sep 17 00:00:00 2001 From: ronag Date: Mon, 21 Nov 2011 08:27:14 +0000 Subject: [PATCH] git-svn-id: https://casparcg.svn.sourceforge.net/svnroot/casparcg/server/branches/2.0.2@1609 362d55ac-95cf-4e76-9f9a-cbaa9c17b72d --- core/video_channel_context.cpp | 57 ---------------------------------- core/video_channel_context.h | 39 ----------------------- 2 files changed, 96 deletions(-) delete mode 100644 core/video_channel_context.cpp delete mode 100644 core/video_channel_context.h diff --git a/core/video_channel_context.cpp b/core/video_channel_context.cpp deleted file mode 100644 index 5294da7c8..000000000 --- a/core/video_channel_context.cpp +++ /dev/null @@ -1,57 +0,0 @@ -#include "stdAfx.h" - -#include "video_channel_context.h" - -namespace caspar { namespace core { - -struct video_channel_context::implementation -{ - mutable tbb::spin_rw_mutex mutex_; - const int index_; - video_format_desc format_desc_; - executor execution_; - safe_ptr ogl_; - - implementation(int index, const safe_ptr& ogl, const video_format_desc& format_desc) - : index_(index) - , format_desc_(format_desc) - , execution_(print() + L"/execution") - , ogl_(ogl) - { - execution_.set_priority_class(above_normal_priority_class); - } - - std::wstring print() const - { - return L"video_channel[" + boost::lexical_cast(index_+1) + L"|" + format_desc_.name + L"]"; - } -}; - -video_channel_context::video_channel_context(int index, const safe_ptr& ogl, const video_format_desc& format_desc) - : impl_(new implementation(index, ogl, format_desc)) -{ -} - -const int video_channel_context::index() const {return impl_->index_;} - -video_format_desc video_channel_context::get_format_desc() -{ - tbb::spin_rw_mutex::scoped_lock lock(impl_->mutex_, false); - return impl_->format_desc_; -} - -void video_channel_context::set_format_desc(const video_format_desc& format_desc) -{ - tbb::spin_rw_mutex::scoped_lock lock(impl_->mutex_, true); - impl_->format_desc_ = format_desc; -} - -executor& video_channel_context::execution() {return impl_->execution_;} -safe_ptr video_channel_context::ogl() { return impl_->ogl_;} - -std::wstring video_channel_context::print() const -{ - return impl_->print(); -} - -}} \ No newline at end of file diff --git a/core/video_channel_context.h b/core/video_channel_context.h deleted file mode 100644 index 39b27fa8b..000000000 --- a/core/video_channel_context.h +++ /dev/null @@ -1,39 +0,0 @@ -#pragma once - -#include - -#include - -#include - -#include -#include - -#include - -namespace caspar { - -class executor; - -namespace core { - -class ogl_device; - -class video_channel_context -{ - -public: - video_channel_context(int index, const safe_ptr& ogl, const video_format_desc& format_desc); - - const int index() const; - video_format_desc get_format_desc(); - void set_format_desc(const video_format_desc& format_desc); - executor& execution(); - safe_ptr ogl(); - std::wstring print() const; -private: - struct implementation; - std::shared_ptr impl_; -}; - -}} \ No newline at end of file -- 2.39.5