aboutsummaryrefslogtreecommitdiffstats
path: root/unix/x0vncserver/PollingManager.h
Commit message (Collapse)AuthorAgeFilesLines
* Using namespace rfb in header files is a bad ideaPeter Åstrand (astrand)2017-11-071-5/+3
|
* Minor cleanup: declaring PollingManager::sendChanges() as const.Constantin Kaplinsky2008-06-041-1/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2579 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Refactoring: now PollingManager is owned by XPixelBuffer. No other classesConstantin Kaplinsky2008-06-041-10/+1
| | | | | | | know about PollingManager. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2576 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Code refactoring: PollingManager should not know anything aboutConstantin Kaplinsky2008-06-041-2/+1
| | | | | | | XPixelBuffer. This commit partially reverts the changes from r2567. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2575 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Code refactoring: passing VNCServer pointer to PollingManager methodsConstantin Kaplinsky2008-06-031-6/+3
| | | | | | | instead of maintaining it as a member variable. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2569 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Grabbing the screen moved from PollingManager to XPixelBuffer.Constantin Kaplinsky2008-06-021-11/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2568 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Code refactoring - PollingManager's constructor is given an XPixelBuffer*Constantin Kaplinsky2008-05-301-1/+2
| | | | | | | instead of an Image*. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2567 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Removed the code for automatic video detection. It interfered with videoConstantin Kaplinsky2008-05-301-17/+1
| | | | | | | | selection feature of the Java viewer, and did not look good with respect to the impending polling improvements. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2566 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Minor refactoring: removed getFullRow() function, added its code to getRow().Constantin Kaplinsky2008-01-191-6/+8
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2414 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Minor code enhancement: using an inline function instead of inline arithmetic.Constantin Kaplinsky2008-01-181-0/+6
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2412 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Made a number of member variables constants.Constantin Kaplinsky2008-01-181-8/+8
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2410 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Minor refactoring: new m_bytesPerPixel member variable.Constantin Kaplinsky2008-01-181-0/+2
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2409 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Refactoring: checkRow() has been rationalized; it does not need arguments ↵Constantin Kaplinsky2008-01-181-1/+1
| | | | | | that it can easily compute itself. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2408 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Code refactoring: removed extra arguments for member functions.Constantin Kaplinsky2008-01-171-6/+6
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2407 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Code refactoring: introduced m_changeFlags member variable, instead of ↵Constantin Kaplinsky2008-01-171-0/+5
| | | | | | similar local variable. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2406 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Minor code refactoring: remembering the number of 32x32 tiles in a member ↵Constantin Kaplinsky2008-01-171-2/+4
| | | | | | variable. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2405 3789f03b-4d11-0410-bbf8-ca57d06f2519
* More debugging output can be enabled with the #define ↵Constantin Kaplinsky2008-01-101-0/+3
| | | | | | DEBUG_REPORT_CHANGED_TILES. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2399 3789f03b-4d11-0410-bbf8-ca57d06f2519
* If defined DEBUG_PRINT_NUM_CHANGED_TILES, print correct final number of ↵Constantin Kaplinsky2008-01-091-1/+1
| | | | | | changed tiles detected (excluding video area but including tiles found after "neighbors check"). git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2395 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Polling algorithm was extended. Now, if it detected any changes, it will ↵Constantin Kaplinsky2007-12-281-0/+4
| | | | | | also check vertical borders of neighboring tiles at the right. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2388 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Code refactoring and cleanups. Moved a part of handleVideo() back to ↵Constantin Kaplinsky2007-12-281-2/+2
| | | | | | pollScreen(), changed a few function prototypes, added sanity checking in flagVideoArea(). git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2386 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Maintaining additional one-pixel-width image for using in upcoming polling ↵Constantin Kaplinsky2007-12-281-3/+4
| | | | | | improvements. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2385 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Minor code refactoring -- new flagVideoArea() function, minor naming and ↵Constantin Kaplinsky2007-12-281-6/+6
| | | | | | formatting changes. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2384 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Implemented new "VideoPriority" parameter. It allows to increase the ↵Constantin Kaplinsky2007-12-251-0/+3
| | | | | | priority of video data (when set to 2 or higher), or to disable video detection completely (when set to 0). The value 1 gives video area the same priority as the rest of the screen, the value 2 doubles video area priority, and so on. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2379 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Code improvement -- the code from detectVideo() was split into two ↵Constantin Kaplinsky2007-10-091-1/+2
| | | | | | functions, handleVideo() and detectVideo(). git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2353 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Optimized detectVideo() function. Now it does the most work only when ↵Constantin Kaplinsky2007-10-091-0/+1
| | | | | | needed, not each time it's called. The video rectangle (m_videoRect) is now a member variable so it's remembered between calls to poll(). git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2352 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Removed PollPointer parameter and the corresponding code. Polling the screen ↵Constantin Kaplinsky2007-10-091-27/+8
| | | | | | around the pointer rather decreased polling performance then improved responsiveness. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2351 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Removed unused m_changedFlags member variable.Constantin Kaplinsky2007-10-091-1/+0
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2350 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Removed old polling code, as well as PollingType parameter.Constantin Kaplinsky2007-10-091-28/+3
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2349 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Combined video detection stuff with new polling code.Constantin Kaplinsky2007-10-081-0/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2348 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Code refactoring -- moving a code chunk from poll_New() to a separate ↵Constantin Kaplinsky2007-10-071-0/+1
| | | | | | sendChanges() method. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2344 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Performing polling via new checkRow() function.Constantin Kaplinsky2007-10-041-1/+13
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2343 3789f03b-4d11-0410-bbf8-ca57d06f2519
* New polling algorithm has been implemented. Video detection is not included ↵Constantin Kaplinsky2007-10-041-0/+7
| | | | | | in this version though. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2342 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Improved algorithm of detecting rectangular video area. Old algorithm used ↵Constantin Kaplinsky2007-09-291-0/+5
| | | | | | 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
* Special handling for rectangular video area in x0vncserver.Constantin Kaplinsky2007-09-041-0/+2
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2336 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Migrating to new directory structure adopted from the RealVNC's source tree. ↵Constantin Kaplinsky2006-05-251-0/+148
More changes will follow. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@590 3789f03b-4d11-0410-bbf8-ca57d06f2519