diff options
author | Pierre Ossman <ossman@cendio.se> | 2022-09-10 13:19:41 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2023-02-01 21:17:12 +0100 |
commit | 6881c895ab317bd302addac5f228b7367136017f (patch) | |
tree | 18d1119f59209147d97e873c3dbc9be36e429aaf /common/rfb/TightJPEGEncoder.cxx | |
parent | baca73d03217a1c219d9c4f024ffcd39f85fd322 (diff) | |
download | tigervnc-6881c895ab317bd302addac5f228b7367136017f.tar.gz tigervnc-6881c895ab317bd302addac5f228b7367136017f.zip |
Use stdint types
Avoid having our own custom stuff and instead use the modern, standard
types, for familiarity.
Diffstat (limited to 'common/rfb/TightJPEGEncoder.cxx')
-rw-r--r-- | common/rfb/TightJPEGEncoder.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/common/rfb/TightJPEGEncoder.cxx b/common/rfb/TightJPEGEncoder.cxx index 976601f7..5c8706ee 100644 --- a/common/rfb/TightJPEGEncoder.cxx +++ b/common/rfb/TightJPEGEncoder.cxx @@ -115,7 +115,7 @@ int TightJPEGEncoder::getQualityLevel() void TightJPEGEncoder::writeRect(const PixelBuffer* pb, const Palette& /*palette*/) { - const rdr::U8* buffer; + const uint8_t* buffer; int stride; int quality, subsampling; @@ -152,17 +152,17 @@ void TightJPEGEncoder::writeRect(const PixelBuffer* pb, void TightJPEGEncoder::writeSolidRect(int width, int height, const PixelFormat& pf, - const rdr::U8* colour) + const uint8_t* colour) { // FIXME: Add a shortcut in the JPEG compressor to handle this case // without having to use the default fallback which is very slow. Encoder::writeSolidRect(width, height, pf, colour); } -void TightJPEGEncoder::writeCompact(rdr::U32 value, rdr::OutStream* os) +void TightJPEGEncoder::writeCompact(uint32_t value, rdr::OutStream* os) { // Copied from TightEncoder as it's overkill to inherit just for this - rdr::U8 b; + uint8_t b; b = value & 0x7F; if (value <= 0x7F) { |