demo/cfa.cpp bugfix

Alexey Khudyakov alexey.skladnoy at gmail.com
Tue Feb 26 04:05:54 PST 2008


Hello.


demo/cfa.cpp contains bug. It writes data in machine byte order but
pgm require most significant byte first.  First patch fixes this
bug. Probably this is not best way to fix it but al least it works for
me.

Second patch sets the maximum value of pgm pixels to actual maximum
pixel value of image.  I've found it convinient to see something with
imagemagick's display. Without whis patch it shows only black screen.

--
  Regards
  Alexey Khudyakov
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fixes-bug-in-demo-cfa.cpp.-It-wrote-pgm-with-machine.patch
Type: text/x-diff
Size: 1102 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/libopenraw-dev/attachments/20080226/10dd3ee4/attachment.patch 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-sets-maximum-pixel-value-of-pgm-to-actual-maximum.patch
Type: text/x-diff
Size: 1003 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/libopenraw-dev/attachments/20080226/10dd3ee4/attachment-0001.patch 


More information about the Libopenraw-dev mailing list