Пример #1
0
 public ClientReadThread(ClientSession client)
 {
     this.client = client;
     this.ffmpeg = client.FFMpeg;
     this.screen = client.VideoScreen;
     this.decoder = null;
     this.socket = null;
     this.stream = null;
 }
Пример #2
0
        public GRemoteDialog()
        {
            ffmpeg = new FFMpeg();
            areaDialog = new CaptureArea(this);
            sessionDialog = new SessionDialog();
            prefsDialog = new PreferencesDialog(this);

            InitializeComponent();

            videoScreen.GRemote = this;
            Text = String.Format("GRemote ({0})", Version);
        }
Пример #3
0
        public VideoDecoder(FFMpeg ffmpeg, int width, int height)
        {
            if ((width % 2) != 0 || (height % 2) != 0)
            {
                Console.WriteLine("Dimensions {0}x{1}", width, height);
                throw new Exception("Capture dimensions must be even (divisible by two)");
            }

            Console.WriteLine("Decoding buffer {0}x{1}", width, height);

            this.ffmpeg = ffmpeg;
            this.width = width;
            this.height = height;
        }
Пример #4
0
        public VideoEncoder(FFMpeg ffmpeg, int width, int height)
        {
            this.ffmpeg = ffmpeg;

            if (width <= 0 || height <= 0)
            {
                throw new Exception("Width and Height must be greater than zero");
            }

            if ((width % 2) != 0 || (height % 2) != 0)
            {
                throw new Exception("Capture dimensions must be even (divisible by two)");
            }

            Console.WriteLine("Encoding buffer {0}x{1}", width, height);

            this.width = width;
            this.height = height;
            this.lockBounds = new Rectangle(0, 0, width, height);
        }
Пример #5
0
 public ServerSession(FFMpeg ffmpeg, VideoCapture videoCapture, ServerSettings settings)
 {
     this.ffmpeg = ffmpeg;
     this.videoCapture = videoCapture;
     this.settings = settings;
 }