X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=core%2Fvideo_channel.h;h=b3ac548a7ff56b3107962e816ec4c4c6917d1b87;hb=829fcd07d635222421a83387e279c50bd9d81320;hp=0075c09bad6db7ec9530988ef227d6e92a84b6fa;hpb=435cf4b385c5099270bee44f89c3e2615af30521;p=casparcg diff --git a/core/video_channel.h b/core/video_channel.h index 0075c09ba..b3ac548a7 100644 --- a/core/video_channel.h +++ b/core/video_channel.h @@ -1,81 +1,80 @@ -/* -* Copyright (c) 2011 Sveriges Television AB -* -* This file is part of CasparCG (www.casparcg.com). -* -* CasparCG is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 3 of the License, or -* (at your option) any later version. -* -* CasparCG is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with CasparCG. If not, see . -* -* Author: Robert Nagy, ronag89@gmail.com -*/ - -#pragma once - -#include -#include -#include - -#include "monitor/monitor.h" - -#include - -FORWARD3(caspar, core, ogl, class accelerator); -FORWARD2(caspar, core, class stage); -FORWARD2(caspar, core, class mixer); -FORWARD2(caspar, core, class output); -FORWARD2(caspar, core, class image_mixer); -FORWARD2(caspar, core, struct video_format_desc); -FORWARD2(caspar, core, class frame_factory); - -namespace caspar { namespace core { - -class video_channel sealed : public monitor::observable -{ - video_channel(const video_channel&); - video_channel& operator=(const video_channel&); -public: - - // Static Members - - // Constructors - - explicit video_channel(int index, const video_format_desc& format_desc, std::unique_ptr image_mixer); - ~video_channel(); - // Methods - - // monitor::observable - - virtual void subscribe(const monitor::observable::observer_ptr& o) override; - virtual void unsubscribe(const monitor::observable::observer_ptr& o) override; - - // Properties - - const core::stage& stage() const; - core::stage& stage(); - const core::mixer& mixer() const; - core::mixer& mixer(); - const core::output& output() const; - core::output& output(); - - core::video_format_desc video_format_desc() const; - void video_format_desc(const core::video_format_desc& format_desc); - - spl::shared_ptr frame_factory(); - - boost::property_tree::wptree info() const; -private: - struct impl; - spl::unique_ptr impl_; -}; - +/* +* Copyright (c) 2011 Sveriges Television AB +* +* This file is part of CasparCG (www.casparcg.com). +* +* CasparCG is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* CasparCG is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with CasparCG. If not, see . +* +* Author: Robert Nagy, ronag89@gmail.com +*/ + +#pragma once + +#include +#include + +#include "fwd.h" + +#include "monitor/monitor.h" + +#include + +namespace caspar { namespace core { + +class video_channel final +{ + video_channel(const video_channel&); + video_channel& operator=(const video_channel&); +public: + + // Static Members + + // Constructors + + explicit video_channel( + int index, + const video_format_desc& format_desc, + const audio_channel_layout& channel_layout, + std::unique_ptr image_mixer); + ~video_channel(); + + // Methods + + monitor::subject& monitor_output(); + + // Properties + + const core::stage& stage() const; + core::stage& stage(); + const core::mixer& mixer() const; + core::mixer& mixer(); + const core::output& output() const; + core::output& output(); + + core::video_format_desc video_format_desc() const; + void video_format_desc(const core::video_format_desc& format_desc); + core::audio_channel_layout audio_channel_layout() const; + void audio_channel_layout(const core::audio_channel_layout& channel_layout); + + spl::shared_ptr frame_factory(); + + boost::property_tree::wptree info() const; + boost::property_tree::wptree delay_info() const; + int index() const; +private: + struct impl; + spl::unique_ptr impl_; +}; + }} \ No newline at end of file