X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fdecklink%2Fconsumer%2Fdecklink_consumer.h;h=9c0de882f05e50bc7f911f0cfa6e20d81833163a;hb=b44cd178f6aef52acd885680935f61fbf3dfb1c6;hp=8db428447237d533d84929adf273b707e788c770;hpb=fd7541b58cf40ee44725936d3eb2549bfc201909;p=casparcg diff --git a/modules/decklink/consumer/decklink_consumer.h b/modules/decklink/consumer/decklink_consumer.h index 8db428447..9c0de882f 100644 --- a/modules/decklink/consumer/decklink_consumer.h +++ b/modules/decklink/consumer/decklink_consumer.h @@ -1,57 +1,41 @@ -/* -* copyright (c) 2010 Sveriges Television AB -* -* This file is part of CasparCG. -* -* 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 . -* -*/ -#pragma once - -#include - -#include - -#include -#include - -namespace caspar { - -class decklink_consumer : public core::frame_consumer -{ -public: - - enum key - { - external_key, - internal_key, - default_key - }; - - explicit decklink_consumer(size_t device_index, bool embed_audio = false, key key = default_key); - decklink_consumer(decklink_consumer&& other); - - virtual void initialize(const core::video_format_desc& format_desc); - virtual void send(const safe_ptr&); - virtual size_t buffer_depth() const; - virtual std::wstring print() const; - -private: - struct implementation; - std::tr1::shared_ptr impl_; -}; - -safe_ptr create_decklink_consumer(const std::vector& params); - -} \ No newline at end of file +/* +* 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 +#include + +namespace caspar { namespace decklink { + +void describe_consumer(core::help_sink& sink, const core::help_repository& repo); +spl::shared_ptr create_consumer( + const std::vector& params, core::interaction_sink*); +spl::shared_ptr create_preconfigured_consumer( + const boost::property_tree::wptree& ptree, core::interaction_sink*); + +}} \ No newline at end of file