Repository navigation
Conversation
wilx
force-pushed
the
fix-canon-5d-lens
branch
from
November 5, 2026 21:56
dba9b89 to
1cd208b
Compare
Use the big-endian lens ID in CameraInfo when the original EOS 5D reports a zero CameraSettings lens ID. Check the model, value type and bounds, and preserve raw metadata and configuration override priority. Add regression coverage for the reported metadata, EXIF byte order, missing and truncated CameraInfo, and unaffected camera and lens cases.
wilx
force-pushed
the
fix-canon-5d-lens
branch
from
November 22, 2026 15:25
1cd208b to
a957695
Compare
Contributor
|
Tick the box to add this pull request to the merge queue (same as
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The original EOS 5D can report
CanonCs.LensType=0and an empty lens model, causing applications to displayUnknown Lens (0).The alternate field’s offset and byte order come from ExifTool’s
CameraInfo5Dtable. This was verified against the reporter’s RAW sample from RawTherapee #7496: CameraInfo bytes10 38at offset0x97give lens ID 4152 in big-endian order.Use that alternate ID for the original EOS 5D when the primary ID is zero and CameraInfo has the expected type and length. Reuse existing lens matching while preserving raw metadata and configuration overrides.
Adds 12 regression tests covering the sample’s metadata arrangement, byte order, missing/truncated CameraInfo, and unaffected camera/lens cases. The full RAW is excluded from Git.
Validation: built with
nice -n 10and-j4; all eight CTest suites pass, including 438 unit tests. The sample now identifies as Canon EF 24-105mm f/3.5-5.6 IS STM through both the CLI andlensName().Prepared with AI assistance.