The SX1 IS Porting Thread - page 5 - General Discussion and Assistance - CHDK Forum supplierdeeply

The SX1 IS Porting Thread

  • 381 Replies
  • 178126 Views
Re: The SX1 IS Porting Thread
« Reply #40 on: 11 / April / 2009, 11:23:58 »
Advertisements
... You are more than welcome to help out, especially since you now know what it means to do a port, and you already found all the information that you needed, etc.


I think that there are a lot of people around who would like (and would have the skills!) to "port"...but to find the "entry-point" is rather difficult with todays documentation. And without true "step-by-step guide" (plus Screenshots) it is hard - as we all know.

Actually in my eyes, a porter does not need larger developer skills (to start with), but an eye to quickly recognize "pattern" within two codes (one ported - as template - one to be ported). I myself am NOT a developer.

Since I've started it took me about 40hours (nighttime/weekend) and I started on Wednesday two weeks ago....

I really do have the intention to document my "learnings" later. For now I'm just eager to get a "real" Alpha Version to work....

Thank you for you thoughts,  PhyrePhox! :-)


*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: The SX1 IS Porting Thread
« Reply #41 on: 11 / April / 2009, 11:26:10 »
For SX1 sensor size is 0x1038 * 0xAD4 (see ROM:FFAFE67C for 2.00H and compare it to SX10 1.01A @ ROM:FFAD3764).

So, RAW size = 0x1038 * 0xAD4 * 12 / 8 = 4152*2772*1.5 = 17264016 = 0x1076D90 (as expected)

4152 / 2772 =3 : 2 sensor. Anybody who opened SX1 CR2 file in dcraw, suspected this.
« Last Edit: 11 / April / 2009, 11:29:31 by ewavr »

Re: The SX1 IS Porting Thread
« Reply #42 on: 11 / April / 2009, 11:43:23 »
For SX1 sensor size is 0x1038 * 0xAD4 (see ROM:FFAFE67C for 2.00H and compare it to SX10 1.01A @ ROM:FFAD3764).

So, RAW size = 0x1038 * 0xAD4 * 12 / 8 = 4152*2772*1.5 = 17264016 = 0x1076D90 (as expected)

4152 / 2772 =3 : 2 sensor. Anybody who opened SX1 CR2 file in dcraw, suspected this.


Ah???

Great!  Thanks!

Question: Is there a thread in the forum, explaining this?

And subsequently: How is CAM_ACTIVE_AREA_X1 / CAM_ACTIVE_AREA_X2 calculated from this?



More Screenshots (1)
« Reply #43 on: 11 / April / 2009, 11:49:50 »
Most things work




More Screenshots (2)
« Reply #44 on: 11 / April / 2009, 11:52:43 »
CHDK on the SX1

normal shot mode (4:3?)
wide shot mode (16:9?)
Through the EVF :-) Not sharp, but everything is there

*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: The SX1 IS Porting Thread
« Reply #45 on: 11 / April / 2009, 12:02:17 »
Question: Is there a thread in the forum, explaining this?
Maybe no. But I know that sensor size is stored in ROM and found it using IDA search for SX10 with known sensor size, then found the same function for SX1.

Quote
And subsequently: How is CAM_ACTIVE_AREA_X1 / CAM_ACTIVE_AREA_X2 calculated from this?
Active area cannot be calculated from RAW and JPEG size.
I use dng4ps2 for active area search: JPEG after DNG conversion must be equal to camera JPEG pixel-to pixel.
Maybe active area is also stored in ROM, but I don't know how tio find it there.
Maybe active area can be read directly from CR2 file. If we wait till Adobe DNG converter will siupport SX1, we can read many useful values from DNG (colormatrix1 & 2 etc).

More Screenshots (3)
« Reply #46 on: 11 / April / 2009, 12:03:42 »
As mentioned: Basically it works fine (also the most important things: the games and scripts)

But

-  "Shift" of CHDK menu (all items) - depending of Display-Mode choosen on Cam (see pic 2/3 of this post). This will affect the Zebra-Mode too...if wrongly shifted, the Zebra area is also shifted on top of the live-view.
- Curves-Mode: Does not show anything useful...

EDIT 13.4.09: The "Shift" has been solved now. See later Posts

- Taking a Picture will crash the Cam. The Override Parameters are taken correctly: There will be a corresponding pause if taking a Picture with 2sec Exposure or 4sec or ...  But after Shot is done, Picture is returning an Cam is crashing immediately. No Picture is stored. AutoISO Feature is working ok.
- Movie Rec reacts similar....push the button: It will start and crash
« Last Edit: 13 / April / 2009, 05:34:37 by fboesch »

Re: The SX1 IS Porting Thread
« Reply #47 on: 11 / April / 2009, 12:17:21 »

Quote
And subsequently: How is CAM_ACTIVE_AREA_X1 / CAM_ACTIVE_AREA_X2 calculated from this?
Active area cannot be calculated from RAW and JPEG size.
I use dng4ps2 for active area search: JPEG after DNG conversion must be equal to camera JPEG pixel-to pixel.
Maybe active area is also stored in ROM, but I don't know how tio find it there.
Maybe active area can be read directly from CR2 file. If we wait till Adobe DNG converter will siupport SX1, we can read many useful values from DNG (colormatrix1 & 2 etc).


With the Upgrade to FW 2.00 Canon also made "Digital Photo Professional 3.6" available to SX1 Users...

But the "Original RAW Pictures (with .CR2 Ending!) from SX1" are of exactly the same size as the JPEG pictures (3648x2736 with size of about 12MB)...(so kind of pre-processed/cut down)... will RAW from CHDK differentiate from that?

Due to my current "crash Problem":

I think I've got the problem, that the SX1 will not be able to "store" the taken pictures...

I would like to follow the code from the moment, the "Shutter" has been pressed (assumably somewhere in Capt_Seq.c) and after the "Shot" has been done, the Sub_Routine of "STORE TO DISK" is called....I think the problem is there.

Can you name me the Adress on the SX10? (i will be fine with that and will be able to find it in my SX1 Code)....

Thanks


*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: More Screenshots (3)
« Reply #48 on: 11 / April / 2009, 12:21:11 »
- Taking a Picture will crash the Cam. The Override Parameters are taken correctly: There will be a corresponding pause if taking a Picture with 2sec Exposure or 4sec or ...  But after Shot is done, Picture is returning an Cam is crashing immediately. No Picture is stored. AutoISO Feature is working ok.
- Movie Rec reacts similar....push the button: It will start and crash

Without seeing of your code nobody can help you...

Re: The SX1 IS Porting Thread
« Reply #49 on: 11 / April / 2009, 14:02:13 »
Just modifiying the sx1 code (based on your current SX10 - long exposure add-on)...will put it together and upload it later

Thx
« Last Edit: 11 / April / 2009, 18:32:36 by fboesch »

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal