Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Apr 18, 2026. It is now read-only.

Commit e25b96c

Browse files
committed
Update the memory usage estimate to 125 bytes / pixel.
Actual memory usage on a 1 MP image was 110 MiB.
1 parent 19273c3 commit e25b96c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

guetzli/guetzli.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ constexpr int kDefaultJPEGQuality = 95;
3434

3535
// An upper estimate of memory usage of Guetzli. The bound is
3636
// max(kLowerMemusaeMB * 1<<20, pixel_count * kBytesPerPixel)
37-
constexpr int kBytesPerPixel = 200;
37+
constexpr int kBytesPerPixel = 125;
3838
constexpr int kLowestMemusageMB = 100; // in MB
3939

4040
constexpr int kDefaultMemlimitMB = 6000; // in MB

0 commit comments

Comments
 (0)