KASM-1913 webp mode tweaks

pull/55/head
matt 4 years ago
parent 0cb2c0ba9f
commit d9ceb72c2e

2
.gitmodules vendored

@ -1,4 +1,4 @@
[submodule "kasmweb"] [submodule "kasmweb"]
path = kasmweb path = kasmweb
url = https://github.com/kasmtech/noVNC.git url = https://github.com/kasmtech/noVNC.git
branch = master branch = feature/KASM-1834_anti_aliasing

@ -71,12 +71,12 @@ static const struct TightWEBPConfiguration conf[10] = {
{ 24, 0 }, // 1 { 24, 0 }, // 1
{ 30, 0 }, // 2 { 30, 0 }, // 2
{ 37, 0 }, // 3 { 37, 0 }, // 3
{ 42, 1 }, // 4 { 42, 0 }, // 4
{ 65, 1 }, // 5 { 65, 0 }, // 5
{ 78, 1 }, // 6 { 78, 0 }, // 6
{ 85, 2 }, // 7 { 85, 0 }, // 7
{ 88, 3 }, // 8 { 88, 0 }, // 8
{ 100, 4 } // 9 { 100, 0 } // 9
}; };
@ -143,7 +143,7 @@ void TightWEBPEncoder::compressOnly(const PixelBuffer* pb, const uint8_t quality
method = conf[qualityIn].method; method = conf[qualityIn].method;
} else { } else {
quality = 8; quality = 8;
method = 4; method = 0;
} }
WebPConfigInit(&cfg); WebPConfigInit(&cfg);
@ -214,7 +214,7 @@ void TightWEBPEncoder::writeRect(const PixelBuffer* pb, const Palette& palette)
method = conf[qualityLevel].method; method = conf[qualityLevel].method;
} else { } else {
quality = 8; quality = 8;
method = 4; method = 0;
} }
WebPConfigInit(&cfg); WebPConfigInit(&cfg);
@ -265,7 +265,7 @@ rdr::U32 TightWEBPEncoder::benchmark() const
rdr::U8* buffer; rdr::U8* buffer;
struct timeval start; struct timeval start;
int stride, i; int stride, i;
const uint8_t quality = 8, method = 4; const uint8_t quality = 8, method = 2;
WebPConfig cfg; WebPConfig cfg;
WebPPicture pic; WebPPicture pic;
WebPMemoryWriter wrt; WebPMemoryWriter wrt;

@ -1 +1 @@
Subproject commit e0bb9f6bcf945da6cb10fd0eb48b63b48bf09bb8 Subproject commit a0907e9390e8a135a280f7e4157eced05b8ec687
Loading…
Cancel
Save