Skip to content

Commit 59f2760

Browse files
authored
Merge pull request #19 from cytrinox/box_docs
Improve docs for CRAW, CDI1 and IAD1 boxes
2 parents dc85a1f + c6394d1 commit 59f2760

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

readme.md

+9-5
Original file line numberDiff line numberDiff line change
@@ -467,12 +467,14 @@ size = 1620x1080
467467

468468
see also https://sno.phy.queensu.ca/~phil/exiftool/TagNames/QuickTime.html#ImageDesc
469469

470+
CRAW is derived from ISOBMFF SampleEntry box.
471+
470472
| Offset | type | size | content |
471473
| ------ | ----- | ---- | --------------------------------------- |
472474
| 0 | long | 1 | size of this tag. |
473475
| 4 | bytes | 4 | "CRAW" |
474-
| 8 | long? | 1 | 0. VendorId? |
475-
| 12 | long? | 1 | 1 |
476+
| 8 | byte[] | 6 | 0. SampleEntry.reserved |
477+
| 12 | ushort | 1 | 1. SampleEntry.data_reference_index |
476478
| 16 | bytes?| 16? | 0 |
477479
| 32 | short | 1 | width |
478480
| 34 | short | 1 | height |
@@ -537,11 +539,13 @@ Thanks to Alexey Danilchenko for his contributions (bytes 10 to 36):
537539

538540
size = sizeof(IAD1) + 12
539541

542+
CDI1 is a ISOBMFF FullBox, containing other boxes
543+
540544
| Offset | type | size | content |
541545
| ------ | ----- | ---- | --------------------------------------- |
542546
| 0 | long | 1 | size of this tag. 0x3c |
543547
| 4 | char | 4 | "CDI1"|
544-
| 8 | long | 1 | 0 |
548+
| 8 | long | 1 | FullBox Version and flags |
545549

546550
### IAD1 (Image Area Dimensions ?) ###
547551

@@ -581,12 +585,12 @@ Big image
581585
| 22 | short | 1 | sensor bottom border (sensorInfo[8]) |
582586
| 24 | short | 1 | 0 |
583587
| 26 | short | 1 | 0 |
584-
| 28 | short | 1 | sensor left border -13 |
588+
| 28 | short | 1 | sensor left border -13 (black area left?) |
585589
| 30 | short | 1 | sensor height -1 |
586590
| 32 | short | 1 | sensor left border -12 |
587591
| 34 | short | 1 | 0 |
588592
| 36 | short | 1 | sensor width -1 |
589-
| 38 | short | 1 | sensor top border -13 |
593+
| 38 | short | 1 | sensor top border -13 (black area top?) |
590594
| 40 | short | 1 | sensor left border -12 |
591595
| 42 | short | 1 | sensor top border -13 |
592596
| 44 | short | 1 | sensor width -1 |

0 commit comments

Comments
 (0)