Display (bitmap overlay) - page 27 - General Discussion and Assistance - CHDK Forum

Display (bitmap overlay)

  • 355 Replies
  • 83378 Views
Re: Display (bitmap overlay)
« Reply #260 on: 09 / May / 2021, 06:53:01 »
Advertisements
Phil

That did it  :)

BTW, I'll soon be posting a short video of my script running in the new CHDK version.

As I said elsewhere: the M3 is CHDK's flagship camera, or at least one of them  ;)

Cheers

Garry

Re: Display (bitmap overlay)
« Reply #261 on: 09 / May / 2021, 07:32:38 »
@philmoz

I did a test video quicker than I thought:

https://photography.grayheron.net/2021/05/exciting-things-happening-in-chdk.html

Once again, thanks for all your hardwork, as well as others that have added their knowledge to the latest developments.

Cheers

Garry
UPDATE 1
Phil noticed a 'strangeness'. My script detects toggling beween ALT and non-ALT. In non-ALT the histogram is switch off via a set_config_value() call. I've checked to see if CHDK registers this OK and it does. What I see is in ALT mode, ie set_config_value(0), the histogram does not always disappear. If I go in and out of ALT a few times, it will disappear.
« Last Edit: 09 / May / 2021, 11:41:30 by pigeonhill »

*

Offline Ant

  • ****
  • 491
Re: Display (bitmap overlay)
« Reply #262 on: 09 / May / 2021, 16:40:43 »
@philmoz
Addresses for EOS M3:
Code: [Select]
101a:
NHSTUB(VTMLock                             ,0xfc37eea1)
NHSTUB(VTMUnlock                           ,0xfc37f071)
DEF(debug_logging_ptr                      ,0x000286A0)
DEF(debug_logging_flag                     ,0x00028698)
DEF(mzrm_sendmsg_ret_adr                   ,0xfc2fd873)

121a:
NHSTUB(VTMLock                             ,0xfc37f241)
NHSTUB(VTMUnlock                           ,0xfc37f411)
DEF(debug_logging_ptr                      ,0x000286c0)
DEF(debug_logging_flag                     ,0x000286b8)
DEF(mzrm_sendmsg_ret_adr                   ,0xfc2fd8bb)


*

Offline philmoz

  • *****
  • 3332
    • Photos
Re: Display (bitmap overlay)
« Reply #263 on: 09 / May / 2021, 17:19:56 »
What I see is in ALT mode, ie set_config_value(0), the histogram does not always disappear. If I go in and out of ALT a few times, it will disappear.


Does the histogram continue to update or is it a static image of the last values before it was switched off?

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)
  g7x2 (1.01a, 1.01b, 1.10b)


*

Offline philmoz

  • *****
  • 3332
    • Photos
Re: Display (bitmap overlay)
« Reply #264 on: 09 / May / 2021, 17:31:41 »
Addresses for EOS M3:


Thanks, I've added these to the test branch.


I assume the 'msg' parameter is in R11 for the debug logging patch and that the flag bit to enable logging is 0x200.

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)
  g7x2 (1.01a, 1.01b, 1.10b)

*

Offline Ant

  • ****
  • 491
Re: Display (bitmap overlay)
« Reply #265 on: 09 / May / 2021, 18:24:05 »
I assume the 'msg' parameter is in R11 for the debug logging patch and that the flag bit to enable logging is 0x200.

Yes. The flag bit is the same even for D6 DSLRs.

Re: Display (bitmap overlay)
« Reply #266 on: 10 / May / 2021, 02:02:25 »
@philmoz

Quote
Does the histogram continue to update or is it a static image of the last values before it was switched off?

Just tested and, I'm embarrassed to say, I can't replicate the behaviour I saw yesterday. For now, as I switch between ALT and non ALT modes, with my script swtiching on and off the histogram, the histogram is removed OK.

What is a bigger issue, on the M3, is that the CHDK histogram is not reliable, as reported in https://chdk.setepontos.com/index.php?topic=14342.msg146032;topicseen#new

Thus, for me, the CHDK histogram is not usable on the M3: I'll 'just' be using the Canon histogram.

Re: Display (bitmap overlay)
« Reply #267 on: 10 / May / 2021, 02:15:00 »
@philmoz

Partially ignore my last post, as I can replicate the problem: I had forgotten I coded a 'fix', ie clear the display when I switch between ALT modes ;-)

I can confirm the histogram freezes, ie it continues to show a static image.


*

Offline philmoz

  • *****
  • 3332
    • Photos
Re: Display (bitmap overlay)
« Reply #268 on: 10 / May / 2021, 02:53:45 »
I can confirm the histogram freezes, ie it continues to show a static image.


@pigeonhill


Please check if the attached version fixes this.

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)
  g7x2 (1.01a, 1.01b, 1.10b)

Re: Display (bitmap overlay)
« Reply #269 on: 10 / May / 2021, 03:25:36 »
Phil

Looks to have fixed it.

See flashing of the histogram now and then, ie when clearing.

Do I assume this is just an artefact of your solution, ie loop until cleared?

However, as I said, until the CHDK histogram is ‘healed’, I won’t be using it on the M3.

Cheers

Garry

 

Related Topics