* 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`
51 lines
2.5 KiB
Python
51 lines
2.5 KiB
Python
# -*- coding: utf-8 -*-
|
|
|
|
import system_tests
|
|
|
|
class CheckSonyMinoltaLenses(metaclass=system_tests.CaseMeta):
|
|
|
|
url = "http://dev.exiv2.org/issues/1145"
|
|
|
|
filenames = ["$data_path/exiv2-bug1145a.exv",
|
|
"$data_path/exiv2-bug1145b.exv",
|
|
"$data_path/exiv2-bug1145c.exv",
|
|
"$data_path/exiv2-bug1145d.exv",
|
|
"$data_path/exiv2-bug1145e.exv",
|
|
]
|
|
|
|
commands = [ "$exiv2 -pa -g Lens " + filenames[0],
|
|
"$exiv2 -pa -g Lens " + filenames[1],
|
|
"$exiv2 -pa -g Lens " + filenames[2],
|
|
"$exiv2 -pa -g Lens " + filenames[3],
|
|
"$exiv2 -pa -g Lens " + filenames[4],
|
|
]
|
|
|
|
stdout = [ """Exif.Sony1.LensID Long 1 Tamron SP AF 11-18mm F4.5-5.6 Di II LD Aspherical IF
|
|
Exif.Sony1.LensSpec Byte 8 Unknown
|
|
Exif.Photo.LensSpecification Rational 4 110/10 180/10 45/10 56/10
|
|
Exif.Photo.LensModel Ascii 20 DT 11-18mm F4.5-5.6
|
|
""",
|
|
"""Exif.Sony1.LensID Long 1 Tamron SP AF 17-50mm F2.8 XR Di II LD Aspherical
|
|
Exif.Sony1.LensSpec Byte 8 Unknown
|
|
Exif.Photo.LensSpecification Rational 4 0/10 0/10 0/10 0/10
|
|
Exif.Photo.LensModel Ascii 5 ----
|
|
""",
|
|
"""Exif.Sony1.LensID Long 1 Tamron AF 18-200mm F3.5-6.3 XR Di II LD Aspherical [IF] Macro
|
|
Exif.Sony1.LensSpec Byte 8 Unknown
|
|
Exif.Photo.LensSpecification Rational 4 0/10 0/10 0/10 0/10
|
|
Exif.Photo.LensModel Ascii 5 ----
|
|
""",
|
|
"""Exif.Sony1.LensID Long 1 Tamron SP 70-300mm F4-5.6 Di USD
|
|
Exif.Sony1.LensSpec Byte 8 70-300mm F4.0-5.6
|
|
Exif.Photo.LensSpecification Rational 4 700/10 3000/10 40/10 56/10
|
|
Exif.Photo.LensModel Ascii 16 70-300mm F4-5.6
|
|
""",
|
|
"""Exif.Sony1.LensID Long 1 Tamron SP AF 90mm F2.8 Di Macro
|
|
Exif.Sony1.LensSpec Byte 8 Unknown
|
|
Exif.Photo.LensSpecification Rational 4 1000/10 1000/10 28/10 28/10
|
|
Exif.Photo.LensModel Ascii 17 100mm F2.8 Macro
|
|
""",
|
|
]
|
|
stderr = [""] * len(commands)
|
|
retval = [0] * len(commands)
|