Some questions
Vladimir Nadvornik
vnd at seznam.cz
Tue Jan 22 11:30:37 PST 2008
Hi Hubert,
I have some questions about exempi usage:
1. Is this an optimal way of writing and reading an array of floats?
xmp_delete_property(xmp, NS_UFRAW, "ChannelMultipliers");
for (i = 0; i < 4; i++) {
sprintf(tmp, "%f", c->chanMul[i]);
xmp_append_array_item(xmp, NS_UFRAW, "ChannelMultipliers", XMP_PROP_ARRAY_IS_ORDERED, tmp, 0);
}
[...]
for (i = 0; i < 4; i++) {
sprintf(tmp, "ChannelMultipliers[%d]", i + 1);
if (!xmp_get_property_float(xmp, NS_UFRAW, tmp, &c->chanMul[i], 0))
c->chanMul[i] = 0.0;
}
2. Can I write sidecar xmp files with xmp_files functions or it must
be handled separately?
Vladimir Nadvornik
More information about the Exempi-devel
mailing list