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

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

  • 1679 Replies
  • 788114 Views
*

Offline rudi

  • ***
  • 129
  • A590IS_101B, SX260HS_100B
Re: Adding new cameras, applying patches into trunk (with source code prepared)
« Reply #1660 on: 30 / December / 2021, 14:56:21 »
Advertisements
Here is a patch to enable fmath library for hostlua:
  • add "divide by zero" check for divisor in fmath_new()
  • re-enable os_listdir(), os_idir() for hostlua with old code from trunk 3415
  • add lfmath.o to hostlua Makefile
Successfully tested on windows.
rudi

Re: Adding new cameras, applying patches into trunk (with source code prepared)
« Reply #1661 on: 30 / December / 2021, 22:25:48 »
Patch to make HDMI output on the G16 work correctly. 

see : Re: Display (bitmap overlay)
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline reyalp

  • ******
  • 14082
Re: Adding new cameras, applying patches into trunk (with source code prepared)
« Reply #1662 on: 31 / December / 2021, 00:00:53 »
Patch to make HDMI output on the G16 work correctly. 

see : Re: Display (bitmap overlay)
Added in trunk r6033
Don't forget what the H stands for.

*

Offline reyalp

  • ******
  • 14082
Re: Adding new cameras, applying patches into trunk (with source code prepared)
« Reply #1663 on: 31 / December / 2021, 01:05:11 »
Here is a patch to enable fmath library for hostlua:
  • add "divide by zero" check for divisor in fmath_new()
  • re-enable os_listdir(), os_idir() for hostlua with old code from trunk 3415
  • add lfmath.o to hostlua Makefile
Successfully tested on windows.
rudi
Thanks. I've added in trunk r6035 with a small modification to make os.listdir and os.idir compatible with table options added with CHDK long filename support. Of course, hostlua doesn't actually control long filenames being returned or not, but the option table is handled correctly.

Quote
add "divide by zero" check for divisor in fmath_new()
Mostly, CHDK ignores divide by 0 (see around https://chdk.setepontos.com/index.php?topic=11316.msg124312#msg124312) but I think in this case it makes sense to error, since it's new functionality and the code easily allows throwing an error.
Don't forget what the H stands for.


*

Offline rudi

  • ***
  • 129
  • A590IS_101B, SX260HS_100B
Re: Adding new cameras, applying patches into trunk (with source code prepared)
« Reply #1664 on: 31 / December / 2021, 10:20:26 »
I've added in trunk r6035 with a small modification ...
Perfect, thank you.

*

Offline rudi

  • ***
  • 129
  • A590IS_101B, SX260HS_100B
Re: Adding new cameras, applying patches into trunk (with source code prepared)
« Reply #1665 on: 08 / August / 2022, 10:31:09 »
Here are two tested patches:
  • the missing rebuild of stubs_auto.S for trunk 6109
  • simplified SVN revision extraction including language independence
    the goal are:
    • independence of different messages from different svn versions
    • independence of svnversion languages
    • no error message in case of missing svnversion
    procedure of patch:
    • redirect any subversion error to null device, eg. svnversion is missing
    • keep only digits and colon, this change any result stings to an empty value
    • get valid revision number if is possible
    • the result is revision number or empty value
    • if result empty then use default revision 'DEF_SVN_REF' from buildconf.inc

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: Adding new cameras, applying patches into trunk (with source code prepared)
« Reply #1666 on: 08 / August / 2022, 20:21:17 »
Here are two tested patches:
  • the missing rebuild of stubs_auto.S for trunk 6109
  • simplified SVN revision extraction including language independence
    the goal are:
    • independence of different messages from different svn versions
    • independence of svnversion languages
    • no error message in case of missing svnversion
    procedure of patch:
    • redirect any subversion error to null device, eg. svnversion is missing
    • keep only digits and colon, this change any result stings to an empty value
    • get valid revision number if is possible
    • the result is revision number or empty value
    • if result empty then use default revision 'DEF_SVN_REF' from buildconf.inc


Thanks. Added in revisions 6120 and 6121.

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 blackhole

  • *****
  • 940
  • A590IS 101b
    • Planetary astrophotography
Source code for sx600hs, firmware versions 100d and 100f.
Autobuild is skipped for firmware version 100d because no tests were done.


*

Offline blackhole

  • *****
  • 940
  • A590IS 101b
    • Planetary astrophotography
Source code for ixus180_elph190, firmware version 100a.

*

Offline reyalp

  • ******
  • 14082
Source code for sx600hs, firmware versions 100d and 100f.
Autobuild is skipped for firmware version 100d because no tests were done.
Thanks. Added in trunk r6240, as-is except for running rebuild-firmware-crc and removing some trailing whitespace.
Don't forget what the H stands for.

 

Related Topics