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

IXUS 240/ELPH 320 HS Porting thread

  • 312 Replies
  • 115186 Views
*

Offline nafraf

  • *****
  • 1308
Re: IXUS 240/ELPH 320 HS Porting thread
« Reply #70 on: 29 / June / 2013, 10:18:38 »
Advertisements
Buttons work properly now in both shooting and playback mode.
OK, thanks.

Quote
DNG files are broken. I can't open them with camera raw.
Raw buffers are auto detected (see lib.c), maybe the problem is due to wrong crop values, see previous posts. I don't have access to camera, then it is easier if you check those values, recompile and report.
I fixed stubs_min.S, please update your source code before test.

Re: IXUS 240/ELPH 320 HS Porting thread
« Reply #71 on: 29 / June / 2013, 13:26:55 »
CAM_ACTIVE_AREA_X2 in platform_camera.h seems to be wrong, should be 4776 instead of 4768. This fixed DNG files for me.

Re: IXUS 240/ELPH 320 HS Porting thread
« Reply #72 on: 29 / June / 2013, 13:31:24 »
thx@philmoz: you are right, the pictures look very magenta atm, so I thought this must be some kind of alignment issue and your explanation confirmed that. Actually when testing the border problems I was a bit in a hurry, so I did not recognize the strange colors in the pictures, shot a whole evening and wondered later when going through them :)

Here are the updated border values with the eveness taken into account:
Code: [Select]
    // borders
#define CAM_RAW_MARGIN_LEFT             96
#define CAM_RAW_MARGIN_RIGHT            8
#define CAM_RAW_MARGIN_TOP              18 // 17 --> 18 (even)
#define CAM_RAW_MARGIN_BOTTOM           0
// cropping
    #define CAM_JPEG_WIDTH                  (CAM_RAW_ROWPIX - CAM_RAW_MARGIN_LEFT - CAM_RAW_MARGIN_RIGHT)
    #define CAM_JPEG_HEIGHT                 (CAM_RAW_ROWS - CAM_RAW_MARGIN_TOP - CAM_RAW_MARGIN_BOTTOM)
    #define CAM_ACTIVE_AREA_X1              (CAM_RAW_MARGIN_LEFT)
    #define CAM_ACTIVE_AREA_Y1              (CAM_RAW_MARGIN_TOP)
    #define CAM_ACTIVE_AREA_X2              (CAM_RAW_ROWPIX - CAM_RAW_MARGIN_RIGHT)
    #define CAM_ACTIVE_AREA_Y2              (CAM_RAW_ROWS - CAM_RAW_MARGIN_BOTTOM)
I think the 4 extra values (CAM_RAW_MARGIN_X) make it more understandable and less error prone. I compiled the new values and the nafraf code r435 together with the current trunk r2908. Colors look as expected again and borders are cropped.

This version does not show any CHDK touch button in shooting mode with firmware 1.01a. Playback mode works as expected.

*

Offline nafraf

  • *****
  • 1308
Re: IXUS 240/ELPH 320 HS Porting thread
« Reply #73 on: 29 / June / 2013, 14:01:57 »
I think the 4 extra values (CAM_RAW_MARGIN_X) make it more understandable and less error prone. I compiled the new values and the nafraf code r435 together with the current trunk r2908. Colors look as expected again and borders are cropped.
I agree, with extra values it is more understandable. I updated my code with your suggestion.

Quote
This version does not show any CHDK touch button in shooting mode with firmware 1.01a. Playback mode works as expected.
Now I see that it is the expected behavior. I think that it is safer, because in shooting mode you can have problems with AF box.
kbd.c
Code: [Select]
    418 void virtual_buttons()
    419 {
    420     int guiMode = gui_get_mode();
    421     char buf[30];
    422
    423     // If shooting or in any Canon menus then don't display any CHDK buttons
    424     if (((guiMode == 0) && camera_info.state.is_shutter_half_press) || !show_virtual_buttons()) return;

@frgo: could you check buttons behavior again on 1.02a?




Re: IXUS 240/ELPH 320 HS Porting thread
« Reply #74 on: 29 / June / 2013, 16:08:03 »
@frgo: could you check buttons behavior again on 1.02a?

i think it works as expected

Re: IXUS 240/ELPH 320 HS Porting thread
« Reply #75 on: 17 / July / 2013, 16:46:41 »
Hello. Thanks for the great work. Can you confirm that it is possible to control zoom with USB remote?

Regards

Alonso Acuña

Re: IXUS 240/ELPH 320 HS Porting thread
« Reply #76 on: 24 / July / 2013, 06:27:19 »
Hello,

I'm sorry for the noob question but I've been banging my head on the table for a few days trying to get this to work for my camera.
I'm completely new to CHDK.
I've managed to get the firmware version (102a) but I failed at every attempt of making a bootable SD card. Can anyone point me to a post/page with a step-by-step instruction on how to get this working? I've tried searching and the methods on the wiki don't seem to work.

Thanks!

*

Offline blackhole

  • *****
  • 925
  • A590IS 101b
    • Planetary astrophotography
Re: IXUS 240/ELPH 320 HS Porting thread
« Reply #77 on: 24 / July / 2013, 07:45:11 »
Quote
I've managed to get the firmware version (102a) but I failed at every attempt of making a bootable SD card. Can anyone point me to a post/page with a step-by-step instruction on how to get this working? I've tried searching and the methods on the wiki don't seem to work.
http://chdk.wikia.com/wiki/Bootable_SD_card


Re: IXUS 240/ELPH 320 HS Porting thread
« Reply #78 on: 24 / July / 2013, 08:05:28 »
Quote
I've managed to get the firmware version (102a) but I failed at every attempt of making a bootable SD card. Can anyone point me to a post/page with a step-by-step instruction on how to get this working? I've tried searching and the methods on the wiki don't seem to work.
http://chdk.wikia.com/wiki/Bootable_SD_card

Hint :  use the utility recommended in the big blue Info box at the top of that page.
Ported :   A1200    SD940   G10    Powershot N    G16

Re: IXUS 240/ELPH 320 HS Porting thread
« Reply #79 on: 24 / July / 2013, 08:18:26 »
I'm using Linux, got it to work using the:
"Linux Method #2b: Larger SD Cards (>4G) for cameras released after 2010"

thanks!

 

Related Topics