summaryrefslogtreecommitdiffstats
path: root/common
Commit message (Collapse)AuthorAgeFilesLines
* Default compression level should be interpreted as highPierre Ossman2015-02-271-1/+1
| | | | (cherry picked from commit 4daa7b1172cd4606b60f8245831bc5aa155c4b9e)
* Be more aggressive in finding solid rectanglesPierre Ossman2015-02-272-75/+97
| | | | | | | | | | The previous FIXME was incorrect. The old code did in fact continue looking over the entire area. This commit restores that old behaviour. (cherry picked from commit eef5516854cdc466daed1e1a817bb41bc264027d) Conflicts: common/rfb/EncodeManager.cxx
* Optimise fillRect()Pierre Ossman2015-02-271-6/+26
| | | | | | | It had regressed in performance compared to 1.3. This brings it back up to the same speed. (cherry picked from commit a43a3f4e0e1ae9faa389a91ad9a38db4af4c54c8)
* Revert IPv6 listening supportPierre Ossman2014-12-081-193/+41
| | | | | | | | | | | | | | | There were too many problems found so drop this functionality on the stable branch. It will be revisited for the next release. This reverts commit 4561f7e9c63c6ca2859da9b9fa75f64a1a8c2a81. This reverts commit 6abf3f4c87a0309d5e7d436e4b72d26a08631ebf. This reverts commit 820c0ceb2ed92080e8d76d50b78ba01bd264baef. This reverts commit 698371a65002c8785c34481635044fddc217d3f1. This reverts commit 6ae42df65141ccb49c875bda45b8f5ae9fa60c28. This reverts commit f1665ac7fbff068ffc2c2f3f110645609b73806c. This reverts commit 14263e17e425d1bca7e99d4ddfca1ace3bae0ca7. This reverts commit 07cd2298dcbf7da8db22d630cb84c0216da30ea1. This reverts commit 8e101704c32c47654d7453f5bde42d8d0c8cc160.
* Fix setsockopt() call on WindowsPierre Ossman2014-11-191-1/+1
| | | | They use char* rather than void*, requiring a cast here.
* Protect IPv6 address strings with []Pierre Ossman2014-11-191-3/+7
| | | | | This is the format we support when converting a string to an address, so it makes sense to use them the other way around.
* Don't assume that it's IPv4 just because it's not IPv6Pierre Ossman2014-11-191-31/+32
| | | | | There might be more protocols in the future, and we might also misdetect things depending on varying IPv6 functions being missing.
* inet_ntoa() want's the address directly, not a pointer to itPierre Ossman2014-11-191-1/+1
|
* TcpSocket: IPv6 handling throughout (#68).Tim Waugh2014-11-171-19/+100
|
* Added more #ifdefs for IPv6.Tim Waugh2014-11-171-1/+11
|
* IPv6 loopback support too.Tim Waugh2014-11-121-8/+21
|
* Add IPv6 support (#68).Tim Waugh2014-11-121-17/+60
|
* Revert "Use VncAuth as the default security type, ..."Pierre Ossman2014-11-111-1/+1
| | | | | | | | This reverts commit 39d7dc043afcf6f94b9c16942765fdb9a6a3202e. We should be secure by default, even if it might cause a performance hit. Those who wish to make that trade off are more likely to notice the lack of performance than others noticing the lack of security.
* Always log chosen security typePierre Ossman2014-11-113-3/+3
| | | | | It's often useful to see if encryption was used, and how the user authenticated (if at all).
* Remove unused variablePierre Ossman2014-10-281-1/+0
|
* Remove verbose TLS loggingPierre Ossman2014-10-282-26/+0
| | | | | We don't even log this much for RFB protocol stuff, and it makes it very annoying to run with full debugging on.
* Move ws2_32 dependency to the correct placePierre Ossman2014-10-172-2/+6
| | | | It is rdr and network that needs it, not vncviewer.
* Merge branch 'assert' of https://github.com/CendioOssman/tigervncPierre Ossman2014-10-103-4/+0
|\
| * Remove unused assert.h includePierre Ossman2014-10-103-4/+0
| |
* | Wrong padding size calculated (copy-paste error)Pierre Ossman2014-10-091-1/+1
|/
* Fix endian conversionPierre Ossman2014-09-251-12/+22
| | | | This was just plain wrong, so redo it properly.
* Add pixel conversion correctness testPierre Ossman2014-09-251-0/+6
|
* PixelTransformer is gone so we can protect these nowPierre Ossman2014-09-251-2/+1
|
* Move preferred encoding tracking into a server objectPierre Ossman2014-09-185-11/+29
| | | | | | Having it in ConnParams made the linker pull all the encoder objects into vncviewer, making it larger than necessary and giving it extra parameters in its help output that weren't relevant.
* Correct naming convention for some parametersPierre Ossman2014-09-174-13/+15
|
* Give a correct list of valid security schemesPierre Ossman2014-09-172-2/+10
|
* Use printf constructor safelyPierre Ossman2014-07-211-1/+1
| | | | | The input string might contain formatting marks, so make sure those are ignored.
* Move image encoding logic into a central EncodeManager classPierre Ossman2014-07-1434-1603/+2248
| | | | | | | | This allows us to apply a lot more server logic independently of which encoder is in use. Most of this class are things moved over from the Tight encoder.
* Remove PixelTransformer and TransImageGetterPierre Ossman2014-07-147-682/+0
| | | | There is nothing using these classes anymore, so remove the clutter.
* Use PixelBuffer objects as the interface for encoders and decodersPierre Ossman2014-07-1437-169/+154
| | | | | | | This avoid a lot of unnecessary middle men. This also pushes the responsibility for pixel format conversion into the encoders and decoders. The new bufferFromBuffer() is used for direct conversion, rather than PixelTransformer/TransImageGetter.
* Store the mouse cursor in the ConnParams objectPierre Ossman2014-07-146-118/+153
| | | | | | Like we do for everything else. This also gets rid of the callback, which is a bit out of place compared to everything else.
* Allow PixelBuffers to be constPierre Ossman2014-07-144-15/+17
|
* Add helper class for a rendered cursorPierre Ossman2014-07-145-25/+74
| | | | | | Add a magical cursor framebuffer class for handling when you want to render the cursor on the server side. Keeps the cursor specific magic in one contained place.
* Add convenience variant of getImage()Pierre Ossman2014-07-142-0/+25
|
* Add convenience functions to ModifiablePixelBufferPierre Ossman2014-07-092-0/+29
| | | | | Allows you to modify the buffer with data in a different pixel format.
* Add optimised buffer conversionPierre Ossman2014-07-093-0/+291
| | | | | | | | | Handles the common cases when the target or source are in the preferred 888 format. If one of the buffers is not 888, then it must also be properly aligned (which is commonly the case). Performance is now in many cases on par with PixelTransformer.
* Add ability to directly convert between two pixel formatsPierre Ossman2014-07-092-0/+58
| | | | | This is a lot easier and cheaper than having to set up a complete PixelTransformer object.
* Use lookup tables for pixel upconversionPierre Ossman2014-07-093-44/+64
| | | | | | You have to loop many times when converting e.g. 2 bits to 8, so have a couple of lookup tables to speed things up. We still use bit replication to get from 8 bits to 16 bits though.
* Only grab the regions we actually needPierre Ossman2014-07-071-22/+33
| | | | | Allows pixel buffers that do damage tracking to get proper information.
* Provide a better R/W base PixelBuffer classPierre Ossman2014-07-073-26/+89
| | | | | Clearly separates the read API from the write API and also from actual implementation.
* Get rid of getStride()Pierre Ossman2014-07-072-14/+11
| | | | | | It was confusing and not properly used everywhere. Callers should use the stride they get when they get the buffer pointer.
* Get rid of the direct access abuse of FullFramePixelBuffer's dataPierre Ossman2014-07-076-17/+29
|
* We don't need a fillRect() that is this optimisedPierre Ossman2014-07-072-83/+19
| | | | | Keep things simple instead and allows us to remove the extra setPF() methods.
* Avoid having virtual methods where not neededPierre Ossman2014-07-072-17/+10
|
* getImage() doesn't need to be overloadable, keep it simplePierre Ossman2014-07-073-38/+5
|
* Encoders/decoders should track the connection objectPierre Ossman2014-07-0734-109/+102
| | | | | | The connection object is a much more appropriate object for the decoders and encoders to keep track of. Besides the streams, it also contains state like connection parameters.
* Push encoder and decoder handling down into the connection objectsPierre Ossman2014-07-079-140/+57
| | | | | This keeps the reader and writer objects clean and simple protocol decoders/encoders.
* Remove full support for colour mapsPierre Ossman2014-07-0726-853/+240
| | | | | | | | | Gets rid of a loooot of code and complexity. Colour map clients are still supported through an automatically generated map, but we lose the ability to develop a client or server that uses colour maps internally.
* Get rid of unnecessary macros as they are only ever set to a single thingPierre Ossman2014-07-0715-85/+30
|
* Push encoding specific formats into the encoders and decodersPierre Ossman2014-07-0712-63/+91
| | | | Keep the generic stream classes clean and general.