mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-27 22:28:22 +01:00
picture_csp: fix build w/USE_GAMMA_COMPRESSION undefined
kGammaFix is now only defined with USE_GAMMA_COMPRESSION; fixes: use of undeclared identifier 'kGammaFix' Change-Id: Ib1e2f410eff9b83be065894f88181f91dd2776e1
This commit is contained in:
parent
d97c143da6
commit
1dd419ced5
@ -843,7 +843,7 @@ static int ImportYUVAFromRGBA(const uint8_t* const r_ptr,
|
|||||||
if (has_alpha) {
|
if (has_alpha) {
|
||||||
WebPInitAlphaProcessing();
|
WebPInitAlphaProcessing();
|
||||||
assert(step == 4);
|
assert(step == 4);
|
||||||
#if defined(USE_INVERSE_ALPHA_TABLE)
|
#if defined(USE_GAMMA_COMPRESSION) && defined(USE_INVERSE_ALPHA_TABLE)
|
||||||
assert(kAlphaFix + kGammaFix <= 31);
|
assert(kAlphaFix + kGammaFix <= 31);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user