PowerShot SX220 HS - Porting Thread - page 3 - General Discussion and Assistance - CHDK Forum

PowerShot SX220 HS - Porting Thread

  • 563 Replies
  • 217756 Views
*

Offline funnel

  • ****
  • 349
Re: PowerShot SX220 & SX230 HS - Porting Thread
« Reply #20 on: 25 / April / 2011, 03:51:20 »
Advertisements
Thank you. That line got rid of the memory card error but I tried to use a card with two partitions and the camera crashes on startup. Will look into that later because it's not needed for smaller SD cards.


I had problems accessing the ALT menu because I had wrong KEYMASKs. So I ORed togheter the keymap and solved this. This camera doesn't have a PRINT KEY so I choose to use the combination of DISP+SET together. Firstly I tried UP+SET but always brought up the canon set menu and I didn't like that. I'm having a bad kbd problem in the CHDK menu, when I press "soft down" it is selecting options in the menu.

Looks like RAW shooting is working even without the capt_seq.c. I got a CRW file on the card that I can't open. The badpixel.bin creation option in the menu isn't working so I can't save as DNG for now. It takes two shoots an says badpixel.bin failed Try again.
Looks like shooting from scripts is working, so an intervalometer script should work now.

Now I'm searching for the values in PROPSET3 because some of them are different than the SX210IS. Maybe this will fix some problems.

*

Offline fe50

  • ******
  • 3152
  • IXUS50 & 860, SX10 Star WARs-Star RAWs
    • fe50
Re: PowerShot SX220 & SX230 HS - Porting Thread
« Reply #21 on: 25 / April / 2011, 04:39:03 »
Looks like RAW shooting is working even without the capt_seq.c. I got a CRW file on the card that I can't open. The badpixel.bin creation option in the menu isn't working so I can't save as DNG for now. It takes two shoots an says badpixel.bin failed Try again.
reyalP's rawconvert tool should help you with this issue:

* http://chdk.wikia.com/wiki/CHDK_Tools
* http://tools.assembla.com/chdk/browser/trunk/tools/rawconvert.c

*

Offline funnel

  • ****
  • 349
Re: PowerShot SX220 & SX230 HS - Porting Thread
« Reply #22 on: 25 / April / 2011, 08:00:05 »
Now I'm having problems finding out the sensor size. How can I do this?

I tried to calclulate it but I couldn't get an exact integer value.

The numbers are:

12bpp = 19131120
10bpp = 12754080

Sensor size    1/2.3" (6.17 x 4.55 mm)

JPEG 4000x3000








*

Offline funnel

  • ****
  • 349
Re: PowerShot SX220 & SX230 HS - Porting Thread
« Reply #23 on: 25 / April / 2011, 08:47:02 »
Nevermind. I used two nested for loops to find the values.

4080x3126 or 4168x3060

*

Offline funnel

  • ****
  • 349
Re: PowerShot SX220 & SX230 HS - Porting Thread
« Reply #24 on: 25 / April / 2011, 09:10:05 »
The resolution is 4080x3126.

I managed to convert the CRW file but all I get is this.




*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: PowerShot SX220 & SX230 HS - Porting Thread
« Reply #25 on: 25 / April / 2011, 10:35:45 »
hi funnel, good work with the porting!!

I ported the sx210, so if you need any advice let me know,

I think this camera, in some sense is a mix of sx210 and ixus1000, so maybe the 2 sources will help.

I don't think it will use propset3, even sx210 has a "special" propset 3, you can find it the sx210 sources,

about the Raw stuff It may use a diferent color pixel arrangement, check ixus 1000 source too.

Re: PowerShot SX220 & SX230 HS - Porting Thread
« Reply #26 on: 25 / April / 2011, 10:50:17 »
The resolution is 4080x3126.

I managed to convert the CRW file but all I get is this.





such images happen if your buffer address is wrong.
You need look if the buffer switch address and the memory address is correct.this is working code from lib.c IXus 1000 100d Firmware.



char *hook_raw_image_addr()   //ASM1989  DONE FOR IXUS 1000
{
   if (*((int*)0x34D0) != 0)    //  34C4 + C  ->   FF885154  ->FF885180   (ixus 1000)
      return (char*)(0x46000000);   // at FFB8ECF4  pointed at aSsimgprocbuf_c DCB "SsImgProcBuf.c",0
   else
      return (char*) 0x4132CD20;   // found at[search CRAW BUF]
}

char *hook_alt_raw_image_addr()
{
   // Appears to be two raw buffers (this returns inactive buffer)
   // Addresses below found in table at FFB9922C, ref at FF88883C
   // used in _sub_FF888630__SsImgProcBuf.c__0
   // checks [0x36a0 + 0xc] --> defines which buffer is active

   if (*((int*)0x34D0) == 0)
      return (char*) 0x46000000;
   else
      return (char*) 0x4132CD20;   
}  

The ixus 1000 can use propset 4, maybe SX220 too
Ixus 1000 HS

*

Offline reyalp

  • ******
  • 14125
Re: PowerShot SX220 & SX230 HS - Porting Thread
« Reply #27 on: 25 / April / 2011, 12:08:50 »
The resolution is 4080x3126.

I managed to convert the CRW file but all I get is this.
Looks to me like your raw address is wrong, or your camera has multiple raw buffers and you got the wrong one.

You can usually find strings that give you the exact dimensions.

I think this camera, in some sense is a mix of sx210 and ixus1000, so maybe the 2 sources will help.

I don't think it will use propset3, even sx210 has a "special" propset 3, you can find it the sx210 sources,

about the Raw stuff It may use a diferent color pixel arrangement, check ixus 1000 source too.
It's different than propset 4 ? Then make a new one...
It seems to me new dryos revision => new propset these days.

@funnel
I would suggest caution using unfinished ports as a reference, especially the ixus 1000... there may be useful hints, but keep in mind a lot could be wrong.
Don't forget what the H stands for.

*

Offline funnel

  • ****
  • 349
Re: PowerShot SX220 & SX230 HS - Porting Thread
« Reply #28 on: 26 / April / 2011, 02:58:39 »
Yes, I'm modifying the sx210is source code and use the S95 and SX30 as reference too.

The raw hook address I had was wrong but I still get the same result. I think it takes the data from the buffer too early or too late. I haven't done the capt_seq.c yet and probably i need this line "BL   capt_seq_hook_raw_here" in the right place to work.

I also custom mofied the Propset3 and then found it is actually just a Propset4. Every number in propset3 above 150 was +2.
« Last Edit: 26 / April / 2011, 05:38:44 by funnel »

*

Offline reyalp

  • ******
  • 14125
Re: PowerShot SX220 & SX230 HS - Porting Thread
« Reply #29 on: 26 / April / 2011, 11:52:38 »
Yes, I'm modifying the sx210is source code and use the S95 and SX30 as reference too.
Please understand that fact that a camera is in the same series in Canon's model line has very little significance. You need to correct all the addresses etc. in every port.
Quote
The raw hook address I had was wrong but I still get the same result. I think it takes the data from the buffer too early or too late. I haven't done the capt_seq.c yet and probably i need this line "BL   capt_seq_hook_raw_here" in the right place to work.
Yes.
Don't forget what the H stands for.

 

Related Topics


SimplePortal © 2008-2014, SimplePortal