From 3f680a7b803e23a44b434f4d2604c19324ce2f74 Mon Sep 17 00:00:00 2001 From: mmcclaskey Date: Thu, 23 Sep 2021 14:04:19 -0400 Subject: [PATCH] KASM-1913 webp mode tweaks (#55) Co-authored-by: matt --- common/rfb/TightWEBPEncoder.cxx | 18 +++++++++--------- kasmweb | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/common/rfb/TightWEBPEncoder.cxx b/common/rfb/TightWEBPEncoder.cxx index 4953ff4..74c109c 100644 --- a/common/rfb/TightWEBPEncoder.cxx +++ b/common/rfb/TightWEBPEncoder.cxx @@ -71,12 +71,12 @@ static const struct TightWEBPConfiguration conf[10] = { { 24, 0 }, // 1 { 30, 0 }, // 2 { 37, 0 }, // 3 - { 42, 1 }, // 4 - { 65, 1 }, // 5 - { 78, 1 }, // 6 - { 85, 2 }, // 7 - { 88, 3 }, // 8 - { 100, 4 } // 9 + { 42, 0 }, // 4 + { 65, 0 }, // 5 + { 78, 0 }, // 6 + { 85, 0 }, // 7 + { 88, 0 }, // 8 + { 100, 0 } // 9 }; @@ -143,7 +143,7 @@ void TightWEBPEncoder::compressOnly(const PixelBuffer* pb, const uint8_t quality method = conf[qualityIn].method; } else { quality = 8; - method = 4; + method = 0; } WebPConfigInit(&cfg); @@ -214,7 +214,7 @@ void TightWEBPEncoder::writeRect(const PixelBuffer* pb, const Palette& palette) method = conf[qualityLevel].method; } else { quality = 8; - method = 4; + method = 0; } WebPConfigInit(&cfg); @@ -265,7 +265,7 @@ rdr::U32 TightWEBPEncoder::benchmark() const rdr::U8* buffer; struct timeval start; int stride, i; - const uint8_t quality = 8, method = 4; + const uint8_t quality = 8, method = 2; WebPConfig cfg; WebPPicture pic; WebPMemoryWriter wrt; diff --git a/kasmweb b/kasmweb index d1e4bda..a0907e9 160000 --- a/kasmweb +++ b/kasmweb @@ -1 +1 @@ -Subproject commit d1e4bda4b3ed118ed90752ffe0f08b9ead0851c9 +Subproject commit a0907e9390e8a135a280f7e4157eced05b8ec687