mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-01 04:46:18 +03:00
use mode structs in Filter.c
This commit is contained in:
parent
d2e691c788
commit
90ea0609df
|
@ -155,9 +155,9 @@ ImagingFilter3x3(Imaging imOut, Imaging im, const float *kernel, float offset) {
|
||||||
} else {
|
} else {
|
||||||
int bigendian = 0;
|
int bigendian = 0;
|
||||||
if (im->type == IMAGING_TYPE_SPECIAL) {
|
if (im->type == IMAGING_TYPE_SPECIAL) {
|
||||||
if (strcmp(im->mode, "I;16B") == 0
|
if (im->mode == IMAGING_MODE_I_16B
|
||||||
#ifdef WORDS_BIGENDIAN
|
#ifdef WORDS_BIGENDIAN
|
||||||
|| strcmp(im->mode, "I;16N") == 0
|
|| im->mode == IMAGING_MODE_I_16N
|
||||||
#endif
|
#endif
|
||||||
) {
|
) {
|
||||||
bigendian = 1;
|
bigendian = 1;
|
||||||
|
@ -308,9 +308,9 @@ ImagingFilter5x5(Imaging imOut, Imaging im, const float *kernel, float offset) {
|
||||||
} else {
|
} else {
|
||||||
int bigendian = 0;
|
int bigendian = 0;
|
||||||
if (im->type == IMAGING_TYPE_SPECIAL) {
|
if (im->type == IMAGING_TYPE_SPECIAL) {
|
||||||
if (strcmp(im->mode, "I;16B") == 0
|
if (im->mode == IMAGING_MODE_I_16B
|
||||||
#ifdef WORDS_BIGENDIAN
|
#ifdef WORDS_BIGENDIAN
|
||||||
|| strcmp(im->mode, "I;16N") == 0
|
|| im->mode == IMAGING_MODE_I_16N
|
||||||
#endif
|
#endif
|
||||||
) {
|
) {
|
||||||
bigendian = 1;
|
bigendian = 1;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user