本文整理汇总了C++中safe_ptr::monitor_output方法的典型用法代码示例。如果您正苦于以下问题:C++ safe_ptr::monitor_output方法的具体用法?C++ safe_ptr::monitor_output怎么用?C++ safe_ptr::monitor_output使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类safe_ptr
的用法示例。
在下文中一共展示了safe_ptr::monitor_output方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: separated_producer
explicit separated_producer(const safe_ptr<frame_producer>& fill, const safe_ptr<frame_producer>& key)
: monitor_subject_("")
, key_monitor_subject_("/keyer")
, fill_producer_(fill)
, key_producer_(key)
, fill_(core::basic_frame::late())
, key_(core::basic_frame::late())
, last_frame_(core::basic_frame::empty())
{
key_monitor_subject_.link_target(&monitor_subject_);
key_producer_->monitor_output().link_target(&key_monitor_subject_);
fill_producer_->monitor_output().link_target(&monitor_subject_);
}
示例2: transition_producer
explicit transition_producer(const field_mode::type& mode, const safe_ptr<frame_producer>& dest, const transition_info& info)
: mode_(mode)
, current_frame_(0)
, info_(info)
, dest_producer_(dest)
, source_producer_(frame_producer::empty())
, last_frame_(basic_frame::empty())
{
dest->monitor_output().link_target(&monitor_subject_);
}
示例3: print
implementation(video_channel& self, int index, const video_format_desc& format_desc, const safe_ptr<ogl_device>& ogl, const channel_layout& audio_channel_layout)
: self_(self)
, index_(index)
, format_desc_(format_desc)
, ogl_(ogl)
, output_(new caspar::core::output(graph_, format_desc, audio_channel_layout, index))
, mixer_(new caspar::core::mixer(graph_, output_, format_desc, ogl, audio_channel_layout, index))
, stage_(new caspar::core::stage(graph_, mixer_, format_desc, index))
, monitor_subject_(make_safe<monitor::subject>("/channel/" + boost::lexical_cast<std::string>(index)))
{
graph_->set_text(print());
diagnostics::register_graph(graph_);
for(int n = 0; n < std::max(1, env::properties().get(L"configuration.pipeline-tokens", 2)); ++n)
stage_->spawn_token();
stage_->monitor_output().attach_parent(monitor_subject_);
mixer_->monitor_output().attach_parent(monitor_subject_);
output_->monitor_output().attach_parent(monitor_subject_);
CASPAR_LOG(info) << print() << " Successfully Initialized.";
}
示例4: set_foreground
void set_foreground(safe_ptr<core::frame_producer> producer)
{
foreground_->monitor_output().unlink_target(&monitor_subject_);
foreground_ = producer;
foreground_->monitor_output().link_target(&monitor_subject_);
}