Commit Graph

3953 Commits

Author SHA1 Message Date
Kevin Backhouse
beaee05062
Change type of sizeDataArea_ 2022-07-27 22:50:07 -04:00
Kevin Backhouse
30debd2635
Use size_t for the offset. 2022-07-27 17:26:18 -04:00
Peter
dc4ae73013
Add tag description option to exiv2 app (#2279)
* Add `tagDesc()` to (Exif|Xmp|Iptc) Datums and Keys
* Add `--Print d` option to exiv2 app
* Add testing for all exiv2 application `--Print` options
* Update manpage
2022-07-12 15:31:43 +01:00
Kevin Backhouse
05586628b2
Merge pull request #2276 from kevinbackhouse/TagInfo-enums
Move enums from tags_int.hpp to tags.hpp
2022-07-12 10:23:26 +01:00
Kevin Backhouse
3ef783e02a
Convert IfdId and SectionId to enum classes. 2022-07-11 22:37:52 +01:00
Kevin Backhouse
90f794f13e
Merge pull request #2277 from kevinbackhouse/iptcDataSegs
Simplify the iptcDataSegs logic in jpgimage.cpp
2022-07-09 23:35:44 +01:00
Kevin Backhouse
97e58a4573
Merge pull request #2267 from neheb/clang
mostly clang-tidy fixes
2022-07-09 21:50:50 +01:00
Kevin Backhouse
8e5b8113e7
Use emplace_back 2022-07-09 21:45:58 +01:00
Kevin Backhouse
2c31430ecd
Merge pull request #2275 from kevinbackhouse/vector-access
Fix some "unsafe vector access" warnings
2022-07-09 11:41:31 +01:00
Kevin Backhouse
a608138f5f
Simplify the iptcDataSegs logic 2022-07-08 13:51:34 +01:00
Kevin Backhouse
62043c18ab
clang-format 2022-07-08 12:52:02 +01:00
Kevin Backhouse
b9b2d7741b
Fix some "unsafe vector access" warnings. 2022-07-08 12:48:42 +01:00
Kevin Backhouse
3f7cb78a3b
Move enums from tags_int.hpp to tags.hpp 2022-07-08 12:03:53 +01:00
Kevin Backhouse
0c3da129f2
Replace assert with enforce. (Fix for https://github.com/Exiv2/exiv2/issues/2268) 2022-07-07 17:31:38 +01:00
Kevin Backhouse
7f673c766d
Fix some "signed shift" warnings 2022-07-06 22:22:30 +01:00
Rosen Penev
5be42f132c try to fix some fanalyzer warnings
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-07-05 17:41:12 -07:00
Rosen Penev
c0083d6788 clang-tidy: fix mismatching declaration variable
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-07-05 17:41:12 -07:00
Rosen Penev
7f9242afc6 clang-tidy: replace + with append()
Silences clang-tidy performance warning

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-07-05 17:41:12 -07:00
Rosen Penev
fc1a398488 clang-tidy: remove const
It doesn't do what it's supposed to here.

Found with misc-misplaced-const

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-07-05 17:41:12 -07:00
Rosen Penev
84555f1ad5 clang-tidy: no else after return
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-07-05 15:29:42 -07:00
Kevin Backhouse
a5c521ea57
Merge pull request #2252 from neheb/2
clang-tidy: use default member init
2022-07-05 23:07:08 +01:00
Kevin Backhouse
60b3e28e0b
Merge pull request #2266 from kevinbackhouse/signed-shift
Fix some "signed shift" warnings
2022-07-05 23:02:56 +01:00
Kevin Backhouse
1ada360774 Fix some incorrect format specifiers. 2022-07-05 10:54:19 -07:00
Kevin Backhouse
b3f2ab5988
Fix some "signed shift" warnings. 2022-07-05 18:34:57 +01:00
Kevin Backhouse
08a68c3606
Merge pull request #2251 from kevinbackhouse/basicio-ftell
Change return type of BasicIo::tell() to size_t
2022-07-05 13:13:17 +01:00
Kevin Backhouse
5e4eab0012
Merge pull request #2248 from Exiv2/hassec_fix_2247
fix naming of canon EF 35-80mm. closes #2247
2022-07-05 10:37:17 +01:00
Rosen Penev
bae7da19ca clang-tidy: use default member init
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-07-03 12:24:41 -07:00
Miloš Komarčević
c2fbff291e PNG: always strip the existing iCCP chunk 2022-06-30 09:50:53 +02:00
Kevin Backhouse
ad4e13b827
Change return type of BasicIo::tell() to size_t. 2022-06-21 17:05:10 +01:00
Christoph Hasse
16d72c9945 fix naming of canon EF 35-80mm.closes #2247 2022-06-10 16:42:17 +02:00
Rosen Penev
cf963e9e4d clang-tidy: C casts to C++
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-05-21 17:58:10 -07:00
Rosen Penev
a98954a98e clang-tidy: add missing special member functions
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-05-21 17:39:26 -07:00
Rosen Penev
b4c90b5e16 clang-tidy: replace pointer magic with data()
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-05-21 17:14:58 -07:00
Miloš Komarčević
93dc63b389
Merge pull request #2215 from Exiv2/add_f_lenses
Add some F mount lenses
2022-05-21 16:13:05 +02:00
Miloš Komarčević
e00422ae52 Account for header bytes for Exif and XMP boxes 2022-05-19 10:25:13 +02:00
Rosen Penev
0dcd8605c9 fix mmap compilation
CI doesn't catch all cases failing.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-04-29 10:49:14 +02:00
Luis Díaz Más
c9bdd6ed94
Merge pull request #2209 from Exiv2/mainTODOs
Improvements around TODO comments
2022-04-29 09:04:46 +02:00
Rosen Penev
d59e1433c0 replace readlink with std::filesystem
Simpler.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-04-25 07:44:44 +02:00
Miloš Komarčević
707e22c577 Add some F mount lenses 2022-04-20 16:31:46 +02:00
Rosen Penev
bd1758c3c5 remove some double pointer stuff
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-04-18 15:35:06 -07:00
Rosen Penev
65c5b772c9 fix misplaced const
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-04-18 14:23:58 -07:00
Rosen Penev
c9c2a1847b remove const std::function
std::move is used.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-04-18 13:59:35 -07:00
Rosen Penev
a86bc386da reference conversions
There's no nullptr here.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-04-18 13:53:14 -07:00
Rosen Penev
48f848f5bb clang-tidy: remove const params in decls
Found with readability-avoid-const-params-in-decls

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-04-18 13:53:13 -07:00
Rosen Penev
2e721a716e std::function conversions
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-04-18 13:02:32 -07:00
Rosen Penev
a8061e7ee9 clang-tidy: default member init
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-04-14 18:01:55 -07:00
Rosen Penev
151b54ab3e remove default constructor
This is rule of zero.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-04-14 18:00:54 -07:00
Luis Díaz Más
2b74cc885d Revert some boilerplate which is not needed 2022-04-14 13:22:45 +02:00
Luis Díaz Más
d4ffcb9497 utils are in Internal namespace 2022-04-14 10:41:07 +02:00
Luis Díaz Más
cc79051b79 Move 1-liner to header file 2022-04-14 10:41:06 +02:00