Exemplo n.º 1
0
 public NdiVideoSink(NDI.Sender ndiSender, int requestedWidth, int requestedHeight, int frameRateNumerator, int frameRateDenominator, VideoFormat format)
     : base(format)
 {
     _FrameRateNumerator   = frameRateNumerator;
     _FrameRateDenominator = frameRateDenominator;
     _RequestedHeight      = requestedHeight;
     _RequestedWidth       = requestedWidth;
     _NdiSender            = ndiSender;
     _VideoBuffer          = VideoBuffer.CreateBlack(requestedWidth, requestedHeight, format.Name);
 }
 protected void AllocateBuffer(int width, int height)
 {
     _AllocatedPixels = width * height;
     _Buffer          = VideoBuffer.CreateBlack(width, height, OutputFormat.Name);
     _BufferAllocated = true;
 }