From d9ceb72c2e982772f5827bb9b9325ff8ad73be5a Mon Sep 17 00:00:00 2001 From: matt Date: Thu, 16 Sep 2021 09:44:59 +0000 Subject: [PATCH] KASM-1913 webp mode tweaks --- .gitmodules | 2 +- common/rfb/TightWEBPEncoder.cxx | 18 +++++++++--------- kasmweb | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.gitmodules b/.gitmodules index e43a13a..dcce142 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,4 +1,4 @@ [submodule "kasmweb"] path = kasmweb url = https://github.com/kasmtech/noVNC.git - branch = master + branch = feature/KASM-1834_anti_aliasing 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 e0bb9f6..a0907e9 160000 --- a/kasmweb +++ b/kasmweb @@ -1 +1 @@ -Subproject commit e0bb9f6bcf945da6cb10fd0eb48b63b48bf09bb8 +Subproject commit a0907e9390e8a135a280f7e4157eced05b8ec687