SD940 (IXUS120) porting thread - page 18 - DryOS Development - CHDK Forum

SD940 (IXUS120) porting thread

  • 542 Replies
  • 143170 Views
Re: SD940 (IXUS120) porting thread
« Reply #170 on: 01 / January / 2011, 22:31:53 »
Advertisements
Your version boots just fine and seems to work like the version I compiled

Something has been bugging me for a while - since we've been wrestling with this whole memory issue.  It just came to me a few minutes ago what it was - something I noticed months ago but ignored while chasing bigger problems.

In my version of  trunk/platform/ixus120_sd940/sub/103c/makefile.inc, the value of MEMISOSTART=0x153E84.  I can't remember why or where that came from. 

In trunk/platform/ixus120_sd940/sub/102c/makefile.inc, the same constant is MEMISOSTART=0x13CA18

Could that be a clue ?
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline waldo

  • ***
  • 238
Re: SD940 (IXUS120) porting thread
« Reply #171 on: 01 / January / 2011, 22:48:37 »
Your version boots just fine and seems to work like the version I compiled

Something has been bugging me for a while - since we've been wrestling with this whole memory issue.  It just came to me a few minutes ago what it was - something I noticed months ago but ignored while chasing bigger problems.

In my version of  trunk/platform/ixus120_sd940/sub/103c/makefile.inc, the value of MEMISOSTART=0x153E84.  I can't remember why or where that came from. 

In trunk/platform/ixus120_sd940/sub/102c/makefile.inc, the same constant is MEMISOSTART=0x13CA18

Could that be a clue ?

Yes, that would make a difference.  I believe the 0x13CA18 value is correct for both versions.

Re: SD940 (IXUS120) porting thread
« Reply #172 on: 02 / January / 2011, 00:38:22 »
Yes, that would make a difference.  I believe the 0x13CA18 value is correct for both versions.

Wow ... picked up almost 100K of free memory with that change.  Up tp 284K with no images on the SD card and nothing enabled.   Time for some regression testing.
Ported :   A1200    SD940   G10    Powershot N    G16

Re: SD940 (IXUS120) porting thread
« Reply #173 on: 02 / January / 2011, 04:55:03 »
>In answer to your original question, Zebra works fine in that mode as well as the other resoultions.

Do you mean that you have not the offset Problem in the 4:3 modes (which center the image in X) ?

In older post you write about offset Problem
 
""""
That worked - thanks !!  I still have an offset between actual image and either the zebra pattern or the edge overlay pattern so it doesn't look like much. But the pattern is definitely there.  One of my buffer size values in lib.c is wrong I suspect.
""""

have you change something ?
currently all 16:9 display camera have the problem that zebra only work without offset in W mode
« Last Edit: 02 / January / 2011, 04:56:50 by Bernd R »
Ixus 1000 HS


Re: SD940 (IXUS120) porting thread
« Reply #174 on: 02 / January / 2011, 09:52:21 »
Maybe I'll do a stripped-down version for my own use.

This is starting to look really interesting if it solves your memory shortage ->
   
experimental alternate memory allocation  http://chdk.setepontos.com/index.php?topic=5980.0
Ported :   A1200    SD940   G10    Powershot N    G16

Re: SD940 (IXUS120) porting thread
« Reply #175 on: 02 / January / 2011, 11:02:06 »
have you change something ?
currently all 16:9 display camera have the problem that zebra only work without offset in W mode
Only changes were this : http://chdk.setepontos.com/index.php?topic=5855.msg58941#msg58941

Now that I go back an look at the camera,  zebra seems to display correctly - alligned with the actual bright areas in the image in both the X and Y direction.

However,  edge overlay and grids are not right.   Grids are compressed about 10% in the horizontal and aligned to the left hand edge.   Edge overlay is also 10% compressed overall but the offset is bigger on the right hand side of the screen than on the left hand side of the screen. (i.e. very close to the left hand edge there is essentially no offset).

@Bernd R   Is that what you desribe as an offset ?

UPDATE :  Fixed :  ASPECT_GRID_XCORRECTION(x) in SD940 Beta code of camera.h is wrong causing both edge overlay and grids to draw incorrectly. Should be
Code: [Select]
    #define ASPECT_GRID_XCORRECTION(x)  ( (x) )  //grids are designed on a 360x240 basis
« Last Edit: 02 / January / 2011, 11:50:48 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline waldo

  • ***
  • 238
Re: SD940 (IXUS120) porting thread
« Reply #176 on: 02 / January / 2011, 14:52:49 »
DOH !

I was using the wrong address for free() - should be 0xFF814138.  Much better now...

Re: SD940 (IXUS120) porting thread
« Reply #177 on: 02 / January / 2011, 15:31:53 »
DOH !

I was using the wrong address for free() - should be 0xFF814138.  Much better now...

I'm going to update the Beta code later today with the updates from yesterday & today.  I'll make your free() change and rebuild the 102c as well.  The values from camera.h and lib.c used for RAW are almost certainly wrong so I wanted a few quiet minutes to look at that before I do the update.

Update : Curiously,  you had 0xFF814138 commented out  for free() in your stubs_entry_2.S for the 102c
« Last Edit: 02 / January / 2011, 15:35:19 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16


*

Offline waldo

  • ***
  • 238
Re: SD940 (IXUS120) porting thread
« Reply #178 on: 02 / January / 2011, 17:37:10 »
While you're at it, you can make it refocus in video mode:

in cameras.h, add:
#define CAM_AF_SCAN_DURING_VIDEO_RECORD 1

for 102c, add:
NHSTUB(ExpCtrlTool_StartContiAE, 0xFF844034)
NHSTUB(MakeAFScan, 0xFF940504)

for 103c, add:
NHSTUB(ExpCtrlTool_StartContiAE, 0xFF844034)
NHSTUB(MakeAFScan, 0xFF9406CC)

*

Offline waldo

  • ***
  • 238
Re: SD940 (IXUS120) porting thread
« Reply #179 on: 02 / January / 2011, 19:05:43 »
Oh, and one more thing...

Can you turn off the flashing orange LED?  I think most people would find it confusing.

 

Related Topics