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

Mode dials and Playback pushbuttons

  • 201 Replies
  • 51945 Views
*

Offline reyalp

  • ******
  • 12597
Re: Mode dials and Playback pushbuttons
« Reply #120 on: 04 / December / 2009, 20:15:45 »
Advertisements
Thanks.
I guess
16922  MY_COLORS should be SCN_COLOR_SWAP, since the canon page has no specific "my colors" mode.
2595  VIDEO_MY_COLORS should probably be VIDEO_COLOR_SWAP, again assuming no distinct "my colors" mode.
Canons spec page unfortunately only lists the video resolution/frame rate, not the modes.

A640 should be the same, since canon uses the same manual for both.

The night modes are confusing. The CHDK mode list has SCN_NIGHT and SCN_NIGHT1 but it's not clear what they refer to. I guess I need to grep the code and see if I can figure out why 1 was created. For non scn modes, there is NIGHT and NIGHT_SNAPSHOT

The canon manual isn't much help in this respect
Quote
Night scene
allows you to capture human subject against the backdrop of an evening sky or night scene flash is directed at the person and shutter speed is slow...
Quote
Night snapshot
Allows you to take snapshots of people against twilight or night backgrounds by reducing the effeccts of camera shake...
ok then....  :-[ Oh and thank you canon for "securing" your PDF manuals so adobe reader won't let me copy/paste quotes ::)

What we would really like to have one constant for modes that are functionally equivalent, regardless of whether they fall under the "SCN" category or not, but that may be beyond our reach.

Some we can probably safely guess
LANDSCAPE/PORTRAIT/INDOOR/STITCH/SPORT must refer the same thing whether they get a position on the mode dial or end up in the scen menu on a particular camera, right ?

I also suspect that some of the existing CHDK mode constants refer to the same thing, e.g. GRASS/FOLIAGE and CHILD/KIDS_PETS.

No need for the full log BTW. Modes that aren't in the "normal" test will always fail, because the script uses CHDK mode numbers, and it only has canon numbers for ones in the modemap. OTOH, I guess it does give you a list of all the modes CHDK knows about.
Don't forget what the H stands for.

Re: Mode dials and Playback pushbuttons
« Reply #121 on: 04 / December / 2009, 20:18:08 »
Just catching on to this thread.  Not sure if you caught my posting here (http://chdk.setepontos.com/index.php/topic,4479.0.html) but I had implemented the set_capture_mode_type on my SX10, and tested various modes based on what I had found previously in the firmware to find several working modes that were not part of the regular available modes.
These fell into 4 categories:
1) Named modes that are part of normal camera operation (ie, ones on the mode dial)
2) Named modes that are not part of the camera operation, but work as advertised on cameras they are available on (e.g., fast shutter, slow shutter, digital zoom, etc.)
3) Named modes that do nothing (e.g. ISO6400, Creative Light Effects)
4) Unnamed modes that do something, but I never really tested fully to figure out what (e.g., there were additional mode numbers that did colour swap and colour accent, some that did an extended shutter speed by default, etc.)

On top of this, setting to some modes between the working (or at least settable) modes, would lock up the camera (I didn't fully test the extent of working/non working modes).
One of the interesting things I also found was that I could set custom to one of the inaccessable modes (I currently have it set on Digital Macro which is normally available on the SX10).

This may be of some help in the development here.  From what I've seen, it would seem that (all?) modes are (may be?) present and settable in all cameras (at least of the same OS type) just not enabled or fully functional, and that perhaps all cameras (of the same OS) share the mode numbers.

One really curious outcome is the presence of the ISO6400 mode.  It doesn't do anything notable, but the only record I have seen of it elsewhere is as a mode available on certain DSLRs.  I'm wondering whether this may indicate the the DSLRs share a lot of software portions with the P&S cameras which may be positive news toward DSLR CHDK development.

*

Offline reyalp

  • ******
  • 12597
Re: Mode dials and Playback pushbuttons
« Reply #122 on: 04 / December / 2009, 20:42:59 »
1) Named modes that are part of normal camera operation (ie, ones on the mode dial)
2) Named modes that are not part of the camera operation, but work as advertised on cameras they are available on (e.g., fast shutter, slow shutter, digital zoom, etc.)
3) Named modes that do nothing (e.g. ISO6400, Creative Light Effects)
4) Unnamed modes that do something, but I never really tested fully to figure out what (e.g., there were additional mode numbers that did colour swap and colour accent, some that did an extended shutter speed by default, etc.)
That is interesting, you were able to set modes not in the modelist ewavr found. I'm a bit surprised by this, because there appears to be a function that checks the list and reports an error for modes not in the list (but it's just log, not assert, so maybe it's just ignored)

I don't see any general way to reliably determine which of these undocumented modes is fully functional, so it is just something for people to experiment with and note what works and doesn't.

Where are you getting the names and numbers from ? Looking at the sx10 dump, the event name "ModeDialToKidsAndPets" is the only result I get searching for "kids" for example. It seems to me that the event table lists events for pretty much every camera that exists at a given time.
Quote
I'm wondering whether this may indicate the the DSLRs share a lot of software portions with the P&S cameras which may be positive news toward DSLR CHDK development.
From what I've seen of the DSLR dumps, this is absolutely not the case. I suspect they are done by two different development teams, using completely different codebases for the non OS portions of the firmware.
Don't forget what the H stands for.

Re: Mode dials and Playback pushbuttons
« Reply #123 on: 04 / December / 2009, 20:57:18 »
Quote
1) Named modes that are part of normal camera operation (ie, ones on the mode dial)
2) Named modes that are not part of the camera operation, but work as advertised on cameras they are available on (e.g., fast shutter, slow shutter, digital zoom, etc.)
3) Named modes that do nothing (e.g. ISO6400, Creative Light Effects)
4) Unnamed modes that do something, but I never really tested fully to figure out what (e.g., there were additional mode numbers that did colour swap and colour accent, some that did an extended shutter 6aspeed by default, etc.)
That is interesting, you were able to set modes not in the modelist ewavr found. I'm a bit surprised by this, because there appears to be a function that checks the list and reports an error for modes not in the list (but it's just log, not assert, so maybe it's just ignored)

I don't see any general way to reliably determine which of these undocumented modes is fully functional, so it is just something for people to experiment with and note what works and doesn't.
This was a number of weeks ago before it was fully implemented.  I had noticed the function showed up in the trunk but was commented out, so I just reinstated it and added a lua registration so I could script it.

Quote
Where are you getting the names and numbers from ? Looking at the sx10 dump, the event name "ModeDialToKidsAndPets" is the only result I get searching for "kids" for example. It seems to me that the event table lists events for pretty much every camera that exists at a given time.
Yes.  I only found it through experimentation really.  What happened was I was doing some testing with ISO3200 mode so I did a search for its mode number and found a pair of functions, one that converts a mode number to an index(?) number, and one that converts the index to a mode.  Basically I steeped throught the functions and collected all the mode numbers referenced and tested them individually.  When testing, the Kids&Pets mode actually gave me a mode icon in record.  For all the other modes there was no icon, but in playback and in the exif there was a corresponding icon/mode name.  Was really all just a shot in the dark.

Quote
Quote
I'm wondering whether this may indicate the the DSLRs share a lot of software portions with the P&S cameras which may be positive news toward DSLR CHDK development.
From what I've seen of the DSLR dumps, this is absolutely not the case. I suspect they are done by two different development teams, using completely different codebases for the non OS portions of the firmware.
Perhaps.  It's just curious that there actually is an ISO6400 mode referenced (you can find this in the strings as well) but it doesn't work, and the only cameras that currently have an ISO6400 mode are DSLRs from what I've seen.




*

Offline reyalp

  • ******
  • 12597
Re: Mode dials and Playback pushbuttons
« Reply #124 on: 04 / December / 2009, 21:27:56 »
Yes.  I only found it through experimentation really.  What happened was I was doing some testing with ISO3200 mode so I did a search for its mode number and found a pair of functions, one that converts a mode number to an index(?) number, and one that converts the index to a mode.
If you happen to still have the addresses of the functions, please post them.
Quote
Perhaps.  It's just curious that there actually is an ISO6400 mode referenced (you can find this in the strings as well) but it doesn't work, and the only cameras that currently have an ISO6400 mode are DSLRs from what I've seen.
I'm sure "ISO6400" for P&S is in the works, since competitors are doing it. It's also not surprising for them to have allocated constants for it, I would guess that the code that interprets/displays jpg understands pretty much all possible values of things like shutter speed, ISO, aperture, even if it's not present on that particular camera (I have a sneaking suspicion that's where the ISO6400 string comes from.)
Don't forget what the H stands for.

Re: Mode dials and Playback pushbuttons
« Reply #125 on: 04 / December / 2009, 21:47:03 »
Yes.  I only found it through experimentation really.  What happened was I was doing some testing with ISO3200 mode so I did a search for its mode number and found a pair of functions, one that converts a mode number to an index(?) number, and one that converts the index to a mode.
If you happen to still have the addresses of the functions, please post them.
I don't have my original work here with me, but from a quick search they approximately start at FF88754C & FFAF77A0 (SX10 101A).  An easy search method is to look for a reference to 0x401E which is the ISO6400 mode.

*

Offline reyalp

  • ******
  • 12597
Re: Mode dials and Playback pushbuttons
« Reply #126 on: 04 / December / 2009, 22:49:12 »
The CHDK mode list has SCN_NIGHT and SCN_NIGHT1 but it's not clear what they refer to. I guess I need to grep the code and see if I can figure out why 1 was created. For non scn modes, there is NIGHT and NIGHT_SNAPSHOT
NIGHT1 is only used on G7, which has both "night scene" and "night snapshot" under the SCN menu.

A warning to anyone using the CHDK mode names/numbers in script: I'm going to take this opportunity to clean them up before they are in wide use, so consider them preliminary and subject to change for now.
Don't forget what the H stands for.

*

Offline dvip

  • ****
  • 451
Re: Mode dials and Playback pushbuttons
« Reply #127 on: 05 / December / 2009, 01:14:58 »
set_capture_mode_canon() works in the A590IS.

When I use:

set_capture_mode_canon(8225)

I get a mode where the cam sets TV/AV by itself. The mode icon where it usually shows M, TV, AV, AUTO, etc... is just an empty gray box so I'm not sure what mode it is. It doesn't look like any of the other modes the the cam comes with.
 
In this mode the A590IS picks TV/AV like in Auto but you can change ISO, AWB, etc.. or any thing in the Func.Set menu.
It took some pictures without a problem too.

Cool  8)



*

Offline reyalp

  • ******
  • 12597
Re: Mode dials and Playback pushbuttons
« Reply #128 on: 05 / December / 2009, 01:47:02 »
set_capture_mode_canon(8225)
This value isn't in the a590 canon mode list. Try some other random value (say 8123) and see if it behaves the same.

t looks like the a590 CHDK mode map has many errors. If you can run the setmode.lua test script in batch mode, and post the log, that would be helpful.

If you want to help even more, you can follow the instructions in http://chdk.setepontos.com/index.php/topic,3828.msg35931.html#msg35931 to record the canon mode value for each available camera mode. Note that because the a590 is a propset 2 camera, you'll need to watch prop 49 instead of 0 (so go to page 4 in the propcase view).
Don't forget what the H stands for.

*

Offline reyalp

  • ******
  • 12597
Re: Mode dials and Playback pushbuttons
« Reply #129 on: 05 / December / 2009, 04:35:23 »
I can't find the canon mode list for a570 at all. By reference to other firmware, I would expect the function that returns it to be FFEE5EC0, called from FFEE26E4 (in 100e).
Don't forget what the H stands for.

 

Related Topics