mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-26 13:48:21 +01:00
enable DC error-diffusion always for multi-pass
We can't predict if the quality is going to be below the threshold eventually, so we might as well enable it always. Change-Id: I30aedecc8c6d4daf159f6ef152697df0206d1e93
This commit is contained in:
parent
96bf07c560
commit
c2d04f3eb2
@ -159,8 +159,9 @@ static VP8Encoder* InitVP8Encoder(const WebPConfig* const config,
|
||||
+ WEBP_ALIGN_CST; // align all
|
||||
const size_t lf_stats_size =
|
||||
config->autofilter ? sizeof(*enc->lf_stats_) + WEBP_ALIGN_CST : 0;
|
||||
const size_t top_derr_size = (config->quality <= ERROR_DIFFUSION_QUALITY) ?
|
||||
mb_w * sizeof(*enc->top_derr_) : 0;
|
||||
const size_t top_derr_size =
|
||||
(config->quality <= ERROR_DIFFUSION_QUALITY || config->pass > 1) ?
|
||||
mb_w * sizeof(*enc->top_derr_) : 0;
|
||||
uint8_t* mem;
|
||||
const uint64_t size = (uint64_t)sizeof(*enc) // main struct
|
||||
+ WEBP_ALIGN_CST // cache alignment
|
||||
|
Loading…
Reference in New Issue
Block a user