Commit Graph

3771 Commits

Author SHA1 Message Date
Rosen Penev
f65848a590 simplify ReplaceStringInPlace slightly
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-04 15:54:05 -08:00
Rosen Penev
5d60a91ebc move initializations to class
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-04 15:54:05 -08:00
Rosen Penev
a67e0d525f move namespace fs below includes
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-04 15:54:05 -08:00
Rosen Penev
ae3e28c62a make array constexpr
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-04 15:54:03 -08:00
Luis Díaz Más
b17828b454
Use SPDX for licenses (#2122)
* Use SPDX identifier in header files

* Use SPDX identifier in rest of source files

* Fix usage of SPDX for files with 2 licenses

* Add global license file

* Fix compilation
2022-03-04 11:44:39 +01:00
Luis Díaz Más
5ca423d292
Merge pull request #2118 from Exiv2/main_NewDelete
Refactoring & Cleanup (Moving to size_t usage & less naked new/deletes)
2022-03-04 08:23:46 +01:00
Luis Díaz Más
a5b6db171c
Merge pull request #1919 from dimin/viqi
fix for reading jpeg-xr images
2022-02-28 09:42:43 +01:00
Luis Díaz Más
ac9b9e2c95
Merge pull request #2071 from Sturmflut/nikon-improve-lens-docs
[nikon] Add instructions for adding new Nikon F mount lenses
2022-02-28 09:34:16 +01:00
Luis Díaz Más
208ec70df8 Fix windows builds 2022-02-27 13:48:21 +01:00
Luis Díaz Más
e07c3771da Fix more issues found by fuzzer 2022-02-27 12:42:08 +01:00
Luis Díaz Más
12738214f2 Fix warnings and place return statements separated from if 2022-02-27 11:57:53 +01:00
Luis Díaz Más
f6b17d2a4d Fix issues found by fuzzer 2022-02-27 11:57:24 +01:00
Luis Díaz Más
b9f9d041ea Several transformations on DataBuf + migration to size_t
- Provide begin/end iterators to DataBuf and simplify code
- Adapt test output after last changes
- Replacing long by size_t in value.hpp
- Use size_t in some Photoshop functions
- Remove some static_casts
2022-02-27 09:41:47 +01:00
Luis Díaz Más
7dea0050b1 Factor out duplicated piece of code 2022-02-27 09:36:46 +01:00
Luis Díaz Más
5d627433fc Remove useless DataBuf::clear() 2022-02-27 09:36:46 +01:00
Luis Díaz Más
3a749e6861 No need to define copy & move ctors 2022-02-27 09:36:46 +01:00
Luis Díaz Más
2bacff0f5c Simplify DataBuf 2022-02-27 09:36:46 +01:00
Luis Díaz Más
615ccff5ab Fix another case revealed by tests 2022-02-27 09:36:46 +01:00
Luis Díaz Más
6e50714726 Replace c style arrays by std::array 2022-02-27 09:36:46 +01:00
Luis Díaz Más
f1e04ee866 Replace DataBuf internal buffer with std::vector 2022-02-27 09:36:46 +01:00
Luis Díaz Más
aec36f86d7 Replace naked new operators 2022-02-27 09:36:46 +01:00
Robin Mills
9bf4967e5c
Merge pull request #2110 from mallman/nikon_ContrastDetectAFInFocus
Make Nikon ContrastDetectAFInFocus tags Bytes that print as "Yes" or "No"
2022-02-26 17:44:05 +00:00
Michael Allman
5ff7d89a4c Document origin of data size specifications for Nikon maker note tag 0xb7 2022-02-24 14:57:43 -08:00
Michael Allman
54eab964a6 When selecting which version of nikonAf2 metadata to parse, include the
size of the data declared in the tag header as part of the lookup
2022-02-22 15:44:39 -08:00
Luis Díaz Más
c5a9dfd9af
Merge pull request #2109 from Exiv2/main_StringView
Refactoring & cleanup
2022-02-21 22:29:43 +01:00
Michael Allman
a3e2410b88 Print value of ContrastDetectAFInFocus as Yes/No. Change internal
selection logic for NikonAf2* from tag data length to group version
2022-02-19 15:47:02 -08:00
Kevin Backhouse
5d86044c71
Merge pull request #2107 from kevinbackhouse/MetadataToLong
Replace Metadatum::toLong() with Metadatum::toInt64().
2022-02-19 20:24:26 +00:00
Luis Díaz Más
21eb0cec4f Fix build when EXIV2_BUILD_MESSAGES is ON 2022-02-19 19:05:27 +01:00
Luis Díaz Más
8b3da36f42 Improvements from code review 2022-02-19 17:27:29 +01:00
Kevin Backhouse
a7ce4ee846
Move Metadatum::toUint32() implementation out of header file. 2022-02-19 13:38:46 +00:00
Michael Allman
9541a89b13 Make Exif.NikonAf2.ContrastDetectAFInFocus and
Exif.NikonAf22.ContrastDetectAFInFocus byte types
2022-02-18 15:52:53 -08:00
Kevin Backhouse
5db9a25b19
Fix compiler warnings. 2022-02-18 22:22:15 +00:00
Kevin Backhouse
90aa007188
Convert type of pixelHeight/pixelWidth to platform-independent uint32_t. 2022-02-18 22:17:32 +00:00
Luis Díaz Más
f774a3b25e Fix build on linux 2022-02-18 22:48:01 +01:00
Luis Díaz Más
9fb43f28e0 Use standard [[maybe_unused]] 2022-02-18 22:48:01 +01:00
Luis Díaz Más
76f01fd4d3 Clean more header inclusions 2022-02-18 22:48:01 +01:00
Luis Díaz Más
7e5ba7cb23 Remove many redundant or not needed header inclusions 2022-02-18 19:01:24 +01:00
Luis Díaz Más
b543f3e973 Use filesystem in getExiv2ConfigPath
It seems to have an important impact in performance. The execution of
ctest on Windows passed from 48.5 secs to 43.8. Check if this is the
same on Linux
2022-02-18 18:45:31 +01:00
Luis Díaz Más
476a5e23f9 Replace raw loop for any_of 2022-02-18 18:16:03 +01:00
Luis Díaz Más
59f4d0de27 cppcheck: reduce scope of variables 2022-02-18 18:01:02 +01:00
Luis Díaz Más
d11479e53c Replace dynamic C array by std::vector 2022-02-18 18:01:02 +01:00
Luis Díaz Más
ea201ce613 Remove dead code 2022-02-18 18:01:02 +01:00
Luis Díaz Más
1d243ed40e Remove dead code: copyXattrFrom 2022-02-18 18:01:02 +01:00
Luis Díaz Más
c0b663b7ea Remove dead code (LSTAT) 2022-02-18 18:01:02 +01:00
Luis Díaz Más
798cf9baeb Remove dead code (winNumberOfLinks) 2022-02-18 18:01:02 +01:00
Luis Díaz Más
a6185d29c6 Image::setComment now takes string_view 2022-02-18 18:01:02 +01:00
Luis Díaz Más
56b5ab9a29 Use remove from filesystem 2022-02-18 18:01:02 +01:00
Luis Díaz Más
9b3a643d33 Use rename from filesystem 2022-02-18 18:00:55 +01:00
Luis Díaz Más
8b2d17312e ReplaceStringInPlace does it in-place now 2022-02-18 17:54:04 +01:00
Luis Díaz Más
45300ad667 BasicIo::path() returns const ref 2022-02-18 17:54:04 +01:00