SX110IS - howto start porting - page 9 - DryOS Development - CHDK Forum

SX110IS - howto start porting

  • 573 Replies
  • 237290 Views
Re: SX110IS - howto start porting
« Reply #80 on: 11 / April / 2009, 00:16:52 »
Advertisements
ok I used Yarvieh's binary and it works here :D omg this is soooo cool
but I am confused
I didn't know what the "shortcut" button was to activate <alt> mode was...
so I figured out it was "face focus" button to show the current feature and "Disp" shows the main menu... (up goes down and down goes up in the menu which is weird for me... but doesn't matter) so I am in amazement!!! All you develops are awesome OMG!!!
It makes a raw files that are 14.7 MB (15,467,760 bytes) in size but I dont know any application that opens raw files created by sx110 is but that isn't important right now..... it is just so cool that it boots!!!

Re: SX110IS - howto start porting
« Reply #81 on: 11 / April / 2009, 01:32:35 »
Been playing with the RAW feature all evening since i never used raw before so its kinda of a steep learning curve, since the math by chdkj and ewavr didn't come to a satisfying conclusion I wrote a quick app that just reads the file and displays the bayer matrix and have my eyes decide what looks ok :)

Its 3720 x 2772 12 bit data.

Updated camera.h with this information and enabled DNG support, (see here on how to use) however when i process the file its overly blue so I think there's still something wrong yet no clue what (I suspect the color matrix but not sure), ewavr any hints and tips on this?

Have attached updated binaries to this post.

Re: SX110IS - howto start porting
« Reply #82 on: 11 / April / 2009, 02:33:09 »
gives error
"cannot load chdk/badpixel.bin
please run
chdk/scripts/test/badpixel.lua"

when trying to enable new DNG format
« Last Edit: 11 / April / 2009, 02:39:35 by nycjv321 »

Re: SX110IS - howto start porting
« Reply #83 on: 11 / April / 2009, 02:48:52 »
Quote
Code-related issues:
--------------------
- include/camera.h: cam_CFAPattern, CAM_COLORMATRIX1, cam_CalibrationIlluminant1, CAM_ACTIVE_AREA_* and a few other things

#define cam_CFAPattern 0x02010100 // Red  Green  Green  Blue

haven't touched with the others.

Quote
- platform/<camera>/main.c: modemap    --> as ewavr said: Using propertycase browser in debug menu (propcase #49).

Code: [Select]
static struct {
int hackmode;
int canonmode;
} modemap[] = {
  { MODE_VIDEO_STD,          2600  },  //Verified
  { MODE_VIDEO_COMPACT,      2602  },  //Verified
  { MODE_SCN_AQUARIUM,       16408 },  //Verified
  { MODE_SCN_SNOW,           16404 },  //Verified
  { MODE_SCN_FOLIAGE,        16403 },  //verified
  { MODE_SCN_SUNSET,         16402 },  //verified
  { MODE_SCN_NIGHT,          16398 },  //verified
  { MODE_SCN_ISO_3200,       16413 }, //verified
  { MODE_SCN_FIREWORK,       16406 },  //verified
  { MODE_SCN_BEACH,          16405 },  //verified
  { MODE_INDOOR,             32785 },  //verified
  { MODE_KIDS_PETS,          32784 }, //verified
  { MODE_NIGHT_SNAPSHOT,     32779 },  //verified
  { MODE_LANDSCAPE,          32780 }, //verified
  { MODE_PORTRAIT,           32781 },  //verified
  { MODE_AUTO,               32768 },  //verified
  { MODE_P,                  32772 },  //verified
  { MODE_TV,                 32771 },  //verified
  { MODE_AV,                 32770 },  //verified
  { MODE_M,                  32769 },  //verified
  { MODE_EASY,               33311 }   //verified
};

Quote
- include/camera.h: properties need to be adjusted/corrected

I added these to make raw support semi usefull

Code: [Select]
    #undef CAM_SENSOR_BITS_PER_PIXEL
    #define CAM_SENSOR_BITS_PER_PIXEL   12
    #undef CAM_WHITE_LEVEL
    #define CAM_WHITE_LEVEL             ((1<<CAM_SENSOR_BITS_PER_PIXEL)-1)
    #define DNG_SUPPORT                 1

CAM_RAW_ROWPIX and CAM_RAW_ROWS where oddly enough already set to the proper values.


Re: SX110IS - howto start porting
« Reply #84 on: 11 / April / 2009, 02:55:42 »
gives error
"cannot load chdk/badpixel.bin
please run
chdk/scripts/test/badpixel.lua"

when trying to enable new DNG format

Well uhh it tells you whats wrong and what to do to fix it (as does the post I linked), not quite sure how to help you with that :)

If you don't have a copy of the script it mentions it grab a copy of a daily build for another camera and copy over the CHDK folder that contains all fonts and scripts and icons etc etc.

Re: SX110IS - howto start porting
« Reply #85 on: 11 / April / 2009, 05:46:41 »
Since chdkj  had a reasonable status report I'll just update it with what i did today.
I attached a patch against svn revision 729 and the latest binaries.

Current status:

Code-related issues:
--------------------
- core/kbd.c:   ZSTEP_TABLE_SIZE, nTxtbl
- platform/<camera>/shooting.c: dof_tbl
- include/camera.h: CAM_COLORMATRIX1, cam_CalibrationIlluminant1, CAM_ACTIVE_AREA_* and a few other things
   COLORMATRIX --> I've read in forum that DGN4PS2 should be used for
- include/camera.h: properties need to be adjusted/corrected


Problems:
---------
- LCD screen sometimes flickering (red snow)
- zoom wheel doesn't work from time to time (haven't noticed this)
- shutter button doesn't work from time to time  (haven't noticed this)

Solved:
-------
- keyboard: mixed keys, wrong assignment, JogDial up/down is swapped
- modemap
- scripts: badpixel.lua success (or atleast on my cam)
- switch to new code base (trunk) (synced up to 729)
- implementation of firmware update method (see earlier post on where to obtain keys)

Kinda Solved:
-------------
- Raw all code is ok, the file generated is ok just nothing seems to be able to process it, if you use DNG it gets a blue haze other then that looks good maybe CAM_COLORMATRIX1 related? Wrote a quick app to verify the CRW files and they look OK as well. Its just up to 3rd party apps to support this format. If i have time tomorrow i'll email a patch to the dcraw guy.

Others:
-------
- battery indicator relies upon estimated values and might be wrong
 
« Last Edit: 11 / April / 2009, 05:48:23 by Yarvieh »

*

Offline fe50

  • ******
  • 3152
  • IXUS50 & 860, SX10 Star WARs-Star RAWs
    • fe50
Re: SX110IS - howto start porting
« Reply #86 on: 11 / April / 2009, 06:49:40 »
chdk/scripts/test/badpixel.lua"
--> you'll find a small "enable DNG support" guidance here: http://chdk.setepontos.com/index.php/topic,2468.msg30870.html#msg30870

*

Offline axu89

  • *
  • 29
Re: SX110IS - howto start porting
« Reply #87 on: 11 / April / 2009, 07:00:49 »
Nice work everyone! Looks like after chdkj got the camera to boot up a lot of other people got interested :)
Mostly I need CHDK for bracketing and it seems to work with no problem, at least in the latest version by Yarvieh :D
My programming skills are pretty limited but I'll do some beta-testing ..

Keep up the good work guys! (oh, and yeah, six pack for every developer out there from me too)
[SX110 IS]


*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: SX110IS - howto start porting
« Reply #88 on: 11 / April / 2009, 07:08:30 »
- LCD screen sometimes flickering (red snow)

Corrupted zebra?

*

Offline axu89

  • *
  • 29
Re: SX110IS - howto start porting
« Reply #89 on: 11 / April / 2009, 16:20:58 »
- LCD screen sometimes flickering (red snow)

Corrupted zebra?
I have just little experience with this, but yes, I would say corrupted zebra..
When Zebra is disabled theres no traces of snow anywhere.
When Zebra is enabled and shutter button is half pressed theres red snow everywhere (Blink mode), the pattern changes little bit so it really looks like snow. If Blink is changed to Zebra, the snow transforms into "red zebra-snow".

No matter what threshold settings I use, Zebra mode wont work like it should. Thou.. If I keep shutter button half pressed long time, theres some rare short flashes of the real zebra pattern on the over-exposed parts (like it should).
[SX110 IS]

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal