public EncoderNodeDefinition CreateEncoder(EncoderSettings settings) { if (settings == null) throw new ArgumentNullException(nameof(settings)); CheckComplete(); var encoder = new EncoderNodeDefinition(this, mEncoders.Count, settings); mEncoders.Add(encoder); return encoder; }
public EncoderNodeDefinition CreateEncoder(EncoderSettings settings) { if (settings == null) { throw new ArgumentNullException(nameof(settings)); } CheckComplete(); var encoder = new EncoderNodeDefinition(this, mEncoders.Count, settings); mEncoders.Add(encoder); return(encoder); }
internal EncoderNodeDefinition(EncoderDefinition definition, int index, EncoderSettings settings) { mDefinition = definition; mIndex = index; mSettings = settings; mInputSlots = new ArchiveEncoderInputSlot[settings.GetInputSlots()]; for (int i = 0; i < mInputSlots.Length; i++) { mInputSlots[i] = new ArchiveEncoderInputSlot(this, i); } mOutputSlots = new ArchiveEncoderOutputSlot[settings.GetOutputSlots()]; for (int i = 0; i < mOutputSlots.Length; i++) { mOutputSlots[i] = new ArchiveEncoderOutputSlot(this, i); } }
internal EncoderNodeDefinition(EncoderDefinition definition, int index, EncoderSettings settings) { mDefinition = definition; mIndex = index; mSettings = settings; mInputSlots = new ArchiveEncoderInputSlot[settings.GetInputSlots()]; for (int i = 0; i < mInputSlots.Length; i++) mInputSlots[i] = new ArchiveEncoderInputSlot(this, i); mOutputSlots = new ArchiveEncoderOutputSlot[settings.GetOutputSlots()]; for (int i = 0; i < mOutputSlots.Length; i++) mOutputSlots[i] = new ArchiveEncoderOutputSlot(this, i); }