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() ); }
OutputNode::OutputNode( const Format &format ) : Node( format ), mClipDetectionEnabled( true ), mClipThreshold( 2 ), mLastClip( 0 ) { if( boost::indeterminate( format.getAutoEnable() ) ) setAutoEnabled( false ); }
OutputNode::OutputNode( const Format &format ) : Node( format ), mClipDetectionEnabled( true ), mClipThreshold( 2 ), mLastClip( 0 ) { if( ! format.isAutoEnableSet() ) setAutoEnabled( false ); }