//获取设备对应的能力 public DeviceCapabilityInfo[] GetVideoCapabilities(string MonikerString) { DeviceCapabilityInfo[] capInfo; VideoCaptureDevice video = new VideoCaptureDevice(MonikerString); if (video != null) { capInfo = new DeviceCapabilityInfo[video.VideoCapabilities.Length]; for (int i = 0; i < video.VideoCapabilities.Length; i++) { VideoCapabilities cap = video.VideoCapabilities[i]; capInfo[i] = new DeviceCapabilityInfo(cap.FrameSize, cap.FrameRate); } } else { capInfo = null; } return(capInfo); }
public ThreadParam(DeviceInfo deviceInfo, DeviceCapabilityInfo deviceCapability) { this.deviceInfo = deviceInfo; this.deviceCapability = deviceCapability; }