コード例 #1
0
 public void Dispose()
 {
     if (_formatConverter != null)
     {
         _formatConverter.Dispose();
         _formatConverter = null;
     }
 }
コード例 #2
0
 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();
 }