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

PowerShot SX220 HS - Porting Thread

  • 563 Replies
  • 175781 Views
*

Offline funnel

  • ****
  • 349
Re: PowerShot SX220 HS - Porting Thread
« Reply #110 on: 08 / June / 2011, 07:07:00 »
Advertisements
Quote
1- Efective Focal Lenght in OSD doesn't fit the lens specifications. With scale factor 100 it goes from 28 mm to 304 or so (I don't remember the exact value), using scale factor 115 it goes from 32 mm to 391 mm. I couldn't get a numer that fits the lens specifications.

Ok I found out it was a wrong value in fl_tbl[]

Code: [Select]
static const struct {
int zp, fl;
} fl_tbl[] = {
  {   0,   5000},
  {  16,   6800},
  {  32,   9100},
  {  62,  16200},
  {  78,  22300},
  { 102,  35900},
  { 125,  70000},
};

changed 125 from 60000 to 70000 and now goes up to 396mm.
« Last Edit: 08 / June / 2011, 07:27:11 by funnel »

*

Offline philmoz

  • *****
  • 3411
    • Photos
Re: PowerShot SX220 HS - Porting Thread
« Reply #111 on: 08 / June / 2011, 07:26:12 »
Quote
1- Efective Focal Lenght in OSD doesn't fit the lens specifications. With scale factor 100 it goes from 28 mm to 304 or so (I don't remember the exact value), using scale factor 115 it goes from 32 mm to 391 mm. I couldn't get a numer that fits the lens specifications.

Can you tell me how did you display that values in OSD?

OSD Parameters
  Miscellaneous Values
    Show Zoom - On
    Show Zoom value as - EFL
   Adapter Lens Scale = 100

You need to implement the get_effective_focal_length function to match the actual lens FL to the 35mm equivalent FL.

Phil.
CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)
  g7x2 (1.01a, 1.01b, 1.10b)

*

Offline funnel

  • ****
  • 349
Re: PowerShot SX220 HS - Porting Thread
« Reply #112 on: 08 / June / 2011, 08:07:47 »
Thanks. I left the data from the SX210 because it has the same lenses. Now I also modified the CF_EFL from 5670 to 5600 and now the numbers look right, from 28-392mm. In sx210 was assumed that the focal length went from 27.3-392mm. I hope the numbers are right now.

Re: PowerShot SX220 HS - Porting Thread
« Reply #113 on: 08 / June / 2011, 15:29:38 »
Another similar crash happens when you try to use the manual focus during video recording and apply fast_zoom. The reason why this is happening is because the fast_zoom key isn't diasabled in alt mode. All ports until this one had physw_status up to physw_status[2], this camera look like has up to physw_status[5] and the value in physw_status[3] changes when using fast_zoom. I tried to fix that without success for now.
i hope to use the focus while recording video, it gives more options to get a cinelike movie :)


*

Offline funnel

  • ****
  • 349
Re: PowerShot SX220 HS - Porting Thread
« Reply #114 on: 08 / June / 2011, 15:42:35 »
I tried the lua script from this topic http://chdk.setepontos.com/index.php?topic=5295.45 and looks like it's working. The Av, Tv and Sv can be set in video. I needed to remove two lines autoexp() and manualexp() because on this camera we can set the exposure before starting the recording and this locks the continuous AE. This is an experimental script and needs chdk to be compiled with native calls enabled.

*

Offline funnel

  • ****
  • 349
Re: PowerShot SX220 HS - Porting Thread
« Reply #115 on: 08 / June / 2011, 15:52:16 »
Quote
i hope to use the focus while recording video, it gives more options to get a cinelike movie

You can do it if you really want but you must be careful with the zoom leveler.

Follow this steps
- Go to video mode
- set to manual focus
- go into alt menu
- start recording (not needed for testing)
- now with the right button set the factor
- use zoom leveler to adjust focus. here you must be careful to use only slow zoom or it crashes
- to change zoom go out from alt menu and use zoom
- go back into alt menu and use manual focus.


Re: PowerShot SX220 HS - Porting Thread
« Reply #116 on: 09 / June / 2011, 03:37:27 »
could anybody upload a test video how the manual focus works in videos of Canon SX 220HS?

*

Offline funnel

  • ****
  • 349
Re: PowerShot SX220 HS - Porting Thread
« Reply #117 on: 09 / June / 2011, 06:13:50 »
Great news, I found a way to solve the AF Scan crash. I used DoAFLock() instead of MakeAFScan(). I was experimenting with UnlockAF after MakeAFScan to see what happens and tried also DoAFLock and found it. Look like it has the same functionality and doesn't crash when zooming.


Re: PowerShot SX220 HS - Porting Thread
« Reply #118 on: 09 / June / 2011, 11:09:33 »
Quote
i hope to use the focus while recording video, it gives more options to get a cinelike movie

You can do it if you really want but you must be careful with the zoom leveler.

Follow this steps
- Go to video mode
- set to manual focus
- go into alt menu
- start recording (not needed for testing)
- now with the right button set the factor
- use zoom leveler to adjust focus. here you must be careful to use only slow zoom or it crashes
- to change zoom go out from alt menu and use zoom
- go back into alt menu and use manual focus.


i tested again step by step but it works only at beginning. It focuses an half second then focus function finish to work. :(
I think it would be easier if the focus function was perfomed through the rotating wheel

*

Offline funnel

  • ****
  • 349
Re: PowerShot SX220 HS - Porting Thread
« Reply #119 on: 09 / June / 2011, 11:43:05 »
Good idea. Will try to do that to see if I can do it.

 

Related Topics