aboutsummaryrefslogtreecommitdiffstats
path: root/common/rfb/ZRLEEncoder.cxx
Commit message (Collapse)AuthorAgeFilesLines
* Make use of IntParameter range validationPierre Ossman2025-03-061-1/+3
|
* Move logging to core libraryPierre Ossman2025-02-251-2/+2
| | | | | | | Make it clearer what is protocol handling and what is just general plumbing. This is one step of several.
* Move configuration to core libraryPierre Ossman2025-02-251-2/+3
| | | | | | | Make it clearer what is protocol handling and what is just general plumbing. This is one step of several.
* Move base exception classes to core libraryPierre Ossman2025-02-251-1/+0
| | | | | | | Make it clearer what is protocol handling and what is just general plumbing. This is one step of several.
* Move basic data types to core libraryPierre Ossman2025-02-131-4/+7
| | | | | | | Make it clearer what is protocol handling and what is just general plumbing. This is one step of several.
* Reduce header #include:sPierre Ossman2025-02-131-0/+1
| | | | | Make compile times faster by reducing the number of headers included in other headers.
* Avoid shadowing variablesPierre Ossman2024-06-241-2/+2
| | | | | It's a source of confusion and possibly bugs to reuse the same variable name for multiple things.
* Use nullptr in all C++ codePierre Ossman2024-06-241-2/+2
| | | | | It's more readable than 0, and a bit safer than NULL, so let's try to follow modern norms.
* Use compressionLevel in ZRLEEncoderAdam Halim2023-11-201-2/+15
| | | | | | This change makes the ZRLEEncoder respect a client's desired compressionLevel. The ZlibLevel option is marked deprecated and removed from the manpages.
* Use stdint typesPierre Ossman2023-02-011-23/+23
| | | | | Avoid having our own custom stuff and instead use the modern, standard types, for familiarity.
* Use templates for optimized codePierre Ossman2023-02-011-14/+108
| | | | | Avoid preprocessor magic and instead rely on templating to generate optimized functions for performance critical code.
* Don't include palette to full color methodsPierre Ossman2023-01-041-3/+2
| | | | They have no need for it, so let's simplify things.
* Be consistent in including config.hPierre Ossman2021-12-301-0/+5
| | | | | | The generally recommended way is to include it from source files, not headers. We had a mix of both. Let's try to be consistent and follow the recommended way.
* Remove unused bufSize argument from streamsPierre Ossman2020-05-211-1/+1
|
* Rename ConnParams to ClientParamsPierre Ossman2018-11-011-2/+1
| | | | | | Now that we've split out server state to ServerParams, ConnParams only contains state for a client. Rename the class and variables to reflect this.
* Avoid integer overflows in pixel size calculationsPierre Ossman2018-07-251-1/+1
|
* Move image encoding logic into a central EncodeManager classPierre Ossman2014-07-141-63/+200
| | | | | | | | 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.
* Use PixelBuffer objects as the interface for encoders and decodersPierre Ossman2014-07-141-10/+9
| | | | | | | 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.
* Encoders/decoders should track the connection objectPierre Ossman2014-07-071-8/+9
| | | | | | 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.
* Get rid of unnecessary macros as they are only ever set to a single thingPierre Ossman2014-07-071-2/+0
|
* Push encoding specific formats into the encoders and decodersPierre Ossman2014-07-071-0/+15
| | | | Keep the generic stream classes clean and general.
* Avoid reader/writer duplication in every encoder/decoderPierre Ossman2014-07-071-2/+2
|
* Remove partial update functionalityPierre Ossman2014-07-071-10/+7
| | | | | | Get rid of the ability of encoders to only send part of the rectangle they are given as we don't want partial updates anyway.
* Get rid of the register mechanism for encoders and decodersPierre Ossman2014-07-071-5/+0
| | | | We have no use for it, so let's keep things simple.
* Get rid of unused things in the ZRLE encoderPierre Ossman2014-07-071-18/+9
| | | | | Get rid of unused shared MemOutStream and variable max length functionality in the ZRLE encoder.
* Reduce dependencies on TransImageGetter.hPierre Ossman2014-07-071-1/+1
|
* Further optimizations to the Tight encoder to eliminate getImage() overhead. ↵DRC2011-08-171-1/+1
| | | | | | The encoder now directly accesses the framebuffer for solid rectangle computation, JPEG encoding, and color counting (if pixel translation is not required.) Also moved everything in tightEncode.h into the TightEncoder class to eliminate all of the static mess (this will be important later on if we decide to multi-thread the encoder.) git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4631 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Consolidate pixel conversion into the PixelFormat class and optimise thePierre Ossman2009-03-061-11/+7
| | | | | | | common cases. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3636 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Migrating to new directory structure adopted from the RealVNC's source tree. ↵Constantin Kaplinsky2006-05-251-0/+122
More changes will follow. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@589 3789f03b-4d11-0410-bbf8-ca57d06f2519