G15 Porting thread - page 8 - DryOS Development - CHDK Forum

G15 Porting thread

  • 87 Replies
  • 30053 Views
Re: G15 Porting thread
« Reply #70 on: 01 / August / 2013, 05:20:03 »
Advertisements
How are you measuring the frame rate?
Visually.
I think the problem is that the frames from the camera, we take often. But the vid_get_viewport_fb is updated less frequently. And really we get 4-6 actual frames per second.
I wrote my test video on QT. And the results are the same.

*

Offline reyalp

  • ******
  • 12586
Re: G15 Porting thread
« Reply #71 on: 01 / August / 2013, 17:12:10 »
I think the problem is that the frames from the camera, we take often. But the vid_get_viewport_fb is updated less frequently. And really we get 4-6 actual frames per second.
OK, so chdkptp is actually rendering ~20 fps as shown in your screenshot, but visually the frame rate looks low.

Implementing vid_get_viewport_fb may indeed improve this, since you are probably only seeing 1/3 of the actual frames.
Quote
I wrote my test video on QT. And the results are the same.
I don't understand what this refers to.
Don't forget what the H stands for.

Re: G15 Porting thread
« Reply #72 on: 07 / October / 2013, 05:25:39 »
I'm using CHDK on the G15 and found it incomplete with regards to keyboard support (could not use "debug action" shortcut).
I propose the following modifications to files in platform/g15:

Code: [Select]
Index: platform/g15/kbd.c
===================================================================
--- platform/g15/kbd.c (revision 3118)
+++ platform/g15/kbd.c (working copy)
@@ -35,6 +35,8 @@
 }
 
 static KeyMap keymap[] = {
+    { 0, KEY_METERING     ,0x00000400 },
+    { 0, KEY_AE_LOCK       ,0x00020000 },
     { 0, KEY_SET             ,0x00000800 }, // Found @0xff4a0d2c, levent 0x08
     { 0, KEY_RIGHT           ,0x00001000 }, // Found @0xff4a0d34, levent 0x07
     { 0, KEY_DOWN            ,0x00002000 }, // Found @0xff4a0d3c, levent 0x05
Index: platform/g15/platform_camera.h
===================================================================
--- platform/g15/platform_camera.h (revision 3118)
+++ platform/g15/platform_camera.h (working copy)
@@ -20,6 +20,7 @@
 // for information on each setting. If the default values are correct for your camera then
 // don't override them again in here.
 
+    #define SHORTCUT_TOGGLE_RAW KEY_METERING
     #define CAM_PROPSET                         5
     #define CAM_DRYOS                           1
     #define CAM_DRYOS_2_3_R39                   1
@@ -37,8 +38,9 @@
     #define CAM_HAS_NATIVE_ND_FILTER            1   // Camera has built-in ND filter with Canon menu support for enable/disable
 
     #define CAM_ADJUSTABLE_ALT_BUTTON           1
-    #define CAM_ALT_BUTTON_NAMES            { "Playback", "Video", "Display" }
-    #define CAM_ALT_BUTTON_OPTIONS          { KEY_PRINT, KEY_VIDEO, KEY_DISPLAY }
+    #define CAM_ALT_BUTTON_NAMES                { "Shrtcut", "Video", "Meter", "AE Lock", "Erase" }
+    #define CAM_ALT_BUTTON_OPTIONS              { KEY_PRINT, KEY_VIDEO, KEY_DISPLAY, KEY_AE_LOCK, KEY_ERASE }
+    #define CAM_DISP_BUTTON_NAME                "METER"
 
     #undef  CAM_CAN_SD_OVER_NOT_IN_MF
     #undef  CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO

*

Offline srsa_4c

  • ******
  • 4229
Re: G15 Porting thread
« Reply #73 on: 07 / October / 2013, 14:47:17 »
I propose the following modifications to files in platform/g15:
Please also update the KEYS_MASK constants at the top of platform/g15/kbd.c. You can test with a simple Lua or uBasic script - use the click command with button names found in modules/script_key_funcs.c

When ready, post the patch here.


Functionality of G15 port
« Reply #74 on: 08 / November / 2014, 06:36:10 »
I'm new to CHDK.  I want to use the G15 underwater and want to set the camera to take a picture every 3 seconds.  I can't use an external intervalometer, as underwater camera housings aren't designed to provide access to the remote terminal jack.

Can someone tell me if the G15 CHDK port supports automatic interval exposures?

Also, I would need to be able to set other settings prior to starting the exposure interval.  Typically I use Av mode, RAW+JPEG, superfine JPEG, large (L, 12 Mpixels) as the setting. Will CHDK for G15 support setting these parameters?  I assume I would not be able to use the default G15 interface if CHDK is running...

Thanks for any pointers you can provide.

Re: G15 Porting thread
« Reply #75 on: 08 / November / 2014, 09:57:11 »
Any Canon P&S camera (including the G15) can be setup to take a picture every 3 seconds using a simple script.  The script is activated when you press the shutter button.  You can even configure the script to run when you turn on the camera and have it wait for any button press before shooting.

You can configure the Canon settings of your camera to what ever you like and they will be used when the shot is taken. CHDK does not override any Canon settings unless you tell it to.

CHDK is most probably the perfect tool for your application as you have described it. 
Ported :   A1200    SD940   G10    Powershot N    G16

Re: G15 Porting thread
« Reply #76 on: 08 / November / 2014, 12:49:29 »
Thanks very much for the feedback.  Now if I can just find 5 G15s...

Ported :   A1200    SD940   G10    Powershot N    G16


Re: G15 Porting thread
« Reply #78 on: 20 / January / 2015, 10:39:05 »
hi,
im sure theres a trick to this but i cant figure it out. as the playback button switches 'alt' mode - how can i switch to playback and back to record? im sorry, i know its a stupid question and theres a simple way to do this but i got used to the print button 'alt' on my old cameras and im stuck 8). (EDIT: ver(s).req and set+display method oc.)

and another one (ive asked this in another topic but thats old and this might be the right place): again, on a number of cameras i managed to get the device to display version and shots taken (the latter interests me) not on my new g15. how could i get the total number of shots?

thanks,
g
« Last Edit: 20 / January / 2015, 11:41:06 by galocza »

*

Offline srsa_4c

  • ******
  • 4229
Re: G15 Porting thread
« Reply #79 on: 20 / January / 2015, 12:25:47 »
hi,
im sure theres a trick to this but i cant figure it out. as the playback button switches 'alt' mode - how can i switch to playback and back to record?
Yes, there's a trick: press and hold the button for approx. half second, you'll get the original function.
Quote
and another one (ive asked this in another topic but thats old and this might be the right place): again, on a number of cameras i managed to get the device to display version and shots taken (the latter interests me) not on my new g15. how could i get the total number of shots?
Recent cameras hide this information more and more. Try enabling the "params" viewer in CHDK (Miscellaneous stuff -> Debug parameters -> Debug data display), set it to page 0 (Propcase/Paramsdata page). Leave the CHDK menu. The number of shots should be around param #1, but I'm not completely sure. Shoot another picture and see which number is increasing. Note that this counter may not be 100% reliable, it could be reset under certain conditions.

Question cross posted here.

 

Related Topics