public Capture(WinDVCaptureDevice device, VTR.VTR vtr, string fileName, CaptureMetadata metadata) { if (fileName == "") { throw new Exception("Filename for capture can't be empty!"); } _device = device; _vtr = vtr; _fileName = fileName; _metadata = metadata; }
public ICapture StartCapture(VTR.VTR vtr, string fileName, CaptureMetadata metadata) { lock (_syncRoot) { if (_currentCapture != null) { throw new Exception("Can't start capture, because device is already used!"); } _currentCapture = new Capture(this, vtr, fileName, metadata); _currentCapture.Start(); return(_currentCapture); } }
public MetadataEditorForm(CaptureMetadata editedStruct) { _editedStruct = editedStruct; InitializeComponent(); }