-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathsds.schema.json
More file actions
117 lines (117 loc) · 5.91 KB
/
Copy pathsds.schema.json
File metadata and controls
117 lines (117 loc) · 5.91 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
{
"$schema" : "https://json-schema.org/draft/2020-12/schema",
"type" : "object",
"properties" : {
"sds" : {
"type" : "object",
"properties" : {
"name" : {
"type" : "string",
"description" : "Name of the Synchronous Data Stream (SDS)"
},
"description" : {
"type" : "string",
"description" : "Additional descriptive text (optional)"
},
"frequency" : {
"type" : "number",
"description" : "Capture frequency of the SDS"
},
"tick-frequency" : {
"type" : "number",
"description" : "Tick frequency of the timeslot value (optional); default: 1000 for 1 millisecond interval",
"default" : 1000
},
"content" : {
"type" : "array",
"description" : "List of values captured (see below)",
"items" : {
"type" : "object",
"properties" : {
"value" : {
"type" : "string",
"description" : "Name of the value"
},
"type" : {
"type" : "string",
"description" : "Data type of the value"
},
"offset" : {
"type" : "number",
"description" : "Offset of the value (optional); default: 0",
"default" : 0
},
"scale" : {
"type" : "number",
"description" : "Scale factor of the value (optional); default: 1.0",
"default" : 1.0
},
"unit" : {
"type" : "string",
"description" : "Physical unit of the value (optional); default: no units"
},
"image" : {
"type" : "object",
"description" : "Image stream metadata, applicable when the value represents an image frame",
"properties" : {
"pixel_format" : {
"type" : "string",
"description" : "Pixel format identifier.",
"enum" : [ "RAW8", "RAW10", "RGB565", "RGB888", "NV12", "NV21", "I420", "NV16", "NV61", "YUYV", "UYVY", "YUV422P", "YUV444", "YUV444P" ]
},
"width" : {
"type" : "integer",
"minimum" : 1,
"description" : "Number of pixels per row."
},
"height" : {
"type" : "integer",
"minimum" : 1,
"description" : "Number of rows."
},
"stride_bytes" : {
"type" : "integer",
"minimum" : 1,
"description" : "Bytes per row for single-plane formats."
},
"planes" : {
"type" : "array",
"description" : "Per-plane stride (for multi-plane formats).",
"minItems" : 2,
"maxItems" : 3,
"items" : {
"type" : "object",
"properties" : {
"stride_bytes" : {
"type" : "integer",
"minimum" : 1,
"description" : "Bytes per row for this plane."
}
},
"required" : [ "stride_bytes" ]
}
}
},
"required" : [ "pixel_format", "width", "height" ],
"oneOf" : [ {
"required" : [ "stride_bytes" ],
"not" : {
"required" : [ "planes" ]
}
}, {
"required" : [ "planes" ],
"not" : {
"required" : [ "stride_bytes" ]
}
} ]
}
},
"required" : [ "value", "type" ]
}
}
},
"required" : [ "name", "frequency", "content" ]
}
},
"required" : [ "sds" ]
}