Adding feature support "File Write Task" (FWT): 52 Cams || 41 done || 11 to go - page 7 - General Discussion and Assistance - CHDK Forum

Adding feature support "File Write Task" (FWT): 52 Cams || 41 done || 11 to go

  • 258 Replies
  • 93983 Views
*

Offline srsa_4c

  • ******
  • 4451
Re: Adding feature support "File Write Task" (FWT): 50 Cams || 43 to go
« Reply #60 on: 15 / September / 2014, 13:07:36 »
Advertisements
IXUS 85 also has the CHDKPTP set button situation I reported where only every second use works.
This happens when CHDK doesn't know which bitmap buffer is currently active. In these cases, the first buffer's content will be retrieved (there are 2 buffers).
The sigfinder can only detect the active buffer variable for some DryOS cameras. Vx cams, the oldest and the newest DryOS models have to be done "by hand".

*

Offline koshy

  • *****
  • 1096
Re: Adding feature support "File Write Task" (FWT): 50 Cams || 43 to go
« Reply #61 on: 15 / September / 2014, 15:28:57 »
Vx cams, the oldest and the newest DryOS models have to be done "by hand".
Thanks for the hint. Does by hand mean nafraf's hand or mine? Phrased differently do you need a camera to find the active buffer variable or do you get it from the FW? If you need a camera how do you search for the active buffer variable?
Koshy had a little ELPH which wasn't white as snow but everywhere that Koshy went the ELPH was sure to go. (actually an SD, but that detail ruins the rhyme...)

*

Offline srsa_4c

  • ******
  • 4451
Re: Adding feature support "File Write Task" (FWT): 50 Cams || 43 to go
« Reply #62 on: 15 / September / 2014, 16:42:30 »
Phrased differently do you need a camera to find the active buffer variable or do you get it from the FW?
You can start with a port in which the fw variable's address is known to be correct. The reference camera should be one that is close to the camera in question (possibly same generation). You locate the variable address in the reference cam fw disassembly then you search for the same spots in the other firmware. If you're lucky, the code that references the variable is almost identical. If the address is found, the necessary CHDK support routines have to be added and the build needs to be tested on camera.
So, the camera is usually not necessary for finding the address, but it is necessary for the tests.
(To avoid possible confusion: by "you" I mean the person who does the work, not you)

*

Offline koshy

  • *****
  • 1096
Re: Adding feature support "File Write Task" (FWT): 50 Cams || 43 to go
« Reply #63 on: 15 / September / 2014, 20:08:12 »
So, the camera is usually not necessary for finding the address, but it is necessary for the tests.
(To avoid possible confusion: by "you" I mean the person who does the work, not you)
Thanks for the clarification. I'll be here to test it once it needs it. But I resent doing work 8).
Koshy had a little ELPH which wasn't white as snow but everywhere that Koshy went the ELPH was sure to go. (actually an SD, but that detail ruins the rhyme...)

*

Offline nafraf

  • *****
  • 1308
Re: Adding feature support "File Write Task" (FWT): 50 Cams || 43 to go
« Reply #64 on: 15 / September / 2014, 22:42:52 »
a580 patch, using a590 as reference, implements:
- int vid_get_palette_type()
- int vid_get_palette_size()
- void *vid_get_bitmap_active_palette()
- void **vid_get_bitmap_active_buffer()


*

Offline nafraf

  • *****
  • 1308
Re: Adding feature support "File Write Task" (FWT): 50 Cams || 43 to go
« Reply #65 on: 15 / September / 2014, 23:18:22 »
IXUS 90 has the same issue with CHDKPTP set button as A580 and IXUS 960 did.

In CHDKPTP the mode selection pull down menu is not populated for IXUS 90.
Please test these patches.

*

Offline koshy

  • *****
  • 1096
Re: Adding feature support "File Write Task" (FWT): 50 Cams || 43 to go
« Reply #66 on: 16 / September / 2014, 10:48:45 »
a580 patch, using a590 as reference, implements:
- int vid_get_palette_type()
- int vid_get_palette_size()
- void *vid_get_bitmap_active_palette()
- void **vid_get_bitmap_active_buffer()
Very good. Now The CHDKPTP set button et al. work well and on first press. I think this and the earlier FWT patch complete the A580.
Koshy had a little ELPH which wasn't white as snow but everywhere that Koshy went the ELPH was sure to go. (actually an SD, but that detail ruins the rhyme...)

*

Offline koshy

  • *****
  • 1096
Re: Adding feature support "File Write Task" (FWT): 50 Cams || 43 to go
« Reply #67 on: 16 / September / 2014, 11:36:46 »
ixus90_bitmap_trunk3614.diff
ixus90_modemap_list_trunk3614.diff
Thank you. On IXUS 90 the mode map pull down now works. The CHDKPTP set button et al. also work well and on first press.

Something got broken in a funny way though. Powering the camera (IXUS 90) on using Power button only works if USB cable is plugged in. Play button always works. Trunk 3614 doesn not have any power button power on problem.
« Last Edit: 16 / September / 2014, 12:19:51 by koshy »
Koshy had a little ELPH which wasn't white as snow but everywhere that Koshy went the ELPH was sure to go. (actually an SD, but that detail ruins the rhyme...)

*

Offline nafraf

  • *****
  • 1308
Re: Adding feature support "File Write Task" (FWT): 50 Cams || 42 to go
« Reply #68 on: 16 / September / 2014, 17:21:54 »
Thanks. a580 changes committed to trunk. Changeset 3615

Ixus 90 power button bug is weird.  I'll check it and I'll post later.

New patch to fix bitmap buffer detection on ixus85.

*

Offline koshy

  • *****
  • 1096
Re: Adding feature support "File Write Task" (FWT): 50 Cams || 42 to go
« Reply #69 on: 16 / September / 2014, 19:41:41 »
New patch to fix bitmap buffer detection on ixus85.
Splendid, that worked out nicely. I retested FWT, too. No problems with anything. Of course a few garbled lines show at the bottom of the live view (as they did all along) but I take it that is not our focus right now. Many cams have that and we might return to that another time. I think I85 is done.
Koshy had a little ELPH which wasn't white as snow but everywhere that Koshy went the ELPH was sure to go. (actually an SD, but that detail ruins the rhyme...)

 

Related Topics


SimplePortal © 2008-2014, SimplePortal