Skip to content
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

change print of Exif.Canon.SerialNumber #2806

Merged
merged 2 commits into from
May 17, 2024

Conversation

norbertwg
Copy link
Contributor

reference: #2792
In general serial number is just printed as decimal. Exception for EOS D30, where higher bytes are printed as hex, lower bytes as decimal, the format, which was used for all Canon devices before this change.
Output is now aligned with Canon Photo Digital Professional 4 (except leading zeros). A few exceptions, where the images have two entries in Exif.Canon.SerialNumber (which looks strange): then Canon Photo Digital Professional shows only one number.
As print0x000c was also used for 0x000a, new function print0x000a as copy from old print0x000c.

@ghost
Copy link

ghost commented Oct 25, 2023

👇 Click on the image for a new way to code review

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map legend

src/canonmn_int.cpp Fixed Show fixed Hide fixed
src/canonmn_int.cpp Fixed Show fixed Hide fixed
@codecov
Copy link

codecov bot commented Oct 25, 2023

Codecov Report

Attention: Patch coverage is 91.66667% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 63.89%. Comparing base (f551534) to head (ef27287).
Report is 97 commits behind head on main.

❗ Current head ef27287 differs from pull request most recent head 051d00b. Consider uploading reports for the commit 051d00b to get more accurate results

Files Patch % Lines
src/canonmn_int.cpp 91.66% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2806      +/-   ##
==========================================
+ Coverage   63.88%   63.89%   +0.01%     
==========================================
  Files         103      103              
  Lines       22381    22392      +11     
  Branches    10873    10881       +8     
==========================================
+ Hits        14297    14307      +10     
  Misses       5862     5862              
- Partials     2222     2223       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@neheb
Copy link
Collaborator

neheb commented Nov 24, 2023

rebase to main

@norbertwg norbertwg force-pushed the fix-translation-Canon-Serial-Number branch from d05e5cc to ef27287 Compare November 25, 2023 10:09
output now aligned with Canon Photo Digital Professional 4
as print0x000c was also used for 0x000a, new function print0x000a
as copy from old print0x000c
@norbertwg
Copy link
Contributor Author

I did a rebase.

@norbertwg
Copy link
Contributor Author

This pull request is waiting for approving review since 5 months. Are there reasons not to approve this request or was it just lost out of sight?

@kmilos
Copy link
Collaborator

kmilos commented May 15, 2024

Please fix the CodeQL warnings: either check the exifData before dereference, or wrap in a try/catch block.

@kmilos kmilos added the makerNote Anything related to one of the various supported MakerNote formats label May 15, 2024
@kmilos kmilos added this to the v0.28.3 milestone May 15, 2024
@norbertwg
Copy link
Contributor Author

CodeQL warnings are fixed, but "On PRs - Mac Special Builds / macOS - XCode - Release+Sanitizers (pull_request)" fails. From job output I have no idea, what is the reason for that.

@kmilos
Copy link
Collaborator

kmilos commented May 16, 2024

Thanks. That one has been failing for a while, and is not related to your change. I'll take another pass and approve when O get a chance.

Copy link
Collaborator

@kmilos kmilos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

@kmilos kmilos merged commit 9e46ae3 into Exiv2:main May 17, 2024
57 of 58 checks passed
@kmilos
Copy link
Collaborator

kmilos commented May 17, 2024

@mergify backport 0.28.x

@kmilos kmilos removed this from the v0.28.3 milestone May 17, 2024
Copy link
Contributor

mergify bot commented May 17, 2024

backport 0.28.x

✅ Backports have been created

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
makerNote Anything related to one of the various supported MakerNote formats
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants