Kalpanika / x3f

Tools for manipulating X3F files from Sigma cameras
88 stars 28 forks source link

What is extended_types and extended_data? #62

Closed erikrk closed 9 years ago

erikrk commented 9 years ago

The data in the X3F header decoded as extended_types and extended_data does not seem to make much sense. For example in dp2_a.x3f, the first 8 "types" from the word "Standard" in ASCII. What a coincidence. This has to be be something else. Moreover, extended_data is assumed (correctly?) to consist of 32-bit floats, but it isn't read as such. It's read as 32-bit integers using GET4 and then converted to floats.

erikrk commented 9 years ago

After a closer look at the files it appears that X3F files starting from version 2.3 have an additional 16-charcter field which is the color mode, and staring from version 3.0 the number of extended data is increased from 32 to 64. I will make a fix for this.