-
Notifications
You must be signed in to change notification settings - Fork 1
/
img.ksy
108 lines (85 loc) · 1.96 KB
/
img.ksy
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
meta:
id: img_gray16
file-extension: img
endian: be
seq:
- id: version_line
type: str
terminator: 0x0d
encoding: ASCII
- id : sep
size : 3
- id: pds_label_line1
type: str
terminator: 0x0d
encoding: ASCII
- id : sep1
size : 3
- id: pds_label_line2
type: str
terminator: 0x0d
encoding: ASCII
- id : sep2
size : 1
- id: record_bytes_id
type: str
terminator: 0x3d
encoding: ASCII
- id: record_bytes_val
type: str
terminator: 0x0d
encoding: ASCII
- id : sep3
size : 1
- id: file_records_id
type: str
terminator: 0x3d
encoding: ASCII
- id: file_records_val
type: str
terminator: 0x0d
encoding: ASCII
- id : sep4
size : 1
- id: label_records_id
type: str
terminator: 0x3d
encoding: ASCII
- id: label_records_val
type: str
terminator: 0x0d
encoding: ASCII
- id : sep5
size : 1
- id : remaining_pds
size: record_bytes_val.to_i * label_records_val.to_i - (version_line.length+3+1 +
pds_label_line1.length+3+1 +
pds_label_line2.length+3+1 +
record_bytes_id.length + record_bytes_val.length +1+1 +
file_records_id.length + file_records_val.length +1+1 +
label_records_id.length + label_records_val.length +1+1) - 1
- id : vicar_label_size_id
type: str
encoding : ASCII
terminator: 0x3d
- id : vicar_label_size_val
type: str
encoding : ASCII
terminator: 0x20
- id : vicar_label
type : str
encoding : ASCII
size : vicar_label_length - (vicar_label_size_id.length+1) - (vicar_label_size_val.length+1)
- id: lines
type: image_line
repeat: eos
instances:
vicar_label_length:
value: vicar_label_size_val.to_i
types:
image_line:
seq:
- id: samples
type: u2
repeat : expr
repeat-expr: 1024