Unverified Commit dfe7bd86 authored by Roman Lebedev's avatar Roman Lebedev Committed by Tobias Ellinghaus

_imageio_ldr_magic[]: cr3 magic.

This is literally the entire first box of the ISO Media container.
* 4 bytes of size (0x18, i.e. 24 bytes)
* 4 bytes of box name ("ftyp")
* 4 bytes of major brand ("crx ")
* 4 bytes of some minor version info (1)
* array of supported major brands, in this case:
  * 4 bytes of major brand ("crx ")
  * 4 bytes of major brand ("isom")
The end.

(cherry picked from commit 019f4b08)
parent 226f8c5f
......@@ -393,6 +393,9 @@ static const uint8_t _imageio_ldr_magic[] = {
/* Most CR2 */
0x01, 0x00, 0x0a, 0x49, 0x49, 0x2a, 0x00, 0x10, 0x00, 0x00, 0x00, 0x43, 0x52,
/* CR3 (ISO Media) */
0x01, 0x00, 0x18, 0x00, 0x00, 0x00, 0x18, 'f', 't', 'y', 'p', 'c', 'r', 'x', ' ', 0x00, 0x00, 0x00, 0x01, 'c', 'r', 'x', ' ', 'i', 's', 'o', 'm',
// Older Canon RAW format with TIF Extension (i.e. 1Ds and 1D)
0x01, 0x00, 0x0a, 0x4d, 0x4d, 0x00, 0x2a, 0x00, 0x00, 0x00, 0x10, 0xba, 0xb0,
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment