Commit Graph

78 Commits

Author SHA1 Message Date
Luis Díaz Más
b05573fadc Remove most of the asserts from codebase 2022-03-23 16:55:18 +01:00
Luis Díaz Más
30bf563f4d Update .clang-format file & apply clang-format to whole project 2022-03-16 22:30:53 +01:00
Rosen Penev
b2b6d834ba
some std::array conversions (#2148)
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-15 10:17:06 +01:00
Luis Diaz
7576a2757b More size_t for sizes 2022-03-14 11:50:42 +01:00
Luis Diaz
62aad98d0b Change Metadatum::copy return value from long to size_t 2022-03-14 11:47:15 +01:00
Luis Díaz Más
96f7f2e4c5 Convert Exiv2::ErrorCode into an enum class 2022-03-12 16:58:40 +01:00
Rosen Penev
8dadcdf72a manual nullptr removals
unique_ptr has a bool overload. It's also easier to reason about.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-09 17:12:29 -08:00
Rosen Penev
c2bcd4b08e replace EXV_COUNTOF with std::size
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-08 00:26:33 -08:00
Rosen Penev
133849c394 clang-tidy: remove pointless get()
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-05 16:21:26 -08:00
Rosen Penev
a5c094b85f clang-tidy: use concat namespaces
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-04 15:54:05 -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
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
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
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
Luis Díaz Más
21eb0cec4f Fix build when EXIV2_BUILD_MESSAGES is ON 2022-02-19 19:05:27 +01:00
Michael Allman
9541a89b13 Make Exif.NikonAf2.ContrastDetectAFInFocus and
Exif.NikonAf22.ContrastDetectAFInFocus byte types
2022-02-18 15:52:53 -08:00
Christoph Hasse
0aa34c3098 fix(canon): cleanup canonAf2 and canonAf3 related code 2022-02-14 16:30:00 +01:00
Robin Mills
800ed8959f Rewire Canon MakerNote 0x0026 (AFInfo) to allow TiffDecoder::decodeCanonAFInfo to handle this tag.
Minor changes to test script.
Cosmetic code changes.
2022-02-14 16:30:00 +01:00
Alex Esseling
b70a3fb572 Canon AF Info 2 Tag 2022-02-14 16:29:45 +01:00
Alex Esseling
5cc52feb4b Adding Canon RawBurst Tag 2022-02-14 16:29:44 +01:00
Alex Esseling
cf36feaa61 Adding Canon AF Config Tag 2022-02-14 16:29:44 +01:00
Alex Esseling
56a455422d Adding LensSerialNumber Tag 2022-02-14 16:29:44 +01:00
Alex Esseling
e3311b9a4f canon filter options 2022-02-14 16:29:44 +01:00
Alex Esseling
d6f1f7c614 Adding of Canon Vignetting Correction Tag 2 2022-02-14 16:29:44 +01:00
Alex Esseling
8b174900fa Adding Canon Lighting Optimization Tag 2022-02-14 16:29:43 +01:00
Alex Esseling
524b33e5df Canon MultiExposure tag added 2022-02-14 16:29:43 +01:00
Alex Esseling
e2b1028973 Adding tag Canon AFMicroAdj 2022-02-14 16:29:43 +01:00
Alex Esseling
80d67b89c6 Adding Ambience Selection to tag list 2022-02-14 16:29:43 +01:00
Christoph Hasse
3ffe9938f8 Decoding of Canon HDRInfo tag 2022-02-14 16:29:43 +01:00
Alex Esseling
b589ced049 update to tags 2022-02-14 16:29:43 +01:00
Alex Esseling
081f458bf1 update tags ID 2022-02-14 16:29:42 +01:00
Alex Esseling
f41e7e59e3 second rund 2022-02-14 16:29:42 +01:00
Kevin Backhouse
2a3dd2def9
Replace Value::toLong with Value::toInt64. (#2062)
* Replace Value::toLong with Value::toInt64.

* Fix compiler warning.

* Fix compile error.

* Fix declaration of canonEv

* Fix compiler warning.

* Fix compiler warning.

* Use int64_t for offsets in tiffcomposite_int.cpp

* Fix compiler warning.

* Fix compiler warnings.

* Fix compiler warning.

* Fix compiler warning.

* Fix compiler warning.

* Fix compiler warning.

* Remove static_cast<long int> in TagDetails initializer.
2022-02-12 21:16:18 +00:00
Luis Díaz Más
0f03e77634 Simplify code around UniquePtr(s) & use make_unique over new 2022-02-05 11:02:04 +01:00
postscript-dev
eb134d1946
Add testing for NikonFl7 makernotes group 2021-11-02 16:02:21 +00:00
Dmitry Fedorov
45fe046a9c
Update src/tiffimage_int.cpp
Co-authored-by: Miloš Komarčević <4973094+kmilos@users.noreply.github.com>
2021-09-23 09:16:11 -07:00
Dmitry Fedorov
193eea1913
Update src/tiffimage_int.cpp
Co-authored-by: Miloš Komarčević <4973094+kmilos@users.noreply.github.com>
2021-09-23 09:16:03 -07:00
Dmitry Fedorov
1491b106d9 fix for reading jpeg-xr images 2021-09-22 11:09:17 -07:00
Kevin Backhouse
9ff72e5ca5
Make offset=0 the default parameter. 2021-08-30 12:41:08 +01:00
Kevin Backhouse
c9d0cf3643
Make fields of DataBuf private. 2021-08-29 15:43:10 +01:00
postscript-dev
0144209ed0 Add SonySInfo1 makernote tags (tag 3000)
Add all tags, except the face detection sub-groups and related
bookkeeping values.

Source: Exiftool (https://exiftool.org/TagNames/Sony.html)
2021-07-30 15:59:52 +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
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
postscript-dev
2b8856dcea
Add SonyMisc1 (Tag 0x9403) makernote tags
Source: Exiftool (https://exiftool.org/TagNames/Sony.html)
2021-07-11 16:32:38 +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
6da49fd29b more constexpr
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-05-19 14:11:42 +02:00