mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2025-01-22 13:58:48 +01:00
KASM-1913 webp mode tweaks (#55)
Co-authored-by: matt <matt@kasmweb.com>
This commit is contained in:
parent
159d752795
commit
3f680a7b80
@ -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;
|
||||||
|
2
kasmweb
2
kasmweb
@ -1 +1 @@
|
|||||||
Subproject commit d1e4bda4b3ed118ed90752ffe0f08b9ead0851c9
|
Subproject commit a0907e9390e8a135a280f7e4157eced05b8ec687
|
Loading…
Reference in New Issue
Block a user