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

Display (bitmap overlay)

  • 403 Replies
  • 125256 Views
Re: Display (bitmap overlay)
« Reply #370 on: 27 / December / 2021, 13:24:04 »
Advertisements
@waterwingz & @62ndidiot
Test versions for G16 1.01c and SX60 1.00f
I have not looked at this for a while so I may have missed something.
Downloaded and installed this version on my G16.  Tested in shooting mode with auto focus tracking window enabled and active.  Menus and OSD icons all stable with no "flashing".  Very nice!

I'm not sure what needs to be tested but I enabled grids and histogram and that worked stably.  Took some photos, used CHDK overrides, ran the motion detection script - everything worked perfectly.

I then tried zebra and edge overlay with less success.  Using a card setup for 1.6.0-6026 I could see the overexposed regions in zebra mode and edge overlay outlines. Overwriting the older 6026 version on the card with the new 6027 zip file makes the zebra and edge overlay stop working.  I went back and forth unzipping to the same card (i.e. same CHDK config each time) but no zebra or edge overlay with the new version. There was no observable response on the LCD to enabling these features.

EDIT :   I forgot to say "thank you" to @philmoz for doing this.

« Last Edit: 27 / December / 2021, 22:00:35 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: Display (bitmap overlay)
« Reply #371 on: 28 / December / 2021, 00:47:25 »
I then tried zebra and edge overlay with less success.  Using a card setup for 1.6.0-6026 I could see the overexposed regions in zebra mode and edge overlay outlines. Overwriting the older 6026 version on the card with the new 6027 zip file makes the zebra and edge overlay stop working.  I went back and forth unzipping to the same card (i.e. same CHDK config each time) but no zebra or edge overlay with the new version. There was no observable response on the LCD to enabling these features.


When you get a chance can you try this version please.
This will display 4 numbers at the top left of the display - please post the 4 values from REC mode.


Edit: attachment removed - see later post for newer build.
« Last Edit: 28 / December / 2021, 22:14:53 by philmoz »
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 #372 on: 28 / December / 2021, 19:23:14 »
When you get a chance can you try this version please.
This will display 4 numbers at the top left of the display - please post the 4 values from REC mode.
rec mode :   640 -3 480 0 
play mode : 360 -3 240 0
video mode  640 -3 360 0
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: Display (bitmap overlay)
« Reply #373 on: 28 / December / 2021, 22:14:09 »
When you get a chance can you try this version please.
This will display 4 numbers at the top left of the display - please post the 4 values from REC mode.
rec mode :   640 -3 480 0 
play mode : 360 -3 240 0
video mode  640 -3 360 0


Thanks - it looks like the ximr_context structure is different to all the other versions so far.
Here is a test build with what I think the new structure is.

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 #374 on: 28 / December / 2021, 22:30:51 »
Thanks - it looks like the ximr_context structure is different to all the other versions so far.
Here is a test build with what I think the new structure is.
Edge overlay and zebra now work as expected.  I wasn't able to think of any other features to test that might be tied to display buffers.  Do you have any things I should also try beyond the ones I listed above?

Also, don't forget to disable four debug numbers before you release this   ;)
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: Display (bitmap overlay)
« Reply #375 on: 29 / December / 2021, 01:35:09 »
Do you have any things I should also try beyond the ones I listed above?


It would be good to check HDMI output from the camera if possible.

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 #376 on: 30 / December / 2021, 11:57:46 »
It would be good to check HDMI output from the camera if possible.
So after an interesting battle with connectors and cables, I found a combination that allowed me to connect my G16 to an HDMI capable monitor. Every things works fine when I don't load CHDK.

The first things I discovered is that the existing G16 port screws up the HDMI output.  I didn't test HDMI when I did the port so perhaps that's not surprising.  It looks like a buffer size issue - see the attached image.

Then I tried @philmoz 's new version and that crashed the camera when attached via an HDMI cable.  When I say crashed, starting the camera in playback mode seems to begin normally based in the LED pattern. But no output appears on the HDMI port or the camera's LCD and after a couple seconds the camera simply powers off.  No battery pull required to restart it - just press the playback or On/Off button again.   ROMLOG attached in case it helps.

Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: Display (bitmap overlay)
« Reply #377 on: 30 / December / 2021, 15:58:51 »
Then I tried @philmoz 's new version and that crashed the camera when attached via an HDMI cable.


Thanks for testing - I was afraid there would be problems with HDMI  :(


I will need to create a version using the old display code that dumps the ximr_context structure data to a file.
Might take a little while.

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 #378 on: 30 / December / 2021, 16:16:44 »
I will need to create a version using the old display code that dumps the ximr_context structure data to a file.
Any thoughts on why CHDK screws up the HDMI output on the current trunk release?  I don't recall anything in the porting process specific to HDMI output.

Quote
Might take a little while.
Well, I finished the port over four years ago and nobody yet has complained about the HDMI not working ....
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: Display (bitmap overlay)
« Reply #379 on: 30 / December / 2021, 20:17:35 »
Any thoughts on why CHDK screws up the HDMI output on the current trunk release?  I don't recall anything in the porting process specific to HDMI output.


It probably needs the CAM_SUPPORT_BITMAP_RES_CHANGE flag and the implementation of update_screen_dimensions() in lib.c.

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)

 

Related Topics