> >> 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. >
Ok, I fully agree. That would really make sense. What scheme could we use to set the IDs? Simple enumeration is too error prone and we always have to keep track of the last ID. Maybe a combined format: "PX1755-1" for a Pentax 17-55mm lens. If there are several with the same focal length we can increase the last part by one. Or maybe hashing the attributes? Sebastian ------------------------------------------------------------------------------ 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
