Adding new cameras, applying patches into trunk (with source code prepared) - page 156 - General Discussion and Assistance - CHDK Forum

Adding new cameras, applying patches into trunk (with source code prepared)

  • 1685 Replies
  • 847542 Views
*

Offline philmoz

  • *****
  • 3450
    • Photos
Advertisements
Attempting to use LiveView does not crash but the image is unusable.  Fixing this looks like much more work than I have time for right now - the ixus300_sd400 has what appears to be a somewhat unique extra wide LCD.


From photos on the web, the LCD looks similar to the IXUS 310.
There's less than 12 months between their release dates, so the viewport values I used for that might help.


Phil.

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)

Attempting to use LiveView does not crash but the image is unusable.  Fixing this looks like much more work than I have time for right now - the ixus300_sd400 has what appears to be a somewhat unique extra wide LCD.
From photos on the web, the LCD looks similar to the IXUS 310.
There's less than 12 months between their release dates, so the viewport values I used for that might help.
Thanks for that!

I checked the dpreview stats for LCD info - the ixus310 has 2x the number of pixels.  But the code for the 310 is easy to follow once I cleaned up the 300's messy lib.c and sub/lib.c files.  After a little disassembly work for things the sigfinder doesn't recognize and some trial&error with the height and width constants, I now have something that seems to do LiveView pretty well.  There is sometimes a short "initialization" delay with a snowy live screen but that clears up in a few seconds.

Now I'm looking for other side effects from the changes.  Reading this recent posts about the ixus300 on dpreview points out some other historical issues I was not aware of with edge overlay, histogram, and zebra. Sigh.
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline reyalp

  • ******
  • 14126
Updates for ixus300_sd4000 based on recent issues identified by Robert1975.
Thanks, added in trunk 4863 and release-1_4 4864

Note as usual, I used the 1.5 patch and merged it to 1.4.
Don't forget what the H stands for.

*

Offline Ant

  • *****
  • 509
Here is current_fb_d patch for EOS M3. Not tested on fw 120f but should work.

P.S.
Does setting of address 0x1011C to 0x00000001 enable focus peaking on G7X?
« Last Edit: 11 / July / 2017, 16:08:36 by Ant »

Second patch for the ixus300_sd4000.

Changes :
  • Fixed issue where jog dial movement in <ALT> mode would cause changes when <ALT> mode was existed.
  • Fixed viewport buffer code so that zebra, MD detect, edge overlay, histogram, and live view now work correctly.
  • Fixed set_led code
  • Started clean-up of platform_camera.h
  • Move all code from platform/ixus300_sd4000/sub/100d/lib.c to platform/ixus300_sd4000/lib.c as it's not firmware version specific (the sub/100d/lib.c file can be deleted - didn't do that as I was not sure it that would affect the autobuild)

When I get a few moments,  I'll go through and cleanup any of the ToDo items flagged by pixeldoc2000 in the code.  But for now, the big bugs are hopefully now all very much dead  :haha

Edit :  and or course thanks to reyalp & philmoz for their help in making this happen
« Last Edit: 11 / July / 2017, 20:43:15 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline reyalp

  • ******
  • 14126
Second patch for the ixus300_sd4000.

Thanks. Added in trunk 4867, release-1_4 4869

Quote
Move all code from platform/ixus300_sd4000/sub/100d/lib.c to platform/ixus300_sd4000/lib.c as it's not firmware version specific (the sub/100d/lib.c file can be deleted - didn't do that as I was not sure it that would affect the autobuild)
In general, can be removed as long as you remove it from Makefile too.  However, I moved a couple functions back to the sub lib.c because they directly access firmware variables. Purely cosmetic in this case since there's only one sub, but maybe less chance of someone using it as an inappropriate example.
Don't forget what the H stands for.

*

Offline reyalp

  • ******
  • 14126
Here is current_fb_d patch for EOS M3. Not tested on fw 120f but should work.
Thanks. Added in trunk 4870.

Quote
P.S.
Does setting of address 0x1011C to 0x00000001 enable focus peaking on G7X?
Yes.
Don't forget what the H stands for.

However, I moved a couple functions back to the sub lib.c because they directly access firmware variables.
Thanks for that - makes sense.

My real goal was to combine all the image buffer stuff in one place and in some kind of order that makes sense.  philmoz's  ixus310 lib.c is quite well done - I wanted the ixus300 to be sorted and clear as well (and not divided across multiple files if possible).

This is the fifth palette color & live view buffer port update I've done.  It's hard to keep track of what is needed and what constants (240, 280, 480, 960 etc) affect what.
Ported :   A1200    SD940   G10    Powershot N    G16

Final clean-up and testing of "ToDo" items from ixus300_sd4000 port.   

I hereby suggest removing the BETA status from this port.  It's never going to be perfect but I'm done and I think it's pretty darn good.  Props to pixeldoc2000  for creating the port.
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline reyalp

  • ******
  • 14126
Final clean-up and testing of "ToDo" items from ixus300_sd4000 port.   

I hereby suggest removing the BETA status from this port.  It's never going to be perfect but I'm done and I think it's pretty darn good.  Props to pixeldoc2000  for creating the port.
Thanks. Added in trunk 4874, release-1_4 4875 and beta status removed.
Don't forget what the H stands for.

 

Related Topics


SimplePortal © 2008-2014, SimplePortal