[Rawstudio-dev] various patches for svn-2079

Ille tam.ille at free.fr
Fri Nov 28 10:18:17 CET 2008


Le Thu, 27 Nov 2008 11:10:54 +0100,
Ille <tam.ille at free.fr> a écrit :

> Hi,
> 
> I join some patches to be applied to rawstudio-svn-2079.
> 
> The x3f patch permit auto rotation of x3f files according to the x3f
> header's rotation field. It also add a check in dcraw.cc to be sure
> x3f pixels values do not exceed 4095. Surely this check must be done
> somewhere else (to not modify dcraw.cc), but it seemed to me the
> easiest way for now, as my computing skills are not so good.
> It also add two new fields to the metadata struct: exposure and
> sharpness, as those are defined in the x3f header.
> Plus I tried to get the extended data correctly loaded, so that work
> done with Sigma Photo Pro could be reused in rawstudio. the result is
> truly not exact, but I will try to enhance this.

Sorry, the x3f.patch is wrong. I didn't notice before, but x3f files
were opened with the half_size parameter set to FALSE. As far as I have
understand, this sould only be the case for bayer captor. So in
rs_image16_open_xf3() just always send TRUE as half_size parameter when
opening a x3f file. Also, the photo should be opened with dcraw only
after verifying that this is in fact a x3f. And I forgot to close the
rawfile after opening (too bad).

So I join a corrected patch.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: x3f.patch
Type: text/x-patch
Size: 7293 bytes
Desc: not available
Url : http://rawstudio.org/pipermail/rawstudio-dev/attachments/20081128/25e3a476/attachment.bin 


More information about the Rawstudio-dev mailing list