コード例 #1
0
ファイル: Node.cpp プロジェクト: cinder/cinder
Node::Node( const Format &format )
	: mInitialized( false ), mEnabled( false ),	mChannelMode( format.getChannelMode() ),
		mNumChannels( 1 ), mAutoEnabled( true ), mProcessInPlace( true ), mLastProcessedFrame( numeric_limits<uint64_t>::max() )
{
	if( format.getChannels() ) {
		mNumChannels = format.getChannels();
		mChannelMode = ChannelMode::SPECIFIED;
	}

	if( ! boost::indeterminate( format.getAutoEnable() ) )
		setAutoEnabled( format.getAutoEnable() );
}
コード例 #2
0
ファイル: OutputNode.cpp プロジェクト: ARTisERR0R/Cinder
OutputNode::OutputNode( const Format &format )
	: Node( format ), mClipDetectionEnabled( true ), mClipThreshold( 2 ), mLastClip( 0 )
{
	if( boost::indeterminate( format.getAutoEnable() ) )
		setAutoEnabled( false );
}
コード例 #3
0
ファイル: OutputNode.cpp プロジェクト: marcuspingel/Cinder
OutputNode::OutputNode( const Format &format )
	: Node( format ), mClipDetectionEnabled( true ), mClipThreshold( 2 ), mLastClip( 0 )
{
	if( ! format.isAutoEnableSet() )
		setAutoEnabled( false );
}