Changeset View
Changeset View
Standalone View
Standalone View
source/blender/imbuf/intern/openexr/openexr_api.cpp
| Show First 20 Lines • Show All 1,492 Lines • ▼ Show 20 Lines | static int imb_exr_split_channel_name(ExrChannel *echan, char *layname, char *passname) | ||||
| if (len == 1) { | if (len == 1) { | ||||
| echan->chan_id = BLI_toupper_ascii(channelname[0]); | echan->chan_id = BLI_toupper_ascii(channelname[0]); | ||||
| } | } | ||||
| else if (len > 1) { | else if (len > 1) { | ||||
| bool ok = false; | bool ok = false; | ||||
| if (len == 2) { | if (len == 2) { | ||||
| /* some multilayers are using two-letter channels name, | /* Some multi-layers are using two-letter channels name, | ||||
| * like, MX or NZ, which is basically has structure of | * like, MX or NZ, which is basically has structure of | ||||
| * <pass_prefix><component> | * <pass_prefix><component> | ||||
| * | * | ||||
| * This is a bit silly, but see file from T35658. | * This is a bit silly, but see file from T35658. | ||||
| * | * | ||||
| * Here we do some magic to distinguish such cases. | * Here we do some magic to distinguish such cases. | ||||
| */ | */ | ||||
| const char chan_id = BLI_toupper_ascii(channelname[1]); | const char chan_id = BLI_toupper_ascii(channelname[1]); | ||||
| ▲ Show 20 Lines • Show All 779 Lines • Show Last 20 Lines | |||||