IXUS 105 / SD1300 IS porting thread - page 74 - DryOS Development - CHDK Forum supplierdeeply

IXUS 105 / SD1300 IS porting thread

  • 755 Replies
  • 122510 Views
*

Offline srsa_4c

  • ******
  • 3936
Re: IXUS 105 / SD1300 IS porting thread
« Reply #730 on: 02 / October / 2012, 21:19:48 »
Advertisements
I've tried DNG4PS-2, but something goes wrong
Error: Can't find camera profile for this file
You either need a jpeg file beside the raw with the same number, or select Ixus 105 from the dropdown box (4104x3048) on the second tab (camera types) of the settings dialog. Of course you need to import the definition (or create one from scratch) before.

*

Offline reyalp

  • ******
  • 11989
Re: IXUS 105 / SD1300 IS porting thread
« Reply #731 on: 02 / October / 2012, 23:07:27 »
I've just figured out how to compile chdk, after a try with this values   
   
    #define CAM_ACTIVE_AREA_X1 0
    #define CAM_ACTIVE_AREA_Y1 0
    #define CAM_ACTIVE_AREA_X2 4104
    #define CAM_ACTIVE_AREA_Y2 3048
   
i got this: http://belluzz.altervista.org/forum/CRW_0480.DNG
(taken with camera rotated 90° clockwise, sorry)
jpg: http://belluzz.altervista.org/forum/0480DNG.jpg

Assuming a desired size of 4000x3000 (like original jpgs) a starting point could be an offset of
Desired size should be based on valid data, not jpeg size. Usually it's a bit larger. However, this points out another problem with the port, the jpeg size (which is used for the default DNG crop) is 3648x2736, while like your post, Canon specs say it's 4000x3000. Copy paste :'(
So you definitely want
Code: [Select]
#define CAM_JPEG_WIDTH  4000
#define CAM_JPEG_HEIGHT 3000
You probably have to fix the active area to at least be larger than this.

I converted your "cr2" with
rawconvert -12to8 -w=4104 -h=3048 -pgm CRW_0469.CR2 CRW_0469.PGM
opening the resulting PGM in gimp, I'd say
left: 0
top: 10 (or 9)
right: 32
bottom: 8 (or 7)
The "or" would include rows that have some data that isn't at the same level as the rest of the image. I've gone back and forth over whether these should be included or not, but with just one row on top and bottom, I'd be inclined to leave it out.

In chdk defines, this would be:
Code: [Select]
#define CAM_ACTIVE_AREA_X1 0
#define CAM_ACTIVE_AREA_Y1 10
#define CAM_ACTIVE_AREA_X2 4072
#define CAM_ACTIVE_AREA_Y2 3040
If you can try a build with these settings and report back, we can fix them in svn.
Don't forget what the H stands for.

Re: IXUS 105 / SD1300 IS porting thread
« Reply #732 on: 03 / October / 2012, 13:48:57 »
I've tested this values

    #define CAM_JPEG_WIDTH  4000
    #define CAM_JPEG_HEIGHT 3000
    #define CAM_ACTIVE_AREA_X1 0
    #define CAM_ACTIVE_AREA_Y1 10
    #define CAM_ACTIVE_AREA_X2 4072
    #define CAM_ACTIVE_AREA_Y2 3040
   
and they work well. The only problem i have noticed is that DNG default crop is shifted by a few pixels to the right compared to jpg (and i have not figured out how to view all the data in Adobe Camera Raw. Irfanview shows everything)

Here is an example taken at maximum zoom range, where no distortion correction is applied:

DNG
https://dl.dropbox.com/u/12336849/CRW_0488.DNG
jpeg
https://dl.dropbox.com/u/12336849/IMG_0488.JPG
CHDK RAW (actually is another shot, well aligned horizontally but slightly shifted vertically)
https://dl.dropbox.com/u/12336849/CRW_0489.CRW

*

Offline reyalp

  • ******
  • 11989
Re: IXUS 105 / SD1300 IS porting thread
« Reply #733 on: 03 / October / 2012, 22:30:57 »
Thanks for checking. I've checked in these values.

The only problem i have noticed is that DNG default crop is shifted by a few pixels to the right compared to jpg (and i have not figured out how to view all the data in Adobe Camera Raw. Irfanview shows everything)
Unfortunately, the current CHDK code just centers the default crop within the active area, so it won't necessarily line up with the Canon jpeg position exactly. This is a know defect, but there isn't really a way to fix it at this point.

Don't forget what the H stands for.


Re: IXUS 105 / SD1300 IS porting thread
« Reply #734 on: 12 / October / 2012, 14:13:22 »
Hey everyone!

I just wanted to drop by and say "thanks" to you guys for working to get CHDK on the SD1300.  I can't actually use CHDK on my camera yet because I have firmware version 1.00C, but I still think it's pretty cool.  :)

And while I don't know anything about what you guys are doing, if you need someone to test and say "hey I pressed this button and then x thing happened/went wrong" I might be able to help.

*

Offline nafraf

  • *****
  • 1305
Re: IXUS 105 / SD1300 IS porting thread
« Reply #735 on: 13 / October / 2012, 13:18:43 »
@like_whatever
I sent a PM (private message) with the link to a pre-alpha version for your ixus105 100c.

It seems that ixus105 is not completely ported. If there is any other beta tester available for ixus105, send your  e-mail address to me via private message.

Re: IXUS 105 / SD1300 IS porting thread
« Reply #736 on: 17 / October / 2012, 15:27:02 »
The correct active area for my ixus 105 fw 1.00d is
    #define CAM_ACTIVE_AREA_X1 8
    #define CAM_ACTIVE_AREA_Y1 22
    #define CAM_ACTIVE_AREA_X2 4024
    #define CAM_ACTIVE_AREA_Y2 3028
Pixels outside this area are either darker or lighter (as if these pixels have a different mask than those in the center), and are not usable.

Re: IXUS 105 / SD1300 IS porting thread
« Reply #737 on: 11 / November / 2012, 19:31:58 »
On request the colors of the menu, splash screen and palette in chdk settings/color settings/draw palette

attached: splash and menu in play mode


Re: IXUS 105 / SD1300 IS porting thread
« Reply #738 on: 11 / November / 2012, 19:32:51 »
attached palette in play mode

Re: IXUS 105 / SD1300 IS porting thread
« Reply #739 on: 11 / November / 2012, 19:33:42 »
attached menu in rec mode and palette in rec mode

 

Related Topics