Commit Graph

65 Commits

Author SHA1 Message Date
Miloš Komarčević
b4170f4462 Add regression test output 2023-04-17 15:03:09 +02:00
Mohamed Ali Chebbi
2df5b59c9f Current master fails with image #2565: segmentation fault when trying to access outofband offest: add test files 2023-04-13 20:22:25 -07:00
Miloš Komarčević
8af248f098 Add DCP regression test 2023-04-10 15:34:49 -07:00
Rosen Penev
ff7bfb3798
Merge pull request #2422 from norbertwg/interpretation-for-Exif.Photo.LensSpecification
Interpretation for Exif.Photo.LensSpecification
2023-03-07 08:22:00 -08:00
norbertwg
db2f4ee377 interpretation for ExifPhoto.LensSpecification
printLensSpecification is copied from old Nikon3MakerNote::print0x0084
call of Nikon3MakerNote::print0x0084 replaced by printLensSpecification

add two lens tags to EasyAccess API
Exif.Photo.LensSpecification and Exif.Nikon3.Lens

handling of zero; more precision for focal length

silence compiler warnings
2023-03-06 11:01:18 +01:00
Kevin Backhouse
230fbaf421 Use toInt64() for hours and minutes, because they should be integer valued. 2023-02-23 13:23:25 -08:00
Kevin Backhouse
c20ee1a7f5 Use double type to improve floating point accuracy. 2023-02-23 13:23:25 -08:00
Mohamed Ali Chebbi
bed8d3d93c rework of aspectRatio calculation for all video formats and rework the decoding of asf tags 2023-02-10 21:55:24 -08:00
Mohamed Ali Chebbi
6690e2e8f3
Merge branch 'Exiv2:main' into TestVideoData 2023-02-09 21:27:49 +01:00
Miloš Komarčević
13e6671de2
Update some Canon IDs (#2501) 2023-02-08 16:49:53 +01:00
Mohamed Ali Chebbi
579cae8e77 add test/data for video support : rework readStringWcharTag method 2023-02-07 11:52:24 +01:00
Mohamed Ali Chebbi
e388ba523f add test/data for video support : rename Xmp.video.Duration to Xmp.video.duration 2023-02-06 10:39:35 +01:00
Mohamed Ali Chebbi
d2fa07d559 Format issue 2023-02-02 17:15:41 +01:00
Mohamed Ali Chebbi
cb7a48f84a Rework Asf and Riff formats ; add test/data for video support 2023-02-02 16:31:16 +01:00
Mohamed Ali Chebbi
bbb3f5afa8 add test/data for video support : gix issue in riff video and reference data test 2023-01-23 01:39:16 +01:00
Mohamed Ali Chebbi
1bd52de0a9 add test/data for video support : delete filename (unuseful) 2023-01-06 23:44:35 +01:00
Mohamed Ali Chebbi
c1d79c17f6 add test/data for video support 2023-01-06 23:17:43 +01:00
norbertwg
9ca161d1e5
Rename resp. remove duplicate exif keys (#2434)
* rename resp. remove duplicate Exif keys

Duplicate key names with different tag are renamed
Following most of the existing entries, the key with higher tag number
is renamed to ...2.
Exceptions: Canon.CustomFunctions,Olympus.ImageHeight,Olympus.ImageWidth
In the available images samples only the key with higher tag number is
used, so changing the other has less impact on test data and also on
users.
Canon.WhiteBalanceTable with tag 0x00a4 was listed twice, once with
description "SharpnessTable". The entry with the deviating description
is deleted.

* clang format

* adjust test output files (after merge with Exiv2)

* add Exif.NikonLd4.FocusDistance to EasyAccess API

* clang format
2022-12-30 14:37:05 +01:00
norbertwg
8d8ac99be0 Lens Recognition HD PENTAX-DA* 11-18mm F2.8 ED DC AW 2022-12-27 17:53:20 +01:00
Miloš Komarčević
b52ade814b Prefer writing PNG eXIf chunk 2022-12-26 12:34:20 +01:00
norbertwg
74720d8044
Remove duplicate tag info entries fujifilm (#2412)
* remove duplicate Fuijifilm TagInfo entries

* test data added for some Fujifilm tags

* remove unknown tag 0x1200

* fix typo: SzeneRecognition to SceneRecognition
2022-11-13 19:26:57 +00:00
Miloš Komarčević
7efc733bf2 Add an RF lens regression test 2022-10-26 14:12:53 +02:00
Kevin Backhouse
62705a6615
Use Safe::add() in tiffvisitor_int.cpp 2022-10-23 20:04:42 +01:00
norbertwg
3c87d82cd0 fix for GCC compiler error, test reference file 2022-10-09 15:55:58 +02:00
norbertwg
1d291ba06d test reference files added 2022-10-08 16:22:23 +02:00
Peter
9dc34ad39c
Update Sony(1|2) tags (#2323)
* Update Sony(1|2) group (minor Minolta changes)

Transcribe all tags (except for `LensID`) from main ExifTool Sony
group into Exiv2.
Changes include:
- Rename `ColorReproduction` -> `CreativeStyle` and
  `LongExposureNoiseReduction` -> `FocusMode3` to reflect use.
- Rename `0x*` tagnames to equivalent ExifTool tags (e.g.,
  `0x2006` -> `Sharpness`).
- Remove tag entries that are Groups (e.g., `ShotInfo`).
- Separate some common Sony/Minolta data as the camera types use
  different values (e.g., `Quality`)
- Additional `exiv2-Sony*.exv` test files come from ExifTool Sony
  samples (https://exiftool.org/Sony.tar.gz).

ExifTool Sony tags sources:
https://www.exiftool.org/TagNames/Sony.html
1e17485cbb/lib/Image/ExifTool/Sony.pm

* Improve coverage of `Sony(1|2)` group

* Fix clang compilation on macOS

* Fix github-code-scanning warnings

* Fix minor `Exif.Sony(1|2)` problems

* Fix tests and update `Sony(1|2)` group coverage

* Fix testing

* Minor fixes and regenerate Regression data

* Update Sony tags with `getModel()`

Make finding the Sony model more resilient by also using
`SonyModelID`.

* Fix `Exif.Sony(1|2).AFPointsUsed` type

* Improve `Exif.Sony(1|2).*` coverage

* Fix types in Sony func `getFocusMode()`

* Update Regression tests for `Sony(1|2)`

* Minor fixes to `Sony(1|2)` tags

* Update `Sony(1|2)` tag coverage

* Improve `Sony(1|2)` tag coverage

* Update easyaccess with `Exif.Sony(1|2)` tags

* Update `SonyModelID` array comment

* Add Sony `LensSpec` tag to easyaccess

* Update `Sony(1|2)` label/descriptions

* Update `int` to `size_t` (credit:@kevinbackhouse)

* Fix Windows build warning in `src/tags_int.hpp`
2022-09-27 09:26:26 +01:00
Peter
ccebe7936e
Update Nikon flash tags (#2274) 2022-08-28 10:02:18 +01:00
Christoph Hasse
9afb877324 test(video) add small video file to execute some code in quicktimevideo.cpp 2022-08-24 17:39:42 +02:00
Miloš Komarčević
7fa6d7378f Add Nikon3.WhiteBalanceBias2 2022-08-05 13:51:30 -07:00
Viktor Schneider
73a1a0ec21 Merge remote-tracking branch 'origin' 2022-08-01 22:20:01 +02:00
Peter
94f8889cd3
Update olympus tags (#2246) (#2249)
Update translation output of `Exif.OlympusCs.ArtFilter`/`Exif.OlympusCs.MagicFilter`, `Exif.OlympusCs.ImageStabilization` and `Exif.OlympusCs.WhiteBalance` tags.

Fix `Exif.OlympusCs.ImageStabilization` type from `unsignedShort` to `unsignedLong`.

Closes #2246.

Ref: Exiftool Olympus tags and Olympus E-M10 Mark II instuction manual.
2022-07-19 15:42:00 +01: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
Christoph Hasse
333c4365ed add files from #2247 to regression test suite 2022-06-10 16:58:30 +02:00
Miloš Komarčević
4f9bed24e1 Add more JXL tests 2022-05-19 10:25:13 +02:00
Viktor Schneider
37dc2ee2d7 update test/data/test_reference_files/exiv2-test.out 2022-05-13 16:14:41 +02:00
Viktor Schneider
061a98aa78 update test references to cover new and updated fujifilm tags 2022-05-13 14:53:14 +02:00
Viktor Schneider
fe0f0fb78c apply fujifilm tag changes to exiv2-test.out 2022-05-13 13:57:58 +02:00
Miloš Komarčević
44c3aab2dc Add OM System MakerNote test
(manually adapted from 18e2b9a6bb305854bfe05d0275425ad3699ea757)
2022-03-30 11:16:44 +02:00
Luis Díaz Más
e7478f744d Jp2Image: Implement more checks from JP2 standard + fix bug
- add debug info when parsing Signature box
- Move definitions & static stuff to anonymous namespace
- cleanup while studying code
- Make exceptions more similar to other formats
2022-03-18 14:37:07 +01:00
Miloš Komarčević
134c4767b1 Update tests after XMP stripping 2022-03-09 18:03:03 +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
Peter
d17b7e4484
Fix test_pr_1905.py for native 2019msvc64 (#2108) (#2112)
* Fix test_pr_1905.py for native 2019msvc64 (#2108)

* Move test_pr_1905_poc1_ref.out to reference dir
2022-02-20 21:38:25 +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
Michael Allman
9541a89b13 Make Exif.NikonAf2.ContrastDetectAFInFocus and
Exif.NikonAf22.ContrastDetectAFInFocus byte types
2022-02-18 15:52:53 -08:00
Luis Díaz Más
405f4b5f1b Remove Util::dirname and finally the util files 2022-02-18 13:51:38 +01:00
Luis Díaz Más
1b912fa887 get rid of suffix 2022-02-18 13:51:38 +01:00
Robin Mills
2f135f7e4b Fix regressionTests with modified reference files. cp test/tmp/* test/data/test_reference_files/ 2022-02-15 16:51:49 +00:00
Robin Mills
e1889e39bd Fixing tests. test_issue_981.py is now running all 6 commands. The output Key has correctly changed. The type and value are wrong.
```bash
730 rmills@rmillsmm-local:~/gnu/github/exiv2/update_canon_tags_2/build $ env DYLD_LIBRARY_PATH=$PWD/lib bin/exiv2 -g InfoSize ../test/data/*981*a.exv
Exif.CanonAf2Id.AFInfoSize                   SLong       1  131168
731 rmills@rmillsmm-local:~/gnu/github/exiv2/update_canon_tags_2/build $ exiv2 -g InfoSize ../test/data/*981*a.exv
Exif.Canon.AFInfoSize                        SShort      1  96
732 rmills@rmillsmm-local:~/gnu/github/exiv2/update_canon_tags_2/build $
```
2022-02-14 16:29:59 +01:00
Luis Díaz Más
d19e2d42df Use AutoRotate 2022-02-14 16:29:58 +01:00
Luis Díaz Más
e625f331f9 Include CanonFlashInfo (somehow missing after cherry-picking) 2022-02-14 16:29:57 +01:00