Changeset View
Changeset View
Standalone View
Standalone View
source/blender/imbuf/intern/openexr/openexr_api.cpp
| Context not available. | |||||
| static void openexr_header_metadata(Header *header, struct ImBuf *ibuf) | static void openexr_header_metadata(Header *header, struct ImBuf *ibuf) | ||||
| { | { | ||||
| ImMetaData *info; | IDProperty *prop; | ||||
| for (info = ibuf->metadata; info; info = info->next) | if( ibuf->metadata ){ | ||||
| header->insert(info->key, StringAttribute(info->value)); | void *iter = IDP_GetGroupIterator( ibuf->metadata ); | ||||
| for (prop=IDP_GroupIterNext(iter); prop; prop=IDP_GroupIterNext(iter)) { | |||||
| if (prop->type == IDP_STRING) { | |||||
| header->insert(prop->name, StringAttribute(IDP_String(prop))); | |||||
| } | |||||
| } | |||||
| } | |||||
| if (ibuf->ppm[0] > 0.0) | if (ibuf->ppm[0] > 0.0) | ||||
| addXDensity(*header, ibuf->ppm[0] / 39.3700787); /* 1 meter = 39.3700787 inches */ | addXDensity(*header, ibuf->ppm[0] / 39.3700787); /* 1 meter = 39.3700787 inches */ | ||||
| Context not available. | |||||