Skip to content

Commit

Permalink
masknothing
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Oct 7, 2023
1 parent ea97541 commit e1cd435
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/_imaging.c
Original file line number Diff line number Diff line change
Expand Up @@ -3760,7 +3760,7 @@ _compare_pixels(
// Fortunately, all of the modes that have extra bytes in their pixels use four bytes for their pixels.
UINT32 mask = 0xffffffff;
if (
!strcmp(mode, "RGB") || !strcmp(mode, "BGR;24") ||
!strcmp(mode, "RGB") ||
!strcmp(mode, "YCbCr") || !strcmp(mode, "HSV") || !strcmp(mode, "LAB")
) {
// These modes have three channels in four bytes,
Expand All @@ -3769,14 +3769,6 @@ _compare_pixels(
mask = 0xffffff00;
#else
mask = 0x00ffffff;
#endif
} else if (!strcmp(mode, "BGR;15") || !strcmp(mode, "BGR;16")) {
// These modes have two channels in four bytes,
// so we have to ignore the last two bytes.
#ifdef WORDS_BIGENDIAN
mask = 0xffff0000;
#else
mask = 0x0000ffff;
#endif
} else if (!strcmp(mode, "LA") || !strcmp(mode, "La") || !strcmp(mode, "PA")) {
// These modes have two channels in four bytes,
Expand Down

0 comments on commit e1cd435

Please sign in to comment.