SX60HS Porting - page 76 - DryOS Development - CHDK Forum supplierdeeply

SX60HS Porting

  • 915 Replies
  • 209754 Views
*

Offline reyalp

  • ******
  • 12074
Re: SX60HS Porting
« Reply #750 on: 21 / April / 2017, 23:52:20 »
Advertisements
I have been "corrected" several times on this forum for not knowing that Canon CR2 files are not plain sensor dumps like CHDK RAW.
Are you thinking of  https://chdk.setepontos.com/index.php?topic=11862.msg116295#msg116295 or something else? If that's it,  it applies to CHDK and Canon raw equally.

Canon raw definitely uses lossless compression, but I don't believe there is any  correction to the raw data we don't also see in CHDK raw. Certainly geometry correction is done in raw processing software based on meta data (or external profiles).
Don't forget what the H stands for.

Re: SX60HS Porting
« Reply #751 on: 22 / April / 2017, 04:36:33 »
Canon raw definitely uses lossless compression, but I don't believe there is any  correction to the raw data we don't also see in CHDK raw. Certainly geometry correction is done in raw processing software based on meta data (or external profiles).
Correct!
The Canon RAW Data itself is not correct. There is a profile embedded in the CR2. You could remove the profile with (you have to convert the CR2 with Adobe DNG converter before):
Code: [Select]
exiftool -OpcodeList3= img_0001.dng
The following picture shows you
1) Canon RAW (CR2) opened in Ligthroom 5.7
2) Canon RAW (CR2) converted to DNG (With Adobe DNG converter) - OpcodeList3 opened in Ligthroom 5.7
3) CHDK DNG opened in Ligthroom 5.7
So Canon RAW without profiles looks similar to CHDK DNG. But I don’t check every bit!

Another way to compare Canon RAW (CR2) with CHDK DNG is to convert them with dcraw into TIF with:
Code: [Select]
dcraw -4 -D -T
« Last Edit: 22 / April / 2017, 04:39:56 by c_joerg »
M100 100a, M3 101a, 2*G1x (101a,100e), S110 (103a), SX50 (100c), SX230 (101a), 2*S45,
Flickr https://www.flickr.com/photos/136329431@N06/albums
YouTube https://www.youtube.com/channel/UCrTH0tHy9OYTVDzWIvXEMlw/videos?shelf_id=0&view=0&sort=dd

Re: SX60HS Porting
« Reply #752 on: 22 / April / 2017, 12:57:36 »
I see the lens correction parameters are embedded in Exif  opcodelist3 by the camera firmware, embedded by Adobe DNG converter as opcodelist3. Not sure where Adobe gets the info from....  Used adobe dng converter on a canon raw, then dng_validate -v.  Wonder if I could find them in a firmware sub routine or structure? 
« Last Edit: 22 / April / 2017, 14:35:26 by 62ndidiot »

*

Offline reyalp

  • ******
  • 12074
Re: SX60HS Porting
« Reply #753 on: 22 / April / 2017, 15:11:41 »
I see the lens correction parameters are embedded in Exif  opcodelist3 by the camera firmware, embedded by Adobe DNG converter as opcodelist3. Not sure where Adobe gets the info from....  Used adobe dng converter on a canon raw, then dng_validate -v.  Wonder if I could find them in a firmware sub routine or structure?
FWIW, there are reverse engineered CRW/CR2 documents floating around on the internet.

I haven't looked into it too much, but my impression was that adobe tools tend to include their own lens correction information, since they tend to need updates whenever manufacturers release new cameras.

You could presumably get this information back out from Adobe converted DNGs, but obviously this only applies to cameras with Canon raw support.
Don't forget what the H stands for.


Re: SX60HS Porting
« Reply #754 on: 10 / May / 2017, 16:28:40 »
Testing JPEG quality override.  The file size increases by 25% or so.  The resolution in the exif info stays the same ( pixel width height). Examining the images shows pixels of the same size, but some small differences in intensities between images.  I can't really say one is superior to the other, and I'm not sure I understand what's different in jpg creation between the two

Re: SX60HS Porting
« Reply #755 on: 13 / May / 2017, 13:04:43 »
Here is a link to the latest zip's for SX60HS (100b,c,f)
Edit: the original files in this link had ShortCut as the default ALT key, I've added versions that default to PLAY (but they do not have the option to use ShortCut, your choice)

https://goo.gl/adBB59

This implements several improvements following @reyalp's development for G7X.

Quote
The main change is that raw buffers should now be correct in most cases (technical details). This means you can use CHDK raw in many cases where the Canon firmware does not allow Canon raw: With digital zoom, in Auto mode, with "my colors", etc. Of course,  the visual effects apply only to the jpeg.

Added workaround for some UHS cards not using full speed under CHDK technical details

Also I've corrected some code in the 100b and 100c releases that might have caused problems when using CHDKPTP to take a picture and download directly to your computer.
« Last Edit: 17 / June / 2017, 19:56:07 by 62ndidiot »

Re: SX60HS Porting
« Reply #756 on: 13 / June / 2017, 01:00:45 »
@reyAlp:  may as well add Sx60hs to auto build.  I think all three firmwares total about 70-80 downloads at present.  I'd be interested in statistics after they're in autobuild. 
I may fool around with Edmac but that is a long way from working safely or at all ;) (actually hoping someone else will)

Re: SX60HS Porting
« Reply #757 on: 13 / June / 2017, 12:47:30 »
Canon sx 60 I can not enter the CHDK menu, why? Play button does not work :( no " ALT " :(


Re: SX60HS Porting
« Reply #758 on: 13 / June / 2017, 13:05:47 »
Quote
Canon sx 60 I can not enter the CHDK menu, why? Play button does not work :( no " ALT " :(
@nico2008, please check:
1. Do you see the CHDK splash screen on Bootup?
2. Is the camera in shoot mode or in playback mode after boot?
3. Are you using the SD card writelock method for boot? The firmware update method is unreliable.

Re: SX60HS Porting
« Reply #759 on: 13 / June / 2017, 15:48:38 »
@ 62ndidiot
1. Do you see the CHDK splash screen on Bootup? ,, ,,,,Yes
2. ,, ,,,, the camera in shoot mode
3. Are you using the SD card writelock method for boot? The firmware update method is unreliable. ,, ,,,, unlocked card and locked card ....
,,,, There is a welcome screen. Camera starts ready to shoot. On screen is time, battery indicator, opt .: 26 with CHDK ...
At the bottom of the screen is a horizontal white bar ...
Previously the camera was running with CHDK and I was able to launch the CHDK menu. Not now . Something had to happen .
version firmware canon sx 60 = 100f
camera canon crash ?
« Last Edit: 13 / June / 2017, 16:05:56 by nico2008 »

 

Related Topics