rawconvert.exe -10to8 -pgm -w=2672 -h=1968 CRW_0005.RAW IMG_0005.PGM
I have updated source code for rawconvert.c...What need to be updated:1. Author of the original code in the header comment inside source file2. Wiki options description for rawconvert.c
REVISIONS:1. Initial release. Author: reyalP (28-Oct-2009) CHDK trunk SVN changeset #823 --> http://tools.assembla.com/chdk/changeset/823 Forum link: http://chdk.setepontos.com/index.php/topic,2509.msg42402.html#msg42402 2. Portable Gray Map support added by cppasm (21-May-2010) Forum link: http://chdk.setepontos.com/index.php/topic,5207.msg50599.html#msg50599 Changes: Added support PGM (portable graymap) file format 8 and 16 bits per pixel supported, but 16 bit is supported by limited subset of viewers so it's better to use 8 bit PGM PGM output is enabled with -pgm option, and you must specify .PGM extension to output file. example: rawconvert.exe -10to8 -pgm -w=2672 -h=1968 CRW_0005.RAW IMG_0005.PGM
reyalp is the original author. I suggested adding the ability to output PGM to him in April, but he didn't want to.However, I believe this is a useful addition.
Hm ...I'v been playing with rawconvert.c with raw files for my A620I think there is an error in the code if -noshift parameter is NOT used. If I convert from 10 bit to 16 bit and back, resulting file is different than original one. On the other side, conversion with -noshift seems to be okI'm not very familiar in c, as I'm pascal/delphi programer, but maybe someone take a look ...
>rawconvert -10to16 -w=2888 -h=2136 TEST.CRW test10to16.rawinput: TEST.CRW 2888x2136 10 bpp 7710960 bytesoutput: test10to16.raw 16 bpp 12337536 bytes multiply pixel values 64done>rawconvert -16to10 -w=2888 -h=2136 test10to16.raw test16to10.rawinput: test10to16.raw 2888x2136 16 bpp 12337536 bytesoutput: test16to10.raw 10 bpp 7710960 bytes discard lower 6 bitsdone>md5sum TEST.CRWd63dd0d31fdba8e440f3c963b9a48edd *TEST.CRW>md5sum test16to10.rawd63dd0d31fdba8e440f3c963b9a48edd *test16to10.raw
Started by emu
Started by Bg~
Started by bovirus
General Discussion and Assistance
Started by Jimilu
Started by sat-fan
Hello, I'm a NEWBIE - HELP!! (Newbies assistance, User Guides and thank you notes)