Canon raw (was Re: Unable to install CHDK with Stick) - General Discussion and Assistance - CHDK Forum

Canon raw (was Re: Unable to install CHDK with Stick)

  • 9 Replies
  • 1373 Views
*

Offline reyalp

  • ******
  • 14126
Canon raw (was Re: Unable to install CHDK with Stick)
« on: 10 / February / 2023, 12:23:27 »
Advertisements
Just the person I've been looking for! I'm writing a CRW parser, and I'm desperate for a sample from a PowerShot camera ;)
FWIW https://raw.pixls.us/ has samples from many cameras, including native .CR2 from some powershots (AFAIK .CRW was only used on very early cams, pre-dating CHDK)
Don't forget what the H stands for.

Re: Canon raw (was Re: Unable to install CHDK with Stick)
« Reply #1 on: 10 / February / 2023, 12:47:26 »
FWIW https://raw.pixls.us/ has samples from many cameras

At a first glance there are only samples of CHDK CRW.

Quote
AFAIK .CRW was only used on very early cams, pre-dating CHDK

At least S100 and S110 support Canon CRW (CAM_HAS_CANON_RAW is defined as 1 in platform_camera.h).
Author of CHIMP, Canon Hack Installation and Management Platform

*

Offline reyalp

  • ******
  • 14126
Re: Canon raw (was Re: Unable to install CHDK with Stick)
« Reply #2 on: 10 / February / 2023, 12:58:29 »
At a first glance there are only samples of CHDK CRW.
No, there are native CR2 samples for many of the cameras that support it. I know I uploaded one for G7 X, for example.

Quote
Quote
AFAIK .CRW was only used on very early cams, pre-dating CHDK

At least S100 and S110 support Canon CRW (CAM_HAS_CANON_RAW is defined as 1 in platform_camera.h).
That means it supports Canon native raw (or at least, I believed it did when I added that define, probably based on the camera manual). On these cameras, the format and file extension is CR2, not CRW. CHDK allows use of the .CRW extension because it's still recognized by the Canon firmware in some contexts, but the native firmware only uses CR2.

Now we're really off-topic  :haha
Don't forget what the H stands for.

Re: Canon raw (was Re: Unable to install CHDK with Stick)
« Reply #3 on: 10 / February / 2023, 13:08:24 »
On these cameras, the format and file extension is CR2, not CRW. CHDK allows use of the .CRW extension because it's still recognized by the Canon firmware in some contexts, but the native firmware only uses CR2.

According to this:

Quote
Note that Canon has three different RAW formats, with newer models producing a TIFF-based CR2 or QuickTime-based CR3 as opposed to the CIFF-based CRW format

CIFF and TIFF are fundamentally different, e.g. CIFF doesn't store EXIF data.

MetadataExtractor (which CHIMP uses internally) recognizes CRW files, but doesn't parse them. The only sample I found comes from EOS 10D, so it doesn't store a firmware revision.
Author of CHIMP, Canon Hack Installation and Management Platform

*

Offline reyalp

  • ******
  • 14126
Re: Canon raw (was Re: Unable to install CHDK with Stick)
« Reply #4 on: 10 / February / 2023, 13:25:44 »
MetadataExtractor (which CHIMP uses internally) recognizes CRW files, but doesn't parse them.
Yes, as I mentioned, the actual Canon CRW format is incredibly ancient, predating all CHDK supported cams, so it shouldn't matter to CHIMP. Even the G9 (from 2007, not the modern G9 X) uses CR2. I have previously visited this rabbit hole https://chdk.setepontos.com/index.php?topic=13725.0

CHDK confuses the situation by using the .CRW extension for framebuffer dump raw, but it has nothing to do with the original format.
Don't forget what the H stands for.

Re: Canon raw (was Re: Unable to install CHDK with Stick)
« Reply #5 on: 10 / February / 2023, 13:31:38 »
Well, this list explicitly mentions S100 and S110.

I guess I just have too much free time on my hands :P

P.S. I posted in the old thread by mistake, but was unable to delete.
Author of CHIMP, Canon Hack Installation and Management Platform

Re: Canon raw (was Re: Unable to install CHDK with Stick)
« Reply #6 on: 10 / February / 2023, 13:35:58 »
Parsed CIFF (partial example):

Quote

Root

2005 RawData                  {"Offset":26,"Length":5565940}
2007 JpgFromRaw               {"Offset":5565966,"Length":217584}
300a ImageProps               {"Name":"ImageProps"}

ImageProps

5803 ImageFormat              {"FileFormat":{"Format":"CanonCRW","Compression":"None"},"TargetCompressionRatio":10}
1810 ImageSpec                {"ImageWidth":3072,"ImageHeight":2048,"PixelAspectRatio":1,"RotationAngle":270,"ComponentBitDepth":8,"ColorBitDepth":24,"ColorBW":257}
500a TargetImageType          "RealWorldSubject"
5804 RecordID                 0
5817 SerialNumber             1050501
180e CapturedTime             "2003-07-14T13:46:16"
0816 ImageFileName            "CRW_0501.CRW"
0817 ThumbnailFileName        "CRW_0501.THM"
0805 Description              ""
3003 MeasuredInfo             {"Name":"MeasuredInfo"}
2804 ImageDescription         {"Name":"ImageDescription"}
2807 Camera                   {"Name":"Camera"}
300b ExifInfo                 {"Name":"ExifInfo"}

MeasuredInfo

5814 EV                       9.375

ImageDescription

0805 FileDescription          "EOS 10D CMOS RAW IMAGE"
0815 ImageType                "CRW:EOS 10D CMOS RAW IMAGE"

Camera

0810 OwnerName                "Michael Jonathan Kearns"
080a ModelName                {"Make":"Canon","Model":"Canon EOS 10D"}
3004 CameraSpecification      {"Name":"CameraSpecification"}

CameraSpecification

580b BodyID                   630304155
501c BodySensitivity          100
480d ROMOperationMode         "USA"
080b FirmwareVersion          "Firmware Version 1.0.1"
« Last Edit: 10 / February / 2023, 13:49:23 by dmitrys »
Author of CHIMP, Canon Hack Installation and Management Platform

*

Offline reyalp

  • ******
  • 14126
Re: Canon raw (was Re: Unable to install CHDK with Stick)
« Reply #7 on: 10 / February / 2023, 15:25:32 »
Well, this list explicitly mentions S100 and S110.

I guess I just have too much free time on my hands :P
Well, I think that page is confused. Part of the confusion may be that Canon re-used the S100 and S110 designations. The CHDK supported models are the PowerShot S100 and S110 from 2011 and 2012. Judging the other models mentioned on that page (A10, Pro 1 etc), I believe it likely refers to the PowerShot S100 DIGITAL ELPH and S110 DIGITAL ELPH from 2000 and 2001 https://global.canon/en/c-museum/product/dcc462.html https://global.canon/en/c-museum/product/dcc467.html

However, a quick google does not suggest those models officially supported Canon CRW raw, so it's unclear to me whether the page is accurate for those models either. Perhaps raw was obtainable using the Canon SDK in that era, or the page is simply confused about 20+ year old cameras.

Anyway, I am somewhat familiar with the models CHDK actually supports, and I'm very sure the S100 and S110 models that we support use CR2
Don't forget what the H stands for.

Re: Canon raw (was Re: Unable to install CHDK with Stick)
« Reply #8 on: 10 / February / 2023, 16:34:01 »
Well, I think that page is confused. Part of the confusion may be that Canon re-used the S100 and S110 designations. The CHDK supported models are the PowerShot S100 and S110 from 2011 and 2012. Judging the other models mentioned on that page (A10, Pro 1 etc), I believe it likely refers to the PowerShot S100 DIGITAL ELPH and S110 DIGITAL ELPH from 2000 and 2001 https://global.canon/en/c-museum/product/dcc462.html https://global.canon/en/c-museum/product/dcc467.html

However, a quick google does not suggest those models officially supported Canon CRW raw, so it's unclear to me whether the page is accurate for those models either. Perhaps raw was obtainable using the Canon SDK in that era, or the page is simply confused about 20+ year old cameras.

Anyway, I am somewhat familiar with the models CHDK actually supports, and I'm very sure the S100 and S110 models that we support use CR2

Well, I suppose I can safely put my CRW parsing code away ;)
Author of CHIMP, Canon Hack Installation and Management Platform

Re: Canon raw (was Re: Unable to install CHDK with Stick)
« Reply #9 on: 13 / February / 2023, 12:21:33 »
As it happens, I own both models of S100s.  The old 2MP S100 is tucked away in a box somewhere.  I have no idea of the status of its battery but I'll dig it up this week and take a look.
Ported :   A1200    SD940   G10    Powershot N    G16

 

SimplePortal © 2008-2014, SimplePortal