mirror of
https://github.com/webmproject/libwebp.git
synced 2025-01-30 00:22:55 +01:00
Merge "Near lossless feature: fix some comments."
This commit is contained in:
commit
a5193774b0
@ -126,12 +126,12 @@ static void NearLossless(int xsize, int ysize, uint32_t* argb,
|
|||||||
|
|
||||||
static int QualityToLimitBits(int quality) {
|
static int QualityToLimitBits(int quality) {
|
||||||
// quality mapping:
|
// quality mapping:
|
||||||
// 0..19 -> 5
|
// 0..19 -> 5
|
||||||
// 0..39 -> 4
|
// 20..39 -> 4
|
||||||
// 0..59 -> 3
|
// 40..59 -> 3
|
||||||
// 0..79 -> 2
|
// 60..79 -> 2
|
||||||
// 0..99 -> 1
|
// 80..99 -> 1
|
||||||
// 100 -> 0
|
// 100 -> 0
|
||||||
return MAX_LIMIT_BITS - quality / 20;
|
return MAX_LIMIT_BITS - quality / 20;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -134,8 +134,8 @@ struct WebPConfig {
|
|||||||
int thread_level; // If non-zero, try and use multi-threaded encoding.
|
int thread_level; // If non-zero, try and use multi-threaded encoding.
|
||||||
int low_memory; // If set, reduce memory usage (but increase CPU use).
|
int low_memory; // If set, reduce memory usage (but increase CPU use).
|
||||||
|
|
||||||
int near_lossless; // Near lossless encoding [0 = off(default) .. 100].
|
int near_lossless; // Near lossless encoding [0 = max loss .. 100 = off
|
||||||
// This feature is experimental.
|
// (default)].
|
||||||
int exact; // if non-zero, preserve the exact RGB values under
|
int exact; // if non-zero, preserve the exact RGB values under
|
||||||
// transparent area. Otherwise, discard this invisible
|
// transparent area. Otherwise, discard this invisible
|
||||||
// RGB information for better compression. The default
|
// RGB information for better compression. The default
|
||||||
|
Loading…
x
Reference in New Issue
Block a user