IXUS 240/ELPH 320 HS Porting thread - page 7 - DryOS Development - CHDK Forum  

IXUS 240/ELPH 320 HS Porting thread

  • 312 Replies
  • 105018 Views
*

Offline nafraf

  • *****
  • 1308
Re: IXUS 240/ELPH 320 HS Porting thread
« Reply #60 on: 21 / June / 2013, 10:00:48 »
Advertisements
WOW lots of progress over the past few months! 
Hi, welcome back!

Quote
Anything I can do to help test at this point?
Yes, please try to compile latest source code and test it with chdkptp. Communication bug was reported by Uwe Reply #53


Re: IXUS 240/ELPH 320 HS Porting thread
« Reply #61 on: 26 / June / 2013, 07:13:33 »
Hi and thanks for all the work so far.

I just compiled for firmware 1.01a and the raw pictures looked like they were missing some part on the right side, so I adjusted the platform_camera.h in the following way:
Code: [Select]
    // cropping
    #define CAM_JPEG_WIDTH                  4784 //4016
    #define CAM_JPEG_HEIGHT                 3516 //3004
    #define CAM_ACTIVE_AREA_X1              0 //120
    #define CAM_ACTIVE_AREA_Y1              0 //36
    #define CAM_ACTIVE_AREA_X2              4784 //4136
    #define CAM_ACTIVE_AREA_Y2              3516 //3040
Maybe this is not exactly the right way, but the adapted code seems to have the desired effect of changing the size information in the meta data of the raw file.

edit:
(chdk trunk, rev.2903, port from: http://subversion.assembla.com/svn/nafraf/chdk, rev.429)
« Last Edit: 26 / June / 2013, 08:06:39 by rechargeable »

*

Offline nafraf

  • *****
  • 1308
Re: IXUS 240/ELPH 320 HS Porting thread
« Reply #62 on: 26 / June / 2013, 08:45:50 »
@rechargeable
Thanks, I updated my personal repository with your values.

Is touch screen interface working without problems?

Re: IXUS 240/ELPH 320 HS Porting thread
« Reply #63 on: 28 / June / 2013, 00:46:18 »
The touchscreen interface is working without problems in playback mode. In shooting mode I cannot press the CHDK button. Without any interaction the button is drawn on the front layer, but when I try to press it, the touch button of the normal system will be activated and rendered to the front.

The width and height values should not yet be considered final because there are black/unused areas on the borders of the image. But I think it is better to have some black borders than missing parts of the image :). For my camera the values are: left 96px, top 17px, right 8px.

Is it hard to generate completely new buttons with CHDK? Is the rendering system flexible enough? Just asking because I would like to play around making some kind of directional pad.


*

Offline nafraf

  • *****
  • 1308
Re: IXUS 240/ELPH 320 HS Porting thread
« Reply #64 on: 28 / June / 2013, 05:57:00 »
The touchscreen interface is working without problems in playback mode. In shooting mode I cannot press the CHDK button. Without any interaction the button is drawn on the front layer, but when I try to press it, the touch button of the normal system will be activated and rendered to the front.
I made some changes to kbd.c please compile and test it.

Quote
Is it hard to generate completely new buttons with CHDK? Is the rendering system flexible enough? Just asking because I would like to play around making some kind of directional pad.
Check platform/ixus240_elph320hs/kbd.c, buttons coordinates and properties are there.

Re: IXUS 240/ELPH 320 HS Porting thread
« Reply #65 on: 28 / June / 2013, 06:36:58 »
Cool, thx ... will test it soon.

Adapting according to the border values posted earlier, the section looks like the code section below (values in comments: including border). Short look at the resulting raw image seems to be correct: no border anymore and all the wanted image parts displayed.
Code: [Select]
    // cropping
    #define CAM_JPEG_WIDTH                  (4784-96-8)//4784
    #define CAM_JPEG_HEIGHT                 (3516-17)//3516
    #define CAM_ACTIVE_AREA_X1              96//0
    #define CAM_ACTIVE_AREA_Y1              17//0
    #define CAM_ACTIVE_AREA_X2              (4784-8)//4784
    #define CAM_ACTIVE_AREA_Y2              3516//3516

Re: IXUS 240/ELPH 320 HS Porting thread
« Reply #66 on: 29 / June / 2013, 04:11:28 »
Hi,

I'm also trying to make something out of this. I compiled for firmware 1.02a and have some problems. The first one is the TS not responding. Sometimes it responds once an opens the chdk, but after that TS freezes and have to restart the camera. It's the same in shooting and playback mode. Second problem is the raw images being purple in P mode and purple and borked in auto mode :)

I've also tried an old test build from uwe posted earlier in this topic and there TS works and colors are right.

*

Offline philmoz

  • *****
  • 3411
    • Photos
Re: IXUS 240/ELPH 320 HS Porting thread
« Reply #67 on: 29 / June / 2013, 04:55:26 »
Cool, thx ... will test it soon.

Adapting according to the border values posted earlier, the section looks like the code section below (values in comments: including border). Short look at the resulting raw image seems to be correct: no border anymore and all the wanted image parts displayed.
Code: [Select]
    // cropping
    #define CAM_JPEG_WIDTH                  (4784-96-8)//4784
    #define CAM_JPEG_HEIGHT                 (3516-17)//3516
    #define CAM_ACTIVE_AREA_X1              96//0
    #define CAM_ACTIVE_AREA_Y1              17//0
    #define CAM_ACTIVE_AREA_X2              (4784-8)//4784
    #define CAM_ACTIVE_AREA_Y2              3516//3516

The sensor uses a 'Bayer' layout (http://en.wikipedia.org/wiki/Bayer_filter).
So it operates on a 2x2 matrix of Bayer cells.

If you use an odd value for CAM_ACTIVE_AREA_X1 or CAM_ACTIVE_AREA_Y1 you are starting in the middle of the cell and the results may be incorrect - depending on how the software processes the DNG file.

I'd recommend setting all of the active area settings to be even values.

Phil.
CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)
  g7x2 (1.01a, 1.01b, 1.10b)


*

Offline nafraf

  • *****
  • 1308
Re: IXUS 240/ELPH 320 HS Porting thread
« Reply #68 on: 29 / June / 2013, 06:25:36 »
@frgo
Please update source code and test RAW again.
Are CHDK buttons active in shooting mode? thanks

Re: IXUS 240/ELPH 320 HS Porting thread
« Reply #69 on: 29 / June / 2013, 08:58:53 »
@frgo
Please update source code and test RAW again.
Are CHDK buttons active in shooting mode? thanks

Buttons work properly now in both shooting and playback mode. DNG files are broken. I can't open them with camera raw.

thanks

 

Related Topics