Re: [PATCH] metadata-keys: add metadata keys from camera pictures



On Tue, 2011-03-15 at 11:00 +0100, Juan A. Suárez Romero wrote:
> On Mon, 2011-03-14 at 18:18 +0000, lionel g landwerlin linux intel com
> wrote:
> > +  GRL_METADATA_KEY_ORIGINAL_WIDTH =
> > +    grl_plugin_registry_register_metadata_key (registry,
> > +                                               g_param_spec_float
> > ("original-width",
> > +
> > "Original width",
> > +
> > "Original width of the photo",
> > +                                                                   0,
> > G_MAXFLOAT,
> > +                                                                   0,
> > +
> > G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE),
> > +                                               NULL);
> > +
> > +  GRL_METADATA_KEY_ORIGINAL_HEIGHT =
> > +    grl_plugin_registry_register_metadata_key (registry,
> > +                                               g_param_spec_float
> > ("original-height",
> > +
> > "Original height",
> > +
> > "Original height of the photo",
> > +                                                                   0,
> > G_MAXFLOAT,
> > +                                                                   0,
> > +
> > G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE),
> > +                                               NULL); 
> 
> 
> Are these two fields really of float type?
> 
> 	J.A.

I found values in inch unit (is that related to the fact I bought my
camera in the US?), so I wanted to play it safe by having float keys.

But I'm open to suggestions.

--
Lionel Landwerlin




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]