コード例 #1
0
        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;
            }
        }
コード例 #2
0
        public Video()
        {
            Properties.Settings.Default.Reload();

            aviTools = new AviTools();

            camera = new VideoCamera(aviTools);
        }
コード例 #3
0
        public VideoCamera(AviTools aviTools)
        {
            this.aviTools = aviTools;

            ReloadSimulatorSettings();

            isConnected = false;
        }
コード例 #4
0
        internal VideoCamera(AviTools aviTools)
        {
            this.aviTools = aviTools;
            cameraImage   = new CameraImage();

            ReloadSimulatorSettings();

            isConnected = false;
        }
コード例 #5
0
        public Video()
        {
            aviTools = new AviTools();
            Properties.Settings.Default.Reload();

            camera = new VideoCamera(aviTools);

            TraceSwitches.DebugTracing.Level = Properties.Settings.Default.TraceLevel;
        }
コード例 #6
0
        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;
            }
        }