the sx20 porting thread - page 47 - General Discussion and Assistance - CHDK Forum supplierdeeply

the sx20 porting thread

  • 1286 Replies
  • 397070 Views
Re: the sx20 porting thread
« Reply #460 on: 19 / April / 2010, 13:02:57 »
Advertisements
I'm testing the 1.02B build and the only problem I'm coming across is the .CRW files can't be read by any program I try (Photoshop, Bridge, dng4ps, etc.). I've tried to run the badpixel script so that I can save the files as DNG's but that's not working either. Anything I've missed??

Re: the sx20 porting thread
« Reply #461 on: 19 / April / 2010, 16:59:54 »
@kaych - I do the conversion in the camera (in RAW menu I choose save as RAW and somewhere in the middle there's save as DNG). I believe that for DNG that you have to create the badpixel.txt file yourself, off camera, as the LUA libs were disabled (in 100f code) because of some incompatibilities ? So the camera can't do the file itself. Then you put it into CHDK/ folder on the card - and that's it.

What did you include in your badpixel.txt file?

Re: the sx20 porting thread
« Reply #462 on: 19 / April / 2010, 17:09:19 »
OK so i've looked at the colours again as last time I didn't remove my CCHDK file! None of the CAM_BITMAP_PALETTE are suitable for the SX20 so i've create my own and given it the number 6. Here it is:

Code: [Select]
#elif CAM_BITMAP_PALETTE==6 //(sx20)
#define COLOR_TRANSPARENT   0x00
#define COLOR_WHITE         0x01
#define COLOR_RED           0x91
#define COLOR_GREY          0x0F
#define COLOR_GREEN         0xA9
#define COLOR_BLUE_LT       0x2D
#define COLOR_BLUE          0x3B
#define COLOR_YELLOW        0x8B
#define COLOR_BLACK         0xFF
#define COLOR_BG            0xFE
#define COLOR_FG            COLOR_WHITE
#define COLOR_SELECTED_BG   COLOR_RED
#define COLOR_SELECTED_FG   COLOR_WHITE
#define COLOR_ALT_BG        COLOR_BG
#define COLOR_SPLASH_RED    COLOR_RED
#define COLOR_SPLASH_PINK   0xEA
#define COLOR_SPLASH_GREY   0x16
#define COLOR_HISTO_R       COLOR_RED
#define COLOR_HISTO_R_PLAY  COLOR_RED
#define COLOR_HISTO_B       COLOR_BLUE
#define COLOR_HISTO_G       COLOR_GREEN
#define COLOR_HISTO_G_PLAY  COLOR_GREEN
#define COLOR_HISTO_BG      COLOR_BLUE_LT
#define COLOR_HISTO_RG      COLOR_YELLOW
#define COLOR_HISTO_RB      COLOR_RED
#define COLOR_HISTO_RB_PLAY COLOR_HISTO_RB
#define COLOR_HISTO_B_PLAY  COLOR_HISTO_B
#define COLOR_HISTO_BG_PLAY COLOR_BLUE_LT
#define COLOR_HISTO_RG_PLAY COLOR_YELLOW

And away we go from trunk again... I suppose this isn't to bad though.


I should post my code soon just in case anyone else wants to help or try and compile the 100f.

Re: the sx20 porting thread
« Reply #463 on: 19 / April / 2010, 17:47:16 »
Hi friends
I cant see anything in mini-console , just a black box!
I cant make badpixel.bin with the script.


Re: the sx20 porting thread
« Reply #464 on: 19 / April / 2010, 17:57:14 »
5. rotation data isn't put into the EXIF or is incorrect.

After 3 hours, I found the culprit :)

in propset2.h, the:

Code: [Select]
#define PROPCASE_ORIENTATION_SENSOR 219
is incorrect (location 219 always returns 0). Correct value is 221. On my 100f is working now!

Re: the sx20 porting thread
« Reply #465 on: 19 / April / 2010, 18:18:04 »
******** CAPTURING DNG IN CAMERA ***********
ok, just follow these steps,
1- take one raw image with camera and export it to a folder

2- Download show_bad_b.exe from the link and copy it to above folder:
http://chdk.wikia.com/index.php?title=Special:Outbound&f=Badpixel_removal&u=http%3A%2F%2Fewavr.nm.ru%2Fchdk%2Fshow_bad_b.zip

(you can give some information about this in the forum, http://chdk.wikia.com/wiki/Badpixel_removal#Links)

3-in command line type this string, with the name of raw file in step 1:
show_bad_b.exe <CHDK_RAW_FILE_NAME>

4- in same folder after this process you can find the file :   badpixel.bin

5- copy it to CHDK folder inside the  memory card

6- now you can adjust the DNG format in chdk menu and take DNG photos   :)
« Last Edit: 21 / April / 2010, 08:27:04 by savalangh »

Re: the sx20 porting thread
« Reply #466 on: 19 / April / 2010, 18:48:50 »
viulian I think you need to be using propcase 3, in camera.h.

#define CAM_PROPSET                 3

I'm starting to think we need a common code repo.
« Last Edit: 19 / April / 2010, 18:54:24 by acid2000 »

Re: the sx20 porting thread
« Reply #467 on: 19 / April / 2010, 18:53:23 »
Trying to test , not sure what I have done wrong as I have followed everything as far installation wise,keep getting a Update file error on the firmware update prompt screen or the CHDK logo on write protect and the camera freezes?? Any ideas on this? CHDK screen shows correctly and shows the correct 102b build, also shows the correct beta build.

I get exactly as you describe on mine also, thought I had done something wrong but I tried it twice. 

I really appreciate what everyone is doing.


Re: the sx20 porting thread
« Reply #468 on: 19 / April / 2010, 19:04:17 »
Quote
I get exactly as you describe on mine also, thought I had done something wrong but I tried it twice. 

I really appreciate what everyone is doing.

Guys i'm not psychic. Things I need to know from people having issues getting it to work.

*Make and model of your SD card.
*Partition format FAT32 / FAT16.
*How you made the card i.e. card tricks.
*Is it bootable, have you been able to confirm it.
*The size of the SD card and how many partitions have been created on it.
*Have you used CHDK before.

Re: the sx20 porting thread
« Reply #469 on: 19 / April / 2010, 19:09:25 »
To anyone who is interested in helping to code for the SX20 I have made my source tree publicly available via http://bitbucket.org/acid2000/chdk_sx20

viulian, you might want to try merging any 100f specific changes you have and building off this tree. It should allow you to get lua support.

Quote
is incorrect (location 219 always returns 0). Correct value is 221. On my 100f is working now!

Really, on mine the EXIF is set properly if I take a portrait photo with the hand grip at the top, however if the hand grip is at the bottom then the EXIF data is upside down. Can you reproduce?
« Last Edit: 19 / April / 2010, 19:17:33 by acid2000 »

 

Related Topics