internal BitmapVideoPlayer(AviTools aviTools, bool useEmbeddedVideo, string bitmapFilesLocation, int playbackBufferSize) { this.aviTools = aviTools; this.cameraImage = new CameraImage(); this.playbackBufferSize = playbackBufferSize; integration = 1; if (!imagesBuffered) { UIThreadCaller.Invoke((frm, prms) => BufferVideoInternal(frm, prms), useEmbeddedVideo, bitmapFilesLocation); imagesBuffered = true; } if (errorBitmap != null) { width = errorBitmap.Width; height = errorBitmap.Height; } else if (allImagesPixels.Count > 0) { width = bufferedImageWidth; height = bufferedImageHeight; } else { width = 0; height = 0; } }
public Video() { Properties.Settings.Default.Reload(); aviTools = new AviTools(); camera = new VideoCamera(aviTools); }
public VideoCamera(AviTools aviTools) { this.aviTools = aviTools; ReloadSimulatorSettings(); isConnected = false; }
internal VideoCamera(AviTools aviTools) { this.aviTools = aviTools; cameraImage = new CameraImage(); ReloadSimulatorSettings(); isConnected = false; }
public Video() { aviTools = new AviTools(); Properties.Settings.Default.Reload(); camera = new VideoCamera(aviTools); TraceSwitches.DebugTracing.Level = Properties.Settings.Default.TraceLevel; }
public BitmapVideoPlayer(AviTools aviTools, bool useEmbeddedVideo, string bitmapFilesLocation, int playbackBufferSize) { this.aviTools = aviTools; this.cameraImage = new CameraImage(); this.playbackBufferSize = playbackBufferSize; integration = 1; if (!imagesBuffered) { if (useEmbeddedVideo) { BufferEmbeddedOccultationVideo(); } else { BufferVideoFrames(bitmapFilesLocation); } imagesBuffered = true; } if (errorBitmap != null) { width = errorBitmap.Width; height = errorBitmap.Height; } else if (allImagesPixels.Count > 0) { width = bufferedImageWidth; height = bufferedImageHeight; } else { width = 0; height = 0; } }