IXUS160/ELPH160 Porting attempt - page 35 - DryOS Development - CHDK Forum

IXUS160/ELPH160 Porting attempt

  • 497 Replies
  • 237488 Views
*

Online reyalp

  • ******
  • 14125
Re: IXUS160/ELPH160 Porting attempt
« Reply #340 on: 20 / December / 2015, 20:21:45 »
Advertisements
There is still an possible issue with the zebra that needs to be investigated:
I believe that no framebuffers (= those we're using) have a height over 240 pixels, so the 480 in the source is not correct. (but that's probably not all)
Regarding this: Can someone provide a chdkptp lvdump of this camera? Should in record mode, with both viewport and UI overlay enabled. A "quick dump" from the GUI or default 'lvdump' from the CLI is fine.
Don't forget what the H stands for.

Re: IXUS160/ELPH160 Porting attempt
« Reply #341 on: 20 / December / 2015, 22:12:53 »
Could I get access to the latest canon ixus 160 CHDK version  link to test.

Thanks,

*

Offline nafraf

  • *****
  • 1308
Re: IXUS160/ELPH160 Porting attempt
« Reply #342 on: 20 / December / 2015, 22:14:29 »
Regarding this: Can someone provide a chdkptp lvdump of this camera? Should in record mode, with both viewport and UI overlay enabled. A "quick dump" from the GUI or default 'lvdump' from the CLI is fine.
I sent you a PM with the link to the lvdump file. Thanks.

*

Online reyalp

  • ******
  • 14125
Re: IXUS160/ELPH160 Porting attempt
« Reply #343 on: 20 / December / 2015, 22:24:14 »
Could I get access to the latest canon ixus 160 CHDK version  link to test.
Sent
I sent you a PM with the link to the lvdump file. Thanks.
Received. Thanks :)
Don't forget what the H stands for.

*

Online reyalp

  • ******
  • 14125
Re: IXUS160/ELPH160 Porting attempt
« Reply #344 on: 21 / December / 2015, 21:55:16 »
From nafrafs lvdumps it looks like this camera has 720x240 viewport and bitmap, similar to older cameras like D10 (I expected to be 480 like elph130). So the only (probable) error I see is returning a height of 480 in playback mode. I'm assuming the chdkptp live view shows the whole viewport area, it looks to me like it does but it's hard to be certain.

This wouldn't explain the issue nafraf reported with the zebra. I'm not sure how this would happen, an lvdump showing it might be useful. One thing that occurs to me is that zebra does not currently honor DRAW_ON_ACTIVE_BITMAP_BUFFER_ONLY, disp_zebra just draws on both buffers, and assumes the second immediately follows the first. If there was a gap, that might produce something like nafraf described.

Here's  a test build that has the playback mode height set to 240 and shows the bitmap addresses. I'm mostly interested in the BM0 and BM1 values.

https://app.box.com/s/6m917eq3z6bepg1se2gs1v6o0zpsxaiq

I'm posting this publicly, but the usual elph160 bricking warning applies. If it destroys your camera don't blame us.

Don't forget what the H stands for.

*

Offline srsa_4c

  • ******
  • 4451
Re: IXUS160/ELPH160 Porting attempt
« Reply #345 on: 22 / December / 2015, 18:44:42 »
just draws on both buffers, and assumes the second immediately follows the first. If there was a gap, that might produce something like nafraf described.
Not sure if this is what you're looking for, but just in case. This is from the RAM dump I have. Buffer size = 720x360, only the first 240 lines are used.

edit:
Turns out, these might be necessary (as in the ixus150 port):
Code: [Select]
    #undef  CAM_BITMAP_HEIGHT
    #define CAM_BITMAP_HEIGHT               360
« Last Edit: 22 / December / 2015, 18:50:51 by srsa_4c »

*

Online reyalp

  • ******
  • 14125
Re: IXUS160/ELPH160 Porting attempt
« Reply #346 on: 23 / December / 2015, 19:42:28 »
General framebuffer discussion split to http://chdk.setepontos.com/index.php?topic=12709.0
Don't forget what the H stands for.

*

Offline nafraf

  • *****
  • 1308
Re: IXUS160/ELPH160 Porting attempt
« Reply #347 on: 23 / December / 2015, 20:03:29 »
This patch is based on your comments and ixus150 port. zebra and chdkptp liveview work without problems.
Is there any other test that you suggest?

*

Online reyalp

  • ******
  • 14125
Re: IXUS160/ELPH160 Porting attempt
« Reply #348 on: 23 / December / 2015, 20:29:33 »
This patch is based on your comments and ixus150 port. zebra and chdkptp liveview work without problems.
Is there any other test that you suggest?
Seems good to me. You could check edge overlay.
Don't forget what the H stands for.

*

Offline nafraf

  • *****
  • 1308
Re: IXUS160/ELPH160 Porting attempt
« Reply #349 on: 24 / December / 2015, 15:43:16 »
Thanks. Edge overlay works. Changes committed to trunk rev. 4317

 

Related Topics


SimplePortal © 2008-2014, SimplePortal