mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-29 11:26:17 +03:00
formatting
This commit is contained in:
parent
3c129142c8
commit
ee41a133dd
|
@ -756,27 +756,30 @@ j2k_decode_entry(Imaging im, ImagingCodecState state) {
|
||||||
switch (image->numcomps) {
|
switch (image->numcomps) {
|
||||||
case 1:
|
case 1:
|
||||||
case 2:
|
case 2:
|
||||||
color_space = OPJ_CLRSPC_GRAY; break;
|
color_space = OPJ_CLRSPC_GRAY;
|
||||||
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
case 4:
|
case 4:
|
||||||
switch (subsampling) {
|
switch (subsampling) {
|
||||||
case -1:
|
case -1:
|
||||||
case 0:
|
case 0:
|
||||||
case 3:
|
case 3:
|
||||||
color_space = OPJ_CLRSPC_SRGB; break;
|
color_space = OPJ_CLRSPC_SRGB;
|
||||||
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
case 2:
|
case 2:
|
||||||
color_space = OPJ_CLRSPC_SYCC; break;
|
color_space = OPJ_CLRSPC_SYCC;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (n = 0; n < sizeof(j2k_unpackers) / sizeof (j2k_unpackers[0]); ++n) {
|
for (n = 0; n < sizeof(j2k_unpackers) / sizeof(j2k_unpackers[0]); ++n) {
|
||||||
if (color_space == j2k_unpackers[n].color_space &&
|
if (color_space == j2k_unpackers[n].color_space &&
|
||||||
image->numcomps == j2k_unpackers[n].components &&
|
image->numcomps == j2k_unpackers[n].components &&
|
||||||
(j2k_unpackers[n].subsampling || (subsampling == -1)) &&
|
(j2k_unpackers[n].subsampling || (subsampling == -1)) &&
|
||||||
strcmp (im->mode, j2k_unpackers[n].mode) == 0) {
|
strcmp(im->mode, j2k_unpackers[n].mode) == 0) {
|
||||||
unpack = j2k_unpackers[n].unpacker;
|
unpack = j2k_unpackers[n].unpacker;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user