Commit Graph

9000 Commits

Author SHA1 Message Date
Rosen Penev
d50d9527b5 convert manual loop to find 2023-04-12 09:01:53 -07:00
Rosen Penev
e00c1f5529 meson: fix UCRT check
get_define() is broken for C++ compilers.
2023-04-12 09:01:53 -07:00
Miloš Komarčević
fbc0b21550
Merge pull request #2585 from gribouilleuse/patch-1
Uppercase Pentax to PENTAX at lines 819 to 822
2023-04-11 15:04:50 +02:00
Gribouilleuse
bd1e3c9acb
Uppercase Pentax to PENTAX at lines 819 to 822 2023-04-11 13:30:59 +02:00
Gribouilleuse
a714596b49
Merge branch 'Exiv2:main' into patch-1 2023-04-11 13:02:23 +02:00
Gribouilleuse
4074873146 Addition of 4 lenses Pentax
Addition of 4 lenses Pentax :
HD Pentax-D FA* 50mm F1.4 SDM AW
HD Pentax-D FA 70-210mm F4 ED SDM WR
HD Pentax-D FA* 85mm F1.4 SDM AW
HD Pentax-D FA 21mm F2.4 ED Limited DC WR
2023-04-10 15:36:21 -07:00
Miloš Komarčević
5b85e31b07 Add DCP to list of supported file types 2023-04-10 15:34:49 -07:00
Miloš Komarčević
8af248f098 Add DCP regression test 2023-04-10 15:34:49 -07:00
Miloš Komarčević
0db191257d Support for parsing DCP files 2023-04-10 15:34:49 -07:00
dependabot[bot]
b16afb082e Bump cygwin/cygwin-install-action from 3 to 4
Bumps [cygwin/cygwin-install-action](https://github.com/cygwin/cygwin-install-action) from 3 to 4.
- [Release notes](https://github.com/cygwin/cygwin-install-action/releases)
- [Commits](https://github.com/cygwin/cygwin-install-action/compare/v3...v4)

---
updated-dependencies:
- dependency-name: cygwin/cygwin-install-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-10 15:32:30 -07:00
Gribouilleuse
a76da551a4
Addition of 4 lenses Pentax
Addition of 4 lenses Pentax :
HD Pentax-D FA* 50mm F1.4 SDM AW
HD Pentax-D FA 70-210mm F4 ED SDM WR
HD Pentax-D FA* 85mm F1.4 SDM AW
HD Pentax-D FA 21mm F2.4 ED Limited DC WR
2023-04-10 20:30:54 +02:00
Rosen Penev
e2686569bf meson CI: test all features enabled and disabled
That was the original intention with wrap-mode.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-04-07 11:08:37 -07:00
Rosen Penev
63b5ea47f9 meson CI: remove /analyze
slows down CI massively. Not too useful as most issues have been fixed.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-04-07 11:08:37 -07:00
Rosen Penev
c4ad51077a meson CI: test oldest and newest compilers only
No need for the ones in the middle.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-04-07 11:08:37 -07:00
Rosen Penev
a681b2425e meson CI: move clang workflow to the same file
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-04-07 11:08:37 -07:00
Rosen Penev
a6766b208e meson: only define MinGW stuff for non UCRT
time_t is 64-bit with UCRT.

__USE_MINGW_ANSI_STDIO is used only to get proper printf formats under
msvcrt. UCRT has them. Hence why it's deprecated.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-04-07 11:08:37 -07:00
Rosen Penev
3aa872dd4c meson: add libobsd wrap
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-04-07 11:08:37 -07:00
Rosen Penev
c8c289613d remove EXIV2API from src
Already declared in include

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-04-07 11:08:37 -07:00
Miloš Komarčević
64556b02d2
Merge pull request #2582 from Exiv2/sony_arw_401
Update Sony file format table
2023-04-07 17:13:58 +02:00
Miloš Komarčević
fbf6100d3a Update Sony file format table 2023-04-06 09:57:09 +02:00
Rosen Penev
3fd513fb15 use using in slice
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-04-05 06:16:33 -07:00
Rosen Penev
971bbfac9b meson CI: add MSYS2
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-04-04 11:23:17 -07:00
Rosen Penev
498d01c44d meson CI: remove static build
There's no need for it anymore. All static bugs (mostly on Windows)
were fixed.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-04-04 11:23:17 -07:00
Rosen Penev
5d11711db8 meson CI: add FreeBSD
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-04-04 11:23:17 -07:00
Rosen Penev
c42c7fa9ac meson: build iconv with FreeBSD
Bug was fixed.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-04-04 11:23:17 -07:00
Rosen Penev
9322f137aa don't compile WIN32 stuff when iconv is present
MinGW has iconv, so this block of code can go away.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-04-04 06:58:23 -07:00
Rosen Penev
b10f2d3e95 geotag: fix compilation with MSYS
using namespace std interferes with windows.h

stat defines interfere with internal headers.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-04-04 06:54:09 -07:00
Rosen Penev
cfc0ef0b65 meson: fix tests when zlib is disabled
This sometimes shows up in CI if zlib is not found.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-04-04 06:53:11 -07:00
Rosen Penev
3633f8d2c2 clang-tidy: remove const from data members
Found with cppcoreguidelines-avoid-const-or-ref-data-members

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-04-03 06:53:25 -07:00
Rosen Penev
233f404ac7 direct initialize some structs
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-04-03 06:51:13 -07:00
Miloš Komarčević
0dd06894b3 makernotes: workaround for Olympus header corruption 2023-03-30 12:09:23 -07:00
Miloš Komarčević
3403dabec2 Add Sony ZV-E1 ID 2023-03-29 10:29:15 -07:00
Miloš Komarčević
2f01f70eaf Add some more Nikon Z lenses 2023-03-29 10:02:32 -07:00
Rosen Penev
0fa22ed55d remove codecvt
Deprecated in C++17

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-03-27 06:28:11 -07:00
Rosen Penev
2e33dad1d1 easyaccess const changes
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-03-26 08:17:33 -07:00
Rosen Penev
b92b121532 meson: remove now unused checks
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-03-25 08:04:14 -07:00
Rosen Penev
632536a55a meson: build samples
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-03-25 08:04:14 -07:00
Rosen Penev
848da172da make runner.py executable
Otherwise meson will not find it.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-03-25 08:04:14 -07:00
Rosen Penev
0c0dabfcc7 geotag: add GCC7 support
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-03-25 08:04:14 -07:00
Rosen Penev
357d970425 get rid of EXV_CALL_MEMBER_FN
std::invoke can be used.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-03-25 08:03:39 -07:00
Eli Schwartz
2108ae671a meson: compile convert.cpp separately, with just iconv
Compiling this file with all dependencies as part of the main library
causes it to have the include directories of all dependencies, but iconv
is a bit of a special case: it can have a libc builtin or an external
library version. The external library might be installed to the same
directory as other dependencies, for example on FreeBSD -- but if exiv2
is not supposed to be built with GNU libiconv, then it will expect to
see the libc builtin.

The leaky include directories means that iconv.h gets pulled in from the
GNU libiconv version instead, though, which then forces -liconv to be
necessary for no reason.

There are two general solutions to ensuring that everything links
correctly:

- expect exiv2 to be built with *global* -I/usr/local/include -L/usr/local/lib
  thus forcing the use of GNU libiconv

- carefully compiling the iconv support without any other dependencies

Let's do the latter since it allows for more choice and is easier to
enforce.
2023-03-24 16:19:25 -07:00
Rosen Penev
05f2731d34 std::array removals
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-03-23 13:29:21 -07:00
Rosen Penev
8fe2ae6030 remove constexpr
const_iterator is not constexpr. clang 15 on MSYS2 fails to compile
because of this.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-03-23 13:29:21 -07:00
Rosen Penev
513b0e8bbd constexpr some constructors
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-03-22 06:11:10 -07:00
Rosen Penev
0aed79ff57 remove several constructors
Just direct initialize

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-03-22 06:11:10 -07:00
Rosen Penev
024e026bbb clang: small fixes
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-03-22 06:11:10 -07:00
Rosen Penev
9ae339d39f clang: fix various documentation errors
Found with -Wdocumentation

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-03-22 06:11:10 -07:00
Miloš Komarčević
18e11ac1b6
Explicitly include stdint (#2558) 2023-03-22 11:55:52 +01:00
Rosen Penev
22b12012a6 more SonarLint cleanups
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-03-20 08:01:22 -07:00
Rosen Penev
d29001f2a4 clang-tidy: don't use non const refs
Found with: google-runtime-references

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-03-20 08:01:22 -07:00