Commit Graph

33 Commits

Author SHA1 Message Date
Christoph Hasse 7d2f2d2526 make the ifdef in getExiv2ConfigPath a bit more minimal 2021-07-28 13:05:36 +02:00
Christoph Hasse 95c2c26747 Fixes for Max and Win 2021-07-28 13:05:36 +02:00
Christoph Hasse 6d5407e851 first search cwd for config file then check home dir 2021-07-28 13:05:36 +02:00
postscript-dev cc9d780534 Add SonyMisc3c makernote tags (tag 9400)
Changes:
+ Add tags. Rename Exiftool `SequenceLength` tags to `SequenceLength1`
  and `SequenceLength2`, to prevent a name clash.
+ Update docs and manpage.

Source: [Exiftool](https://exiftool.org)
2021-07-26 10:40:54 +01:00
postscript-dev 293fd586ab Add SonyMisc2b makernote tags (tag 9404)
Changes:
+ Add tags, pretty printing and tag group selector function
+ Update docs

Source: https://exiftool.org/TagNames/Sony.html
2021-07-21 10:48:28 +01:00
postscript-dev b82084995c Add getExifValue() to makernote_int.cpp
Function generalizes `getExifModel()`, allowing any value in a tag to
be accessed.
2021-07-21 10:13:42 +01:00
postscript-dev 510a38e27d Move all startsWith() funcs to Util namespace
The function checks if a string is in the beginning of another. This
is intended for use until the move to C++20 when
`std::basic_string<>::starts_with()` becomes available. Suggested in
https://github.com/Exiv2/exiv2/pull/1777 .

Separate identical definitions have been moved into a single copy.
2021-07-18 12:00:05 +01:00
postscript-dev 0827a76b6a Update Sony2Fp makernote functions
Minor changes using suggestions in #1777:
+ Simplify loop conditions
+ Add startsWith() in SonyMakerNote class
+ Change `if`/`else` to `switch`
2021-07-16 11:04:13 +01:00
postscript-dev 4a21b45e60 Update Sony2Fp makernote tag selector function
In C++20, std::string has a starts_with() function. Add a startsWith()
function now, which can be replaced when the project moves to C++20.

Suggested in https://github.com/Exiv2/exiv2/pull/1777
2021-07-14 12:08:16 +01:00
postscript-dev 4ac8ac9ba0 Update Sony2Fp makernote tags (tag 9402)
Changes:
+ Add pretty printing for all tags
+ Add camera selector, to prevent incompatible models using tags
+ Update testing with new values

Source: Exiftool (https://exiftool.org/TagNames/Sony.html)
2021-07-13 16:53:15 +01:00
Rosen Penev 2c57f214c5 clang-tidy: use nullptr
Found with modernize-use-nullptr

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-05-26 08:31:45 +02:00
Rosen Penev d1e116a8ef remove some pointless std::set
Partially found by gcc's -fanalyzer

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-05-25 08:29:51 +02:00
Rosen Penev c44c289d76 clang-tidy: fix ending namespace comnments
Found with llvm-namespace-comment

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-05-19 23:08:08 -07:00
Rosen Penev 6da49fd29b more constexpr
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-05-19 14:11:42 +02:00
Rosen Penev cdbee3c26c clang-tidy: init in member initializer
Found with cppcoreguidelines-prefer-member-initializer

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-05-19 14:11:42 +02:00
Rosen Penev b8712188bb clang-tidy: use auto
Found with modernize-use-auto

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-05-17 21:52:03 +02:00
Rosen Penev fdf9d3799c clang-tidy: don't use else after return
Found with llvm-else-after-return

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-05-15 17:32:56 +02:00
Rosen Penev 1b9b77c51f clang-tidy: add ending namespace comments
Found with google-readability-namespace-comments

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-05-14 17:34:09 +02:00
Rosen Penev fddb035106 clang-tidy: remove pointless const
Found with readability-avoid-const-params-in-decls

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-05-13 16:02:18 +02:00
Rosen Penev 2e73aa9dc0 default con/destructors in headers
Helps to optimize trivially destructable stuff.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-05-12 09:10:36 +02:00
Rosen Penev 8337462032 clang-tidy: use empty() instead of comparing size
Found with readability-container-size-empty

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-05-11 22:02:47 +02:00
Rosen Penev 1dc1186760 clang-tidy: simplify boolean expressions
Found with readability-simplify-boolean-expr

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-05-09 17:30:46 +02:00
Rosen Penev 8128716287 clang-tidy: use = default
Found with modernize-use-equals-default

Ran through git clang-format

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-05-09 15:18:50 +02:00
Rosen Penev 4ceb325c8f clang-tidy: range for loop conversions
Found with modernize-loop-convert

Ran through git clang-format.

Also removed several questionable loops and replaced with simpler
algorithms.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-05-03 14:50:04 +02:00
Robin Mills d632988bbd Massive code prolog cleanup. 2021-03-17 13:34:21 +00:00
Christoph Hasse 2909e9cacc Implement handling of new Nikon LensData version 8.0 and 8.01 2020-12-20 13:48:42 +01:00
clanmills 18ed65a25f fix_Sony2010e_0.27 Thanks to @sridharb1 2020-03-29 17:55:37 +01:00
Robin Mills b02c80f7e4 fix646_NikonAF22 2019-06-18 21:29:55 +02:00
Luis Diaz Mas e397f8f053 Fix #533 - Apply patch proposed by Dominique Nerriec 2018-11-14 07:55:21 +01:00
Luis Diaz Mas 83bb4aa80a code formatting 2018-11-14 07:55:21 +01:00
Luis Díaz Más fab770887b Initialize member variables not initialized in the constructor 2018-11-07 23:17:26 +01:00
Luis Díaz Más 603692a1d8 Copyright to Exiv2 authors 2018-09-12 19:22:31 +02:00
Luis Díaz Más d3748152a7 add _int suffix to all the internal files 2017-11-28 17:36:08 +01:00