SX520HS Porting thread. - page 5 - DryOS Development - CHDK Forum supplierdeeply

SX520HS Porting thread.

  • 209 Replies
  • 68247 Views
*

Offline srsa_4c

  • ******
  • 4437
Re: SX520HS Porting thread.
« Reply #40 on: 08 / May / 2016, 08:51:43 »
Advertisements
Also as you can see with the other attachment when I take a photo in raw mode I get the outer edges of my lens... Anything I can do about that other then zooming?
What you see there is what the sensor sees. Lens distortion is of course corrected in the camera's JPEG files. Since this cam has no native RAW, you have the following choices:
If you're using Adobe software, you* can create a lens profile for this camera. Disclaimer: I don't actually know how this is done because I have never tried it myself. The Lens Profile Creator can be downloaded from Adobe.

*Well, someone will have to.

If you're not using Adobe software:
RAW Therapee has a generic lens correction filter, and it can also use Adobe lens profiles (if available).

Don't worry about language, large number of forum members (including myself) are not native English speakers either.

Your romlog shows that - for some reason - the camera has run out of memory. It's either because it's already a low amount, or it can also be caused by memory corruption.

There are two ways for checking the memory status:
Miscellaneous stuff -> Show memory info (basic information is provided here)
and
Miscellaneous stuff -> Modules -> Module inspector (more complex, watch the "free now" numbers for "MEM" and "ARAM")
Can you tell me the amount of free RAM
- after starting the cam in playback mode
- in rec mode
?

Note that certain CHDK features consume memory (loaded fonts, language files, zebra, edge overlay, badpixel list, loaded/running scripts, ...).

*

Offline blackhole

  • *****
  • 856
  • A590IS 101b
    • Planetary astrophotography
Re: SX520HS Porting thread.
« Reply #41 on: 08 / May / 2016, 12:31:32 »
Quote
Also as you can see with the other attachment when I take a photo in raw mode I get the outer edges of my lens... Anything I can do about that other then zooming?
If you upload somewhere DNG and appropriate JPG file, I can try to make .xmp file for correction that can be used in Adobe's products. Photos should be made using a wide angle and preferably should contain a straight vertical and horizontal edges. Something like that I use on sx530 camera. I do not have time for a real Lens profile but this can serve quite well.

Re: SX520HS Porting thread.
« Reply #42 on: 08 / May / 2016, 13:42:57 »
Can you tell me the amount of free RAM
- after starting the cam in playback mode
- in rec mode
?

Note that certain CHDK features consume memory (loaded fonts, language files, zebra, edge overlay, badpixel list, loaded/running scripts, ...).


Playback mode:
memory info:
Free memory= 691032 bytes
CHDK size= 130696 bytes


Module inspector:
Mem= 0031f0d8-00563208: 2375984
alloc= now=1683448(400) max=1715264
free= now=692536(5) max= 691032


Record mode (picture taking mode):
Memory info:
Free memory= 230416 bytes
CHDK size= 130696 bytes



Module inspector:
Mem= 0031f0d8-00563208: 2375984
alloc= now=1683904(425) max=1907216
free= now=231464(3) max= 230416


After taking one picture:

Memory info:
Free memory= 230416 bytes
CHDK size= 130696 bytes



Module inspector:
Mem= 0031f0d8-00563208: 2375984
alloc= now=1709520(438) max=1907216
free= now=205848(4) max= 204400

If you upload somewhere DNG and appropriate JPG file, I can try to make .xmp file for correction that can be used in Adobe's products. Photos should be made using a wide angle and preferably should contain a straight vertical and horizontal edges. Something like that I use on sx530 camera. I do not have time for a real Lens profile but this can serve quite well.


Thanks I appreciate that!
Here's a link to two photo's I think will do. If you need others you say it I will get it for you!
https://drive.google.com/folderview?id=0B0pCsXYbIsNjeFJMWmlUVVQzaE0&usp=sharing

*

Offline srsa_4c

  • ******
  • 4437
Re: SX520HS Porting thread.
« Reply #43 on: 08 / May / 2016, 14:31:21 »
Thanks for the memory report. That ~200kB of free RAM is rather low, probably the cause of that crash. I was under the impression that the additional memory block called 'ARAM' is also enabled for the port(s), but I was wrong. I'll upload a new build, probably tonight.
Even with the additional 136kB of ARAM, free RAM will still be uncomfortably low. We might need to resort to additional hacks to get some more memory...

@blackhole, if you're reading this: do you see similar amounts of free RAM on your cam?


Re: SX520HS Porting thread.
« Reply #44 on: 08 / May / 2016, 14:35:30 »
Thanks for the memory report. That ~200kB of free RAM is rather low, probably the cause of that crash. I was under the impression that the additional memory block called 'ARAM' is also enabled for the port(s), but I was wrong. I'll upload a new build, probably tonight.
Even with the additional 136kB of ARAM, free RAM will still be uncomfortably low. We might need to resort to additional hacks to get some more memory...

@blackhole, if you're reading this: do you see similar amounts of free RAM on your cam?


Okay you say it. I hope you can optimize it or something? I don't really know what you are doing behind the scenes :P
I wish you luck!

*

Offline blackhole

  • *****
  • 856
  • A590IS 101b
    • Planetary astrophotography
Re: SX520HS Porting thread.
« Reply #45 on: 08 / May / 2016, 15:06:48 »
Attached is an .xmp file for the Lens correction @24mm,created for use in Adobe Camera Raw application.

The file must be copied to: C: \ Users \ XXXX \ AppData \ Roaming \ Adobe \ CameraRaw \ Settings

*

Offline srsa_4c

  • ******
  • 4437
Re: SX520HS Porting thread.
« Reply #46 on: 08 / May / 2016, 15:11:03 »
New build for 100b, with ARAM enabled. Free memory should increase by approx. 130kB.
Also attached is the source diff that enables ARAM.

@wobelaar
Those technical details were mostly meant for other developers (I should have separated them).
From user perspective, this new build is less likely to crash.


*

Offline blackhole

  • *****
  • 856
  • A590IS 101b
    • Planetary astrophotography
Re: SX520HS Porting thread.
« Reply #47 on: 08 / May / 2016, 15:28:04 »
Quote
@blackhole, if you're reading this: do you see similar amounts of free RAM on your cam?
As I see it is never less than 630K.
sx530
PLAYBACK
Module inspector:
Mem= 0031f128-00563208: 2375904
alloc= now=1444360(454) max=1460552
free= now=932880(6) max= 915296


REC-After capturing an image.
Module inspector:
Mem= 0031f128-00563208: 2375904
alloc= now=1725384(474) max=1747464
free= now=650520(2) max= 633696


Re: SX520HS Porting thread.
« Reply #48 on: 08 / May / 2016, 15:32:51 »
@blackhole
Thanks for making it!

@srsa_4c
Thanks for the new build I will try it out tomorrow afternoon I think (My vacation is over and have to get back to school).

Question: Is there a way of getting a better white balance when shooting raw shots? Or do I have to change it afterwards in Lightroom?
« Last Edit: 08 / May / 2016, 15:35:46 by wobelaar »

*

Offline blackhole

  • *****
  • 856
  • A590IS 101b
    • Planetary astrophotography
Re: SX520HS Porting thread.
« Reply #49 on: 08 / May / 2016, 16:18:51 »
Quote
Question: Is there a way of getting a better white balance when shooting raw shots? Or do I have to change it afterwards in Lightroom?
Choose a WB setting in Camera Raw. When you open an image in Lightroom, with 'Levels' you can make a nice finishing if necessary.

 

Related Topics