Improved algorithm of detecting rectangular video area. Old algorithm used the external boundary of the candidate region, while new algoritm uses the biggest rectangular part of the candidate region.


git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2341 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/unix/x0vncserver/PollingManager.h b/unix/x0vncserver/PollingManager.h
index 64a18ae..58c16f9 100644
--- a/unix/x0vncserver/PollingManager.h
+++ b/unix/x0vncserver/PollingManager.h
@@ -122,6 +122,11 @@
 
   void getVideoAreaRect(Rect *result);
 
+  // Functions called by getVideoAreaRect().
+  void constructLengthMatrices(int **pmx_h, int **pmx_v);
+  void destroyLengthMatrices(int *mx_h, int *mx_v);
+  void findMaxLocalRect(Rect *r, int *mx_h, int *mx_v);
+
   // Additional images used in polling algorithms.
   Image *m_rowImage;            // One row of the framebuffer
   Image *m_tileImage;           // One tile (32x32 or less)