Commit Graph

9008 Commits

Author SHA1 Message Date
Mohamed Ali Chebbi
e403f3a4c4 Current master fails with image #2565: segmentation fault when trying to access outofband offest 2023-04-13 20:22:25 -07:00
Mohamed Ali Chebbi
c4e514cff8 Current master fails with image #2565 2023-04-13 20:22:25 -07:00
Rosen Penev
498f4ce273 simplify loops
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-04-12 09:01:53 -07:00
Rosen Penev
df91578250 clang-tidy: replace defines with enum
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-04-12 09:01:53 -07:00
Rosen Penev
2526dcf5a1 const ref to ref conversions 2023-04-12 09:01:53 -07:00
Rosen Penev
64bb7820a0 clang-tidy: add nodiscard
Found with modernize-use-nodiscard

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-04-12 09:01:53 -07:00
Rosen Penev
6fd143d6a4 sonarlint cleanups
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-04-12 09:01:53 -07:00
Rosen Penev
25189ef1e6 remove some unused defines.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-04-12 09:01:53 -07:00
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