-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmagic
More file actions
126 lines (123 loc) · 2.85 KB
/
magic
File metadata and controls
126 lines (123 loc) · 2.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
# vrptools/magic -- magic file for vrptools
#
# part of vrptools -- https://github.com/lindes/vrptools
#
# Copyright 2011 by David Lindes. All rights reserved.
#
# Available under terms in the LICENSE file that should accompany
# this file. Please consider that file to be included herein by
# reference.
0 string CI Vision Research CIN file
# Compression:
>0x4 leshort 0 (grey cine;
>0x4 leshort 1 (JPEG-compressed;
# >0x4 leshort 2 (uninterpolated color;
>0x4 leshort 2 (RAW;
# Version:
>0x6 leshort !1 v%d -- unrecognized version)
>0x6 leshort 1 v%d)
# TotalImageCount:
>>0xb ulelong x (recorded %d images starting at
# FirstMovieImage:
>>0x8 lelong x %d, saved
# ImageCount:
>>0x14 ulelong x %d from
# FirstImageNo:
>>0x10 lelong x %d)
# OffImageHeader:
>>0x18 ulelong x (OffImageHead: %u)
# OffSetup:
>>0x1c ulelong x (OffSetup: %u)
# OffImageOffsets:
>>0x20 ulelong x
# (OffImageOffs: %u)
# TriggerTime:
>>0x28 lelong x (Triggered at: %d.
# TriggerTime:
>>0x24 ulelong x \b%u)
### from OffImageOffsets:
# biSize:
>>(0x18.l) ulelong x
# biWidth:
>>>&0x0 lelong x (%ux
# biHeight:
>>>&0x4 lelong x \b%u,
# biPlanes:
>>>&0x8 uleshort x
# biBitCount:
>>>&0xa uleshort x %d bit
# biCompression:
>>>&0xc ulelong 0 RGB)
>>>&0xc ulelong !0 \b, unknown type)
# biSizeImage:
>>>&0x10 ulelong x
# biXPelsPerMeter
>>>&0x14 lelong x (sensor resolution: %dx
# biYPelsPerMeter
>>>&0x18 lelong x \b%d pixels per meter)
# biClrUsed:
>>>&0x1b ulelong 0
# (uses max colors)
>>>&0x1b ulelong !0 (%d colors)
# biClrImportant
>>>&0x20 ulelong x (%d maxval)
### from OffSetup
>>(0x1c.l) ulelong x
# FrameRate16 -- obsolete
>>>&0x0 leshort x
# Shutter16 -- obsolete
>>>&0x2 leshort x
# PostTrigger16 -- obsolete
>>>&0x4 leshort x
# FrameDelay16 -- obsolete
>>>&0x6 leshort x
# AspectRatio -- obsolete
>>>&0x8 leshort x
# Contrast16
>>>&0xa leshort x
# Bright16
>>>&0xc leshort x
# Rotate16
>>>&0xe byte x
# TimeAnnotation
>>>&0xf byte x
# TrigCine
>>>&0x10 byte x
# TrigFrame
>>>&0x11 byte 0 (sync internal)
>>>&0x11 byte 1 (sync external)
>>>&0x11 byte 2 (sync locktoirig [sic])
>>>&0x11 byte >2 (unknown sync %d)
# ShutterOn -- not used
>>>&0x12 byte x
# DescriptionOld
# >>>&0x13 string x (DescOld: %s)
# >>>&0x88 string ST (MARK)
# >>>0xe0 string ST (found mark at 0xe0)
# Mark after DescriptionOld
>>>&0x88 string ST
# Length:
>>>&0x8a leshort x
# (length %d)
# Binning: -- obsolete
>>>&0x8c leshort x
# SigOption
>>>&0x8e uleshort 0 (SamplesPerImage)
>>>&0x8e uleshort 1 (Max signal samples)
# BinChannels
>>>&0x90 leshort x (%d SAM channels)
# SamplesPerImage
>>>&0x92 byte 1 (%d sample)
>>>&0x92 byte !1 (%d samples)
# BinName[8][11]
>>>&0x93 string !\0 (Bins: %s,
>>>&0x9e string !\0 %s,
>>>&0xa9 string !\0 %s,
>>>&0xb4 string !\0 %s,
>>>&0xbf string !\0 %s,
>>>&0xca string !\0 %s,
>>>&0xd5 string !\0 %s,
>>>&0xe0 string !\0 %s)
# AnaOption
### Not finished
# >>>&0xeb uleshort