Skip to content

Commit 166873c

Browse files
committed
Add note to docs about supported numeric types
1 parent 14838ee commit 166873c

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

docs/tutorials/otio-file-format-specification.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,20 @@ It is strongly recommended that everyone use the OpenTimelineIO library to read
1111
OpenTimelineIO files should have a `.otio` path extension. Please do not use `.json` to name OTIO files.
1212

1313
## Contents
14-
OpenTimelineIO files are serialized as JSON (http://www.json.org)
14+
OpenTimelineIO files are serialized as JSON (http://www.json.org).
15+
16+
### Number Types
17+
18+
Supported numeric types:
19+
20+
- integers: `int64_t` (signed 64 bit integer)
21+
- floating point numbers: `double` (IEEE754 64 bit signed floating point number)
22+
23+
In addition to the basic JSON spec, OTIO allows the following values for doubles:
24+
25+
- `NaN` (not a number)
26+
- `Inf`, `Infinity` (positive infinity)
27+
- `-Inf, -Infinity (negative infinity)
1528

1629
## Structure
1730
An OTIO file is a tree structure of nested OTIO objects. Each OTIO object is stored as a JSON dictionary with member fields,

0 commit comments

Comments
 (0)