Adding new cameras, applying patches into trunk (with source code prepared) - page 112 - General Discussion and Assistance - CHDK Forum  

Adding new cameras, applying patches into trunk (with source code prepared)

  • 1640 Replies
  • 541337 Views
*

Offline srsa_4c

  • ******
  • 4285
Advertisements
A3100 related changes (trunk, 1.1).

1) 1.00b: fixed several sub <-> loc mixups, enabled autobuild
Tested by cheddar66 (see posts from here). I have left a note in source about the unsuccessful "override fix for short press" test.
2) all revisions: vid_get_viewport_live_fb() implemented using fw variables found by the sigfinder. This was not thoroughly tested, but zebra works seemingly the same as in the single buffered case. The code is like the other (older) implementations. There appear to be 3 normal buffers (see below), so that's what the routine expects.

DEF(viewport_buffers ,0xffae1430)

ffae1430:    106f3bc0
ffae1434:    107724c0
ffae1438:    107f0dc0
ffae143c:    1062c660
; 4th buffer: not consecutive

If this vid_get_viewport_live_fb() implementation seems risky, then please ignore all lib.c changes in the patch

*

Offline nafraf

  • *****
  • 1308
A3300 patch
1) New loader implemented
2) 100a and 100c are compatible, so 100c directory was deleted and camera_list.csv was modified.
3) vid_bitmap_refresh() modified, call to draw_filled_rect() deleted
4) movie_rec.c modified to support: CAM_AF_SCAN_DURING_VIDEO_RECORD, CAM_CAN_MUTE_MICROPHONE and CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO

Tested on 100c by nemerdekel1, reports here




*

Offline philmoz

  • *****
  • 3179
    • Photos
It probably appropriate to disable the hooks for capt_seq_hook_set_nr in capt_seq.c for the SX50HS - at least for now.

In the current build, they do not work  (i.e. you can not enable or disable dark frame subtraction)  and they cause an immediate crash when the camera is used in "Sports" mode  (continuous shooting).

I'll keep looking at it but in the meantime, best it's disabled.

Patch works for both 1.1.0 &  1.2.0 branches.

Added in revision 2736 (trunk) and 2737 (release-1.1).

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)

Added in revision 2736 (trunk) and 2737 (release-1.1).
Thanks philmoz!

Based on this :  http://chdk.setepontos.com/index.php?topic=9257.msg99951#msg99951 it might be worth making a similiar patch for the G15 for now? 

Its just a matter of commenting out
Code: [Select]
                "BL      capt_seq_hook_set_nr\n" // +++at line 433 in capt_seq.c.    Do you need a patch file? 
Ported :   A1200    SD940   G10    Powershot N    G16


*

Offline philmoz

  • *****
  • 3179
    • Photos
A3100 related changes (trunk, 1.1).

1) 1.00b: fixed several sub <-> loc mixups, enabled autobuild
Tested by cheddar66 (see posts from here). I have left a note in source about the unsuccessful "override fix for short press" test.
2) all revisions: vid_get_viewport_live_fb() implemented using fw variables found by the sigfinder. This was not thoroughly tested, but zebra works seemingly the same as in the single buffered case. The code is like the other (older) implementations. There appear to be 3 normal buffers (see below), so that's what the routine expects.

DEF(viewport_buffers ,0xffae1430)

ffae1430:    106f3bc0
ffae1434:    107724c0
ffae1438:    107f0dc0
ffae143c:    1062c660
; 4th buffer: not consecutive

If this vid_get_viewport_live_fb() implementation seems risky, then please ignore all lib.c changes in the patch

Added in revision 2738 (trunk) and 2739 (release-1.1).

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)

*

Offline philmoz

  • *****
  • 3179
    • Photos
A3300 patch
1) New loader implemented
2) 100a and 100c are compatible, so 100c directory was deleted and camera_list.csv was modified.
3) vid_bitmap_refresh() modified, call to draw_filled_rect() deleted
4) movie_rec.c modified to support: CAM_AF_SCAN_DURING_VIDEO_RECORD, CAM_CAN_MUTE_MICROPHONE and CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO

Tested on 100c by nemerdekel1, reports here

Added in revision 2740 (trunk) and 2741 (release-1.1).

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)

*

Offline nafraf

  • *****
  • 1308
Added in revision 2740 (trunk) and 2741 (release-1.1).
Thanks.

After implementing a3300 new loader, I forgot to delete loader/a3300/resetcode contents. Patch is attached.



Small patch for a bug in the hostlua stuff - a fix to camera_funcs.get_day_seconds() .
Ported :   A1200    SD940   G10    Powershot N    G16


*

Online reyalp

  • ******
  • 12742
Small patch for a bug in the hostlua stuff - a fix to camera_funcs.get_day_seconds() .
Added, trunk changeset 2755
Don't forget what the H stands for.

*

Offline nafraf

  • *****
  • 1308
ixus125 101a: Small patch to fix nrflag.
Patch posted here

Tested by geopig, report here: http://chdk.setepontos.com/index.php?topic=8085.msg100293#msg100293

 

Related Topics