Пример #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 VideoDecoderReadThread(VideoDecoder decoder, Process process, BufferPool decodedBuffers)
 {
     this.decoder = decoder;
     this.screen = decoder.VideoPreview;
     this.decodedBuffers = decodedBuffers;
     this.lockBounds = new Rectangle(0, 0, decoder.VideoWidth, decoder.VideoHeight);
     this.decodeBuffer = new Bitmap(decoder.VideoWidth, decoder.VideoHeight, PixelFormat.Format24bppRgb);
     this.stream = process.StandardOutput.BaseStream;
     this.frameSize = decoder.VideoWidth * decoder.VideoHeight * 3;
     this.readBuffer = new byte[frameSize];
     this.pos = 0;
 }
Пример #3
0
 public ClientSession(GRemoteDialog gRemote, String address, int port)
 {
     this.gRemote = gRemote;
     this.address = address;
     this.port = port;
     this.screen = gRemote.VideoPreview;
 }