Mode dials and Playback pushbuttons - page 11 - General Discussion and Assistance - CHDK Forum supplierdeeply

Mode dials and Playback pushbuttons

  • 201 Replies
  • 88632 Views
*

Offline reyalp

  • ******
  • 14117
Re: Mode dials and Playback pushbuttons
« Reply #100 on: 02 / December / 2009, 04:41:54 »
Advertisements
done ;)
Don't forget what the H stands for.

*

Offline fudgey

  • *****
  • 1705
  • a570is
Re: Mode dials and Playback pushbuttons
« Reply #101 on: 02 / December / 2009, 12:37:59 »

*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: Mode dials and Playback pushbuttons
« Reply #102 on: 02 / December / 2009, 15:41:36 »
You might experiment with set_levent_active. It seems to stop mode dial change events generated by the physical dial from being posted.
Without success  :(

And about modemaps:
How about "C" ("C1", "C2") mode? Its value cannot be detected using propertycase browser (because it is disguised as one of other mode), but this mode can be set using lua set_capture_mode(_canon).
For example, for SX10 set_capture_mode_canon(8225) sets "C" mode.

*

Offline reyalp

  • ******
  • 14117
Re: Mode dials and Playback pushbuttons
« Reply #103 on: 03 / December / 2009, 02:24:53 »
You might experiment with set_levent_active. It seems to stop mode dial change events generated by the physical dial from being posted.
Without success  :(

And about modemaps:
How about "C" ("C1", "C2") mode? Its value cannot be detected using propertycase browser (because it is disguised as one of other mode), but this mode can be set using lua set_capture_mode(_canon).
For example, for SX10 set_capture_mode_canon(8225) sets "C" mode.
I guess you can find the propcase value by using the event method of setting mode  (or looking at the table in ROM you mentioned) ?

We can add any that are useful and known to work to the CHDK modemap IMO.

If someone comes up with an automatic way to find the canon mode table on all cameras, maybe we can use that, but I'm not in a hurry to touch every camera again ;)

Do all the modes in that list seem to be fully functional ? On a540, they are all known in the modemap already, no "hidden" modes.

edit:
on a540 this canon mode list is at FFD588D4, on sd990 it's at FFB49820

Another thing: not all possible PROPCASE_SHOOTING_MODE values are in there, for example, sx10 has
   { MODE_VIDEO_STD,          3622   }, // video in progress
which doesn't appear in the list, and SD990 adds 1024 to the mode value if you use the DP button to start video recording.
« Last Edit: 03 / December / 2009, 02:35:38 by reyalp »
Don't forget what the H stands for.


*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: Mode dials and Playback pushbuttons
« Reply #104 on: 03 / December / 2009, 03:31:52 »
At least we can verify modes map for some cameras ported by careless people  :D

ixus65:

static const CapturemodeMap modemap[] = {
    { MODE_AUTO,               6  },
    { MODE_P,                  1  },
    { MODE_TV,                 3  },  //?
    { MODE_AV,                 2  },  // ?
....

ROM:FF973AD4                 DCW 32774  
ROM:FF973AD6                 DCW 32772
ROM:FF973AD8                 DCW 33288
ROM:FF973ADA                 DCW 33290

P.S. It seems that modes map from a610 (with MODE_AUTO=6 also incorrectly copied to a630(0xFFD682D0), a640, ixus izoom

*

Offline reyalp

  • ******
  • 14117
Re: Mode dials and Playback pushbuttons
« Reply #105 on: 03 / December / 2009, 04:01:34 »
We should also be able to tell if M is really P.

In all the cameras I've looked at, the address of the modelist is stored in (some pointer)+8

There is a function referring to the string  "Mode error: 0x%4x\n" which uses this.

PTM_GetWorkingCaptureMode also looks at a different offset from this.

On sx10 101a address is 0xA668
Don't forget what the H stands for.

*

Offline zeno

  • *****
  • 891
Re: Mode dials and Playback pushbuttons
« Reply #106 on: 03 / December / 2009, 04:12:20 »
Belated thanks and congratulations to you, Reyalp. I see that the bug tracker entry I created almost exactly a year ago has now been closed thanks to your valiant efforts! I'm sorry I couldn't have been more help.
A570, S100, Ixus 127
Author of ASSIST, STICK, WASP, ACID, SDMInst, LICKS, WICKS, MacBoot, UBDB, CFGEdit

*

Offline Aged

  • *
  • 39
Re: Mode dials and Playback pushbuttons
« Reply #107 on: 03 / December / 2009, 06:57:08 »
Results for S3, passed I presume, thanks for great work

s3is 100a CHDK 0.9.9-847 Dec  2 2009 10:37:47 vxworks 0x311a
START                        |                 AUTO   1 32768 STL
TRY                 AUTO   1 |                 AUTO   1 32768 STL  400ms OK
TRY                    P   2 |                    P   2 32772 STL  580ms OK
TRY                   TV   3 |                   TV   3 32771 STL  510ms OK
TRY                   AV   4 |                   AV   4 32770 STL  460ms OK
TRY                    M   5 |                    M   5 32769 STL  720ms OK
TRY             PORTRAIT   6 |             PORTRAIT   6 32781 STL  660ms OK
TRY                NIGHT   7 |                NIGHT   7 32782 STL  410ms OK
TRY            LANDSCAPE   8 |            LANDSCAPE   8 32780 STL  400ms OK
TRY            VIDEO_STD   9 |            VIDEO_STD   9  2590 VID  940ms OK
TRY               STITCH  15 |               STITCH  15 33290 STL 1230ms OK
TRY            MY_COLORS  16 |            MY_COLORS  16 16921 STL  760ms OK
TRY            SCN_NIGHT  18 |            SCN_NIGHT  18 16395 STL  420ms OK
TRY            SCN_PARTY  20 |            SCN_PARTY  20 16400 STL  400ms OK
TRY            SCN_GRASS  21 |            SCN_GRASS  21 16401 STL  390ms OK
TRY             SCN_SNOW  22 |             SCN_SNOW  22 16402 STL  430ms OK
TRY            SCN_BEACH  23 |            SCN_BEACH  23 16403 STL  420ms OK
TRY         SCN_FIREWORK  24 |         SCN_FIREWORK  24 16404 STL  700ms OK
TRY     SCN_COLOR_ACCENT  25 |     SCN_COLOR_ACCENT  25 16920 STL  470ms OK
TRY               SPORTS  53 |               SPORTS  53 32775 STL  720ms OK
TRY                 AUTO   1 |                 AUTO   1 32768 STL  880ms OK

copied from Notepad++


*

Offline fudgey

  • *****
  • 1705
  • a570is
Re: Mode dials and Playback pushbuttons
« Reply #108 on: 03 / December / 2009, 15:53:30 »
a570 100e passed:

a570 100e CHDK 0.9.9 Dec  3 2009 20:16:56 vxworks 0x314c
START                        |                   TV   3 32771 STL
TRY                 AUTO   1 |                 AUTO   1 32768 STL  400ms OK
TRY                    P   2 |                    P   2 32772 STL  390ms OK
TRY                   TV   3 |                   TV   3 32771 STL  380ms OK
TRY                   AV   4 |                   AV   4 32770 STL  400ms OK
TRY                    M   5 |                    M   5 32769 STL  500ms OK
TRY             PORTRAIT   6 |             PORTRAIT   6 32781 STL  410ms OK
TRY            LANDSCAPE   8 |            LANDSCAPE   8 32780 STL  430ms OK
TRY            VIDEO_STD   9 |            VIDEO_STD   9  2597 VID  640ms OK
TRY          VIDEO_SPEED  10 |          VIDEO_SPEED  10  2598 VID  520ms OK
TRY        VIDEO_COMPACT  11 |        VIDEO_COMPACT  11  2599 VID  600ms OK
TRY               STITCH  15 |               STITCH  15 33290 STL  820ms OK
TRY            SCN_WATER  17 |            SCN_WATER  17 16406 STL  610ms OK
TRY            SCN_NIGHT  18 |            SCN_NIGHT  18 16398 STL  400ms OK
TRY            SCN_GRASS  21 |            SCN_GRASS  21 16402 STL  400ms OK
TRY             SCN_SNOW  22 |             SCN_SNOW  22 16403 STL  430ms OK
TRY            SCN_BEACH  23 |            SCN_BEACH  23 16404 STL  480ms OK
TRY         SCN_FIREWORK  24 |         SCN_FIREWORK  24 16405 STL  810ms OK
TRY         SCN_AQUARIUM  28 |         SCN_AQUARIUM  28 16407 STL  400ms OK
TRY               INDOOR  34 |               INDOOR  34 32785 STL  440ms OK
TRY            KIDS_PETS  35 |            KIDS_PETS  35 32784 STL  430ms OK
TRY       NIGHT_SNAPSHOT  36 |       NIGHT_SNAPSHOT  36 32779 STL  480ms OK
TRY                   TV   3 |                   TV   3 32771 STL  420ms OK


*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: Mode dials and Playback pushbuttons
« Reply #109 on: 03 / December / 2009, 18:41:48 »
Results for S3, passed I presume, thanks for great work

It seems that S3IS has two unlisted shooting modes (8218 and 4125) - one from them probably is "C" mode (@0xFF98F378)
Can you test this lua script?

set_capture_mode_canon(8218)
sleep(5000)
set_capture_mode_canon(4125)

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal