From 0dcd742a3c35527386a93e1b1ef761c2aeff8308 Mon Sep 17 00:00:00 2001 From: Roy Ben Shabat Date: Mon, 2 Mar 2020 23:30:34 +0200 Subject: Implemented Tango.RemoteDesktop. Implemented png 8 bit quantization. Implemented RasterFrame bounds clipping. Refactored VectorFrame to use indexed colors. --- .../Tango.RemoteDesktop/IFrameEncoder.cs | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Software/Visual_Studio/Tango.RemoteDesktop/IFrameEncoder.cs (limited to 'Software/Visual_Studio/Tango.RemoteDesktop/IFrameEncoder.cs') diff --git a/Software/Visual_Studio/Tango.RemoteDesktop/IFrameEncoder.cs b/Software/Visual_Studio/Tango.RemoteDesktop/IFrameEncoder.cs new file mode 100644 index 000000000..2df616ab8 --- /dev/null +++ b/Software/Visual_Studio/Tango.RemoteDesktop/IFrameEncoder.cs @@ -0,0 +1,32 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.RemoteDesktop +{ + /// + /// Represents an encoder. + /// + public interface IFrameEncoder + { + /// + /// Gets the frame instance. + /// + IFrame Frame { get; } + + /// + /// Returns a byte array containing the encoded frame. + /// + /// + byte[] ToArray(); + + /// + /// Returns a stream containing the encoded frame. + /// + /// + MemoryStream ToStream(); + } +} -- cgit v1.3.1