public void Dispose() { if (_formatConverter != null) { _formatConverter.Dispose(); _formatConverter = null; } }
public AVProLiveCameraDevice(string name, string guid, int index) { IsRunning = false; IsPaused = true; IsPicture = false; IsConnected = true; UpdateHotSwap = false; UpdateFrameRates = false; UpdateSettings = false; Name = name; GUID = guid; _deviceIndex = index; _modes = new List <AVProLiveCameraDeviceMode>(64); _videoInputs = new List <string>(8); _settings = new List <AVProLiveCameraSettingBase>(16); _settingsByType = new Dictionary <int, AVProLiveCameraSettingBase>(16); _formatConverter = new AVProLiveCameraFormatConverter(_deviceIndex); EnumModes(); EnumVideoInputs(); EnumVideoSettings(); }