mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-19 07:20:02 +02:00
Switch the histogram_enc.h API to fixed point
Speedups: 4% with '-lossless', 8% with '-lossless -q 100 -m6' Change-Id: I8f1c244b290d48132c1edc6a1c9fc3f79fef68ec
This commit is contained in:
@ -320,9 +320,7 @@ static int CostManagerInit(CostManager* const manager,
|
||||
}
|
||||
// Set the initial costs_ to INT64_MAX for every pixel as we will keep the
|
||||
// minimum.
|
||||
for (i = 0; i < pix_count; ++i) {
|
||||
manager->costs_[i] = (int64_t)((1ull << 63) - 1);
|
||||
}
|
||||
for (i = 0; i < pix_count; ++i) manager->costs_[i] = WEBP_INT64_MAX;
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user