-
Notifications
You must be signed in to change notification settings - Fork 286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Interpretation for Exif.Photo.LensSpecification #2422
Interpretation for Exif.Photo.LensSpecification #2422
Conversation
printLensSpecification is copied from old Nikon3MakerNote::print0x0084 call of Nikon3MakerNote::print0x0084 replaced by printLensSpecification
Exif.Photo.LensSpecification and Exif.Nikon3.Lens
test/data/test_reference_files/Sigma_14-24mm_F2.8_DG_HSM_A_for_EOS.exv.out
Outdated
Show resolved
Hide resolved
@norbertwg At the beginning of Could you please check that both of the lower values in |
@kmilos @postscript-dev
|
There is also the clear case in the Exif spec:
|
@kmilos |
Rework according review is done: A test file is created to cover the special cases, which do not occur in regression tests. For completeness the file includes also test for the standard scenarios, which also occur in regression tests. |
Codecov Report
@@ Coverage Diff @@
## main #2422 +/- ##
==========================================
- Coverage 64.64% 64.59% -0.06%
==========================================
Files 119 103 -16
Lines 21119 22224 +1105
Branches 10420 10857 +437
==========================================
+ Hits 13653 14356 +703
- Misses 5300 5633 +333
- Partials 2166 2235 +69
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Three checks are failing, in |
Unless someone else wants to, I will look at this tomorrow. |
This pull request waits for approving review. According to my understanding, all review comments so far are covered - or is something still missing from my side? |
Sorry for not looking at this sooner, recently I haven't worked much on open source projects. Unless someone else wants to, I will try and find some time to review this in the next couple of days. |
needs rebase |
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
@neheb |
need to push it. git push --force |
@norbertwg |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes look good to me.
@neheb mentioned that the PR needs to be rebased, so I will leave for him the final approval. I have been a long time without contributing actively to the project and I might be missing something.
src/tags_int.cpp
Outdated
os << "-" << len2; | ||
// values numerically are ok, so they can be converted | ||
// here first and second can be zero, so initialise float with 0.0 | ||
float focalLength1 = 0.0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[suggestion] Some compilers at certain warning levels would complain about not using the same types here (float variable vs double literals). Could you replace those 0.0
with 0.0F
when comparing or assigning float variables?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
valid point, I changed it.
…ps://github.com/norbertwg/exiv2 into interpretation-for-Exif.Photo.LensSpecification
@postscript-dev : thanks for the useful link |
new method printLensSpecification is copied from old Nikon3MakerNote::print0x0084
call of Nikon3MakerNote::print0x0084 replaced by call of printLensSpecification
Exif.Photo.LensSpecification and Exif.Nikon3.Lens added to EasyAccess API