mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-27 06:08:21 +01:00
Merge "picture_csp_enc.c,CheckNonOpaque: rm unneeded local" into main
This commit is contained in:
commit
9b902cbace
@ -69,9 +69,8 @@ static int CheckNonOpaque(const uint8_t* alpha, int width, int height,
|
|||||||
int WebPPictureHasTransparency(const WebPPicture* picture) {
|
int WebPPictureHasTransparency(const WebPPicture* picture) {
|
||||||
if (picture == NULL) return 0;
|
if (picture == NULL) return 0;
|
||||||
if (picture->use_argb) {
|
if (picture->use_argb) {
|
||||||
const int alpha_offset = ALPHA_OFFSET;
|
|
||||||
if (picture->argb != NULL) {
|
if (picture->argb != NULL) {
|
||||||
return CheckNonOpaque((const uint8_t*)picture->argb + alpha_offset,
|
return CheckNonOpaque((const uint8_t*)picture->argb + ALPHA_OFFSET,
|
||||||
picture->width, picture->height,
|
picture->width, picture->height,
|
||||||
4, picture->argb_stride * sizeof(*picture->argb));
|
4, picture->argb_stride * sizeof(*picture->argb));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user