On Thu, 16 Dec 2010 09:59:14 +0100, Klaus Post wrote:
> Thanks a lot for the analysis!
You're welcome.
> I've been down with a self-inflicted fever (yellow fever vaccination),
> but that was also my first thought. I think we are missing the part
> where we apply the default settings for the batch photos in general for
> batch export - this includes the DCP profile and the camera default
> settings, which should all be applied to batch exports.
I tried to load the DCP profile of the picture inspired by code found in
rs-toolbox.c when the user selected something from the combo box.
Obviously i'm not trying to update the widget, but rather load the RSDCP
File from the factory.
The code i added is:
if (photo->metadata && photo->metadata->model_ascii)
{
RSProfileFactory *factory = rs_profile_factory_new_default();
const gchar* unique_id = NULL;
RSDcpFile* dcp = NULL;
if (photo->metadata->make_ascii)
unique_id = rs_profile_camera_find(photo->metadata->make_ascii, photo-
>metadata->model_ascii);
if (unique_id)
{
dcp = rs_profile_factory_find_from_id(factory, unique_id);
g_free((void*)unique_id);
}
else
{
dcp = rs_profile_factory_find_from_id(factory, photo->metadata-
>model_ascii);
}
if (dcp)
rs_photo_set_dcp_profile(photo, dcp);
}
The factory always returns me a NULL profile, all GtkTreeModel inserted
in factory->profiles have no id, and by such i get no dcp profile for the
photo though it should find a d90 profile... I tried hard to find how a
default profile is added to the photo on first load, but i got no luck
finding anything pushing a profile to the photo either through glib
signal or the rs_photo_set_dcp_profile call.
Where am i wrong ?
--
Edouard Gomez
_______________________________________________
Rawstudio-dev mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-dev