aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.RemoteDesktop/ScreenCaptureEngine.cs
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2020-05-20 06:24:09 +0300
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2020-05-20 06:24:09 +0300
commited0c073eae5358b509c68e3051c489bd25be30c9 (patch)
tree2dd9f25649fbb6357791b39f5c3cedb415f8f2c9 /Software/Visual_Studio/Tango.RemoteDesktop/ScreenCaptureEngine.cs
parentb40bfa0f652ec194f2c4d05ae02f0a9c420b50fc (diff)
downloadTango-ed0c073eae5358b509c68e3051c489bd25be30c9.tar.gz
Tango-ed0c073eae5358b509c68e3051c489bd25be30c9.zip
Several fixes and improvements after first real test against PPC.
Diffstat (limited to 'Software/Visual_Studio/Tango.RemoteDesktop/ScreenCaptureEngine.cs')
-rw-r--r--Software/Visual_Studio/Tango.RemoteDesktop/ScreenCaptureEngine.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/Software/Visual_Studio/Tango.RemoteDesktop/ScreenCaptureEngine.cs b/Software/Visual_Studio/Tango.RemoteDesktop/ScreenCaptureEngine.cs
index 527b54b7d..4efb1817d 100644
--- a/Software/Visual_Studio/Tango.RemoteDesktop/ScreenCaptureEngine.cs
+++ b/Software/Visual_Studio/Tango.RemoteDesktop/ScreenCaptureEngine.cs
@@ -6,6 +6,7 @@ using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
+using Tango.Core;
using Tango.RemoteDesktop.Utils;
namespace Tango.RemoteDesktop
@@ -16,7 +17,7 @@ namespace Tango.RemoteDesktop
/// </summary>
/// <typeparam name="TFrame">The type of the frame.</typeparam>
/// <seealso cref="Tango.RemoteDesktop.IScreenCaptureEngine{TFrame}" />
- public class ScreenCaptureEngine<TFrame> : IScreenCaptureEngine<TFrame> where TFrame : class, IFrame
+ public class ScreenCaptureEngine<TFrame> : ExtendedObject, IScreenCaptureEngine<TFrame> where TFrame : class, IFrame
{
private Thread _captureThread;
private Bitmap _previousBitmap;
@@ -131,6 +132,8 @@ namespace Tango.RemoteDesktop
{
Stopwatch watch = new Stopwatch();
+ LogManager.Log($"Screen capture engine started with the following definitions:\nCapture Region: {CaptureRegion}\nCapture Method: {CaptureMethod.GetType().Name}\nFrame Rate: {FrameRate}\nComparer Enabled: {EnableComparer}");
+
while (IsStarted)
{
watch.Restart();
@@ -187,6 +190,8 @@ namespace Tango.RemoteDesktop
}
_previousBitmap = null;
+
+ LogManager.Log("Screen capture engine stopped.");
}
private void OnFrameReceived(Bitmap currentBitmap, TFrame diffFrame, uint differenceCount)