|
|
|
|
@ -302,8 +302,10 @@ public void run()
|
|
|
|
|
byte data[] = null;
|
|
|
|
|
BufferedImage scaledScreen = null;
|
|
|
|
|
BufferedImage screen = null;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
long t = System.nanoTime();
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/* get desktop screen and resize it */
|
|
|
|
|
screen = desktopInteract.captureScreen();
|
|
|
|
|
@ -332,10 +334,12 @@ public void run()
|
|
|
|
|
if(transferHandler != null)
|
|
|
|
|
{
|
|
|
|
|
transferHandler.transferData(this);
|
|
|
|
|
Thread.yield();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
t = System.nanoTime() - t;
|
|
|
|
|
logger.info("Desktop capture processing time: " + t);
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/* cleanup */
|
|
|
|
|
screen = null;
|
|
|
|
|
@ -344,8 +348,8 @@ public void run()
|
|
|
|
|
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
/* 500 ms */
|
|
|
|
|
Thread.sleep(500);
|
|
|
|
|
/* 100 ms */
|
|
|
|
|
Thread.sleep(100);
|
|
|
|
|
}
|
|
|
|
|
catch(InterruptedException e)
|
|
|
|
|
{
|
|
|
|
|
|