public VideoSourceInfo(FilterInfo filterInfo) { this.DeviceType = AppConstants.WEB_CAMERA; this.DataType = videoDataType.camera; this.OrientationType = 2; this.Name = filterInfo.Name; this.Key = filterInfo.MonikerString; this.Width = 640; this.Height = 480; this.X = VideoSourceInfo.X_CROP; this.Y = 0; }
public VideoSourceInfo(string sourceName, int SourceID) { this.DeviceType = AppConstants.APP_SCREEN; this.DataType = videoDataType.screen; this.OrientationType = 0; this.Name = sourceName; this.Key = SourceID.ToString(); this.Width = 640; this.Height = 480; this.X = 0; this.Y = 0; }
public VideoSourceInfo() { this.DeviceType = AppConstants.MONITOR_SCREEN; this.DataType = videoDataType.screen; this.OrientationType = 0; this.Name = "Monitor Screen"; this.Key = "-999"; this.Width = 640; int th = (int)((SystemParameters.VirtualScreenHeight * 640) / SystemParameters.VirtualScreenWidth); this.Height = th - (th % 2); this.X = 0; this.Y = 0; }