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

SX110IS - howto start porting

  • 573 Replies
  • 240777 Views
Re: SX110IS - howto start porting
« Reply #370 on: 11 / May / 2009, 16:02:27 »
Advertisements
nice result up to now :)

I will try it too. Tomorrow or...
Canon PowerShot SX110 IS
CHDK: at Autobuild now
Wiki: SX110IS

*

Offline chdkj

  • ***
  • 140
Re: SX110IS - howto start porting
« Reply #371 on: 11 / May / 2009, 16:05:15 »
@reyalp and @axu89: great!

@obihoernchen: look for "SX110" in include/camera.h and change CAM_BLACK_LEVEL (as axu89 already said) to whatever. Compile it: if you use Windows than you should consider 'CHDK Shell' from user whim for compiling chdk. It is a completely worry-free package...  http://chdk.wikia.com/wiki/CHDK-Shell). Please keep in mind that firmware update method requires the appropriate FI2.inc file in /platform and you have to check in the FI2-option in CHDK Shell.
Have fun!
sx110

Re: SX110IS - howto start porting
« Reply #372 on: 11 / May / 2009, 16:47:40 »
Yeah i think i can do it ;) I dont need the FI2 Feature i never use it :P

only one question in camera.h there is nearly 10 times #define CAM_BLACK_LEVEL and one value is 31 all other are 127. Which I have to change?

PS: Which values would be good? Should I also try 129, 130, ... ? Or is there only 127 and 128?
« Last Edit: 11 / May / 2009, 17:48:01 by Obihoernchen »
Canon PowerShot SX110 IS
CHDK: at Autobuild now
Wiki: SX110IS

*

Offline axu89

  • *
  • 29
Re: SX110IS - howto start porting
« Reply #373 on: 11 / May / 2009, 23:44:57 »
Yeah i think i can do it ;) I dont need the FI2 Feature i never use it :P

only one question in camera.h there is nearly 10 times #define CAM_BLACK_LEVEL and one value is 31 all other are 127. Which I have to change?

PS: Which values would be good? Should I also try 129, 130, ... ? Or is there only 127 and 128?

Its a list of all camera models, SX110 is at the bottom of the file and not all cameras have it defined. I dont know what would be the effect if it would be undefined for SX110..
I will experiment more today if I have the time (propably not :( )
reyalp pointed out a good thread. Theres some discussion about the black level value:

If you didn't have the correct address, you'd get garbage or a partial image, not an image with the wrong colors.

Incorrect CAM_BLACK_LEVEL in the sd990 had an effect somewhat like what was described here. See  http://chdk.setepontos.com/index.php/topic,2972.30.html
[SX110 IS]

Re: SX110IS - howto start porting
« Reply #374 on: 12 / May / 2009, 11:12:46 »
Yeah i think i can do it ;) I dont need the FI2 Feature i never use it :P

only one question in camera.h there is nearly 10 times #define CAM_BLACK_LEVEL and one value is 31 all other are 127. Which I have to change?

PS: Which values would be good? Should I also try 129, 130, ... ? Or is there only 127 and 128?

Its a list of all camera models, SX110 is at the bottom of the file and not all cameras have it defined. I dont know what would be the effect if it would be undefined for SX110..
I will experiment more today if I have the time (propably not :( )
reyalp pointed out a good thread. Theres some discussion about the black level value:

If you didn't have the correct address, you'd get garbage or a partial image, not an image with the wrong colors.

Incorrect CAM_BLACK_LEVEL in the sd990 had an effect somewhat like what was described here. See  http://chdk.setepontos.com/index.php/topic,2972.30.html

i'm so stupid -.-
Canon PowerShot SX110 IS
CHDK: at Autobuild now
Wiki: SX110IS

*

Offline chdkj

  • ***
  • 140
Re: SX110IS - howto start porting
« Reply #375 on: 12 / May / 2009, 16:13:11 »
Just an update:

Checked last change log and bug list for sx110 (http://chdk.setepontos.com/index.php/topic,2838.msg33314.html#msg33314) and current autobuild code base:

Solved or accepted at least ;-)
====================
- core/kbd.c:   ZSTEP_TABLE_SIZE, nTxtbl --> using same values as sx100 does; optics are nearly the same (or identical); always in code base
- platform/<camera>/shooting.c: dof_tbl --> it's just unused in code... So I will remove it from code base some day if nobody rejects this
- platform/<camera>/sub/lib.c: hook_raw_image_addr --> checked again and again... RAW-images are possible at all. Someone has to decide ... I'm pretty sure, current code base is correct, so this issue is solved.

open issues/problems:
===============
- include/camera.h: CAM_COLORMATRIX1, CAM_ACTIVE_AREA_* --> must be adapted to SX110
- GetBatteryTemperature --> still linked to GetCCDTemperature, otherwise (that means using the real function) it will provoke a camera crash

BTW: I've tracked some other porting threads and some of them seems to be decease after a successful port (like SX100). But CHDK is evolving and those cameras miss new features or enhancements requiring camera specific code (have a look at http://chdk.setepontos.com/index.php/topic,2838.msg33558.html#msg33558 as an example). Hope, SX110 will overcome the next decade ;-))))


Greetings.
sx110

*

Offline axu89

  • *
  • 29
Re: SX110IS - howto start porting
« Reply #376 on: 13 / May / 2009, 12:33:48 »
Im giving up with the colormatrix :( Not really possible to get 100% good result with my equipment. Best I can do is what I already posted. Is there anyone with good color check table or something...? Where is Yarvieh
[SX110 IS]

Re: SX110IS - howto start porting
« Reply #377 on: 14 / May / 2009, 21:38:08 »
I did a few more tries with the color chart and gave up on it the dng's just never look right, I returned to hacking other stuff like my gigapan.

Re: SX110IS - howto start porting
« Reply #378 on: 17 / May / 2009, 10:22:13 »
Hi, every body.
I'm planing to buy a sx110 soon in part thanks to CHDK development.
About the RAW problem, as the SX110 has a 12 bit image and the DNG has 10, is it not normal to  have some differences between the jpeg photo and the one made frow the DNG. I mean there must be  lost data in the conversion from 12 to 10 bit.
I don't have great knowlegde in informatic nor in photography but it 's just an idea that come to my mind. I dont know if it can help.
Thank you all for the great job you're doing here.

Re: SX110IS - howto start porting
« Reply #379 on: 17 / May / 2009, 11:36:02 »
You`re wrong in several points here, jpg's use 8 bit per channel not 10, the dng file format supports 12 bit data just fine and we are keeping all 12 bits no data is being converted. The problem is not that there is 'some' difference the dng looks like someone put a heavy blue filter on. Thanks for thinking along with us but though.

 

Related Topics


SimplePortal © 2008-2014, SimplePortal