Hallöchen! [email protected] writes:
> Am 2015-02-25 21:36, schrieb Torsten Bronger: > >> [...] Ideally, every camera and lens should have a (numerical?) >> ID which is unique, even with local XML files present, and never >> ever changes. > > Maybe a good idea. However, we can never use this primary key to > directly query the database as we do not get the ID from exif, > right? Right. At this stage, the normal search is used. > But as soon as we have a match we can always reference the lens by > its ID internally. This may simplify some parts... Not only simplify. Note that the *only* way in Lensfun to re-retrieve an item that you're found before is another fuzzy search, and you take the first result and hope that it is it. That's an incomplete database API in my opinion. I give a concrete example: The program I know best is Darktable. It stores the lens model name in the sidecar file. So if you re-open your RAW, this name is used for the lens lookup in Lensfun and the correction is applied. But this is not really good: * The lens model name may change in Lensfun. * The lookup itself may be ambiguous because it is fuzzy (even without the "fuzzy" option). Moreover, the current approach caused two Darktable bugs because it is so confusing: * DT does not store the lens maker, making the search ambiguous. * DT used to store the translated lens model name. Such bugs cannot happen with IDs. Tschö, Torsten. -- Torsten Bronger Jabber ID: [email protected] or http://bronger-jmp.appspot.com ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Lensfun-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/lensfun-users
