klauspost / rawspeed

Raw Image Decoder Library
GNU Lesser General Public License v2.1
72 stars 20 forks source link

White balance coefficients are not returned for Canon G1X Mark II #159

Open jluben-on1 opened 8 years ago

jluben-on1 commented 8 years ago

The white balance coefficients that RawSpeed returns via RawDecoder are nan. The canonical make and model for the Canon G1X Mark II are correct.

The offset into ColorData7 seems to be incorrect in Cr2Decoder::decodeMetaDataInternal as cam_mul ends up an array of zeros

I checked raw files from two different sources and both had this problem. Here is a link to a raw that has this problem http://www.imaging-resource.com/PRODS/canon-g1x-ii/YIMG_0035.CR2.HTM

LebedevRI commented 8 years ago

Canon PowerShot G1 X Mark II you mean. On which branch?

jluben-on1 commented 8 years ago

on master

LebedevRI commented 8 years ago

Not sure why master branch here is here. But it should be fine in default branch. (== develop)

kb-onone commented 8 years ago

I pulled from develop branch today and ran this file again. I now get [0,0,0,-nan] for wb. Is this expected?