Hi,
On Mon, 2008-12-01 at 10:41 +0100, Ille wrote:
> I'm still trying to improve the foveon/x3f support in rawstudio.
> I can now reload the x3f, giving the user the ability to
> change on the fly the in-camera white balance set when shooting
> (Sunlight, Shade, Overcast, Incandescent, Fluorescent, Flash, Auto or
> Custom). But as stated, it needs a full reload of the file, so I can't
> have different camera WB settings for each snapshot.
>
> I would like to access the rs->toolbox widget from within x3f-meta.c to
> be able to add a notebook page when loading a x3f file. Is there a way
> to do it using photo->parent, which is a GObject?
All functions in meta-loaders must be self-contained, or at least not
require anything from the GUI.
As of now there really isn't any easy way to do what you're proposing in
Rawstudio - I have an idea thou:
Abstract the white balance somewhat away from RSMetadata, and let the
metaloaders export a list of possible white balances the
toolbox/toolchain can select from at a later stage.
Maybe it can even be simpler, add a simple struct:
typedef struct _RSWhiteBalance {
const gchar *title; /* FIXME: Should this be translated? */
gfloat *multipliers[4]; /* Multipliers for R, G, B and G2 */
gfloat temperature; /* Unused by now, prepare for the future */
} RSWhiteBalance;
In RSMetadata, the following fields could replace cam_mul:
GSList wb; /* A list of white balances to choose from */
gint current_wb; /* An index to use with g_slist_nth_data() */
It's a somewhat big change thou...
/abrander
_______________________________________________
Rawstudio-dev mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-dev