Skip to content

Add crude CR3 support #205

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

Merged
merged 2 commits into from
Sep 8, 2019
Merged

Add crude CR3 support #205

merged 2 commits into from
Sep 8, 2019

Conversation

dmitry-shechtman
Copy link
Contributor

@dmitry-shechtman dmitry-shechtman commented Sep 7, 2019

This is my stab at a minimal CR3 support.

CR3 is based on ISO/IEC 14496-12, which means it is detected as QuickTime. The moov container wraps 4 TIFF IFDs (and other data, which will be ignored).

Edit: Added CRX file type; see below.
Edit 2: Fixed CMT2 directory type.

@dmitry-shechtman
Copy link
Contributor Author

P.S. FileType.Crx added in separate branch.

@dmitry-shechtman
Copy link
Contributor Author

Sorry about the mess.

@drewnoakes
Copy link
Owner

@dmitry-shechtman this looks really great, thanks! Do you have a CRX file you could provide to the image library for benchmarking and regression testing?

@drewnoakes drewnoakes merged commit 3f5859e into drewnoakes:master Sep 8, 2019
@dmitry-shechtman
Copy link
Contributor Author

@drewnoakes Thanks.

I used images and movie from the format description.

To clarify, "crx" is the format (taken from the "major brand" string); the file types are CR3 and CRM.

@drewnoakes
Copy link
Owner

Thanks for the clarification. I haven't looked at this format before, and only briefly reviewed https://github.com/lclevy/canon_cr3 before merging this PR.

The changes on your crx branch look good too. Would you be able to put another PR together? Perhaps include the above clarification in code comments to help others in future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants