Extracting lens_info from makernote

I am sorry to ask such a naive question, but what I need is to extract tags under makernote of the raw image such as the CameraFormat, etc.

How can I accomplish this? For instance I could access the whole XMP data by LibRaw.imgdata.idata.xmpdata I was wondering how to access the parameters in libraw_makernotes_lens_t structure.




Different camera vendors use

Different camera vendors use very different makernotes format, so there is no generic interface in LibRaw to get makernotes access.

Some of makernotes (lens, shooting info) is parsed and stored in imgdata.lens and imgdata.makernotes.
Again, many fields are vendor specific and you need to write some code to deal with this data.

-- Alex Tutubalin