formatting

This commit is contained in:
nulano 2021-04-10 20:02:54 +02:00
parent 3c129142c8
commit ee41a133dd

View File

@ -756,17 +756,20 @@ j2k_decode_entry(Imaging im, ImagingCodecState state) {
switch (image->numcomps) {
case 1:
case 2:
color_space = OPJ_CLRSPC_GRAY; break;
color_space = OPJ_CLRSPC_GRAY;
break;
case 3:
case 4:
switch (subsampling) {
case -1:
case 0:
case 3:
color_space = OPJ_CLRSPC_SRGB; break;
color_space = OPJ_CLRSPC_SRGB;
break;
case 1:
case 2:
color_space = OPJ_CLRSPC_SYCC; break;
color_space = OPJ_CLRSPC_SYCC;
break;
}
break;
}