monochrome 2025.1.17__py3-none-macosx_10_9_universal2.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- monochrome/__init__.py +23 -0
- monochrome/__main__.py +6 -0
- monochrome/_version.py +16 -0
- monochrome/data/Monochrome.app/Contents/Info.plist +73 -0
- monochrome/data/Monochrome.app/Contents/MacOS/Monochrome +0 -0
- monochrome/data/Monochrome.app/Contents/Resources/Monochrome.icns +0 -0
- monochrome/data/Monochrome.app/Contents/Resources/npy-logo.icns +0 -0
- monochrome/fbs/Array3DataChunkf.py +90 -0
- monochrome/fbs/Array3DataChunku16.py +90 -0
- monochrome/fbs/Array3DataChunku8.py +90 -0
- monochrome/fbs/Array3Meta.py +271 -0
- monochrome/fbs/Array3MetaFlow.py +121 -0
- monochrome/fbs/ArrayDataType.py +9 -0
- monochrome/fbs/BitRange.py +17 -0
- monochrome/fbs/CloseVideo.py +52 -0
- monochrome/fbs/Color.py +47 -0
- monochrome/fbs/ColorMap.py +15 -0
- monochrome/fbs/Data.py +17 -0
- monochrome/fbs/DictEntry.py +65 -0
- monochrome/fbs/Filepaths.py +70 -0
- monochrome/fbs/OpacityFunction.py +15 -0
- monochrome/fbs/PointsVideo.py +173 -0
- monochrome/fbs/Quit.py +38 -0
- monochrome/fbs/Root.py +68 -0
- monochrome/fbs/VideoExport.py +143 -0
- monochrome/fbs/VideoExportFormat.py +8 -0
- monochrome/fbs/__init__.py +0 -0
- monochrome/ipc.py +624 -0
- monochrome-2025.1.17.dist-info/METADATA +166 -0
- monochrome-2025.1.17.dist-info/RECORD +33 -0
- monochrome-2025.1.17.dist-info/WHEEL +5 -0
- monochrome-2025.1.17.dist-info/entry_points.txt +3 -0
- monochrome-2025.1.17.dist-info/licenses/LICENSE.md +19 -0
monochrome/fbs/Root.py
ADDED
@@ -0,0 +1,68 @@
|
|
1
|
+
# automatically generated by the FlatBuffers compiler, do not modify
|
2
|
+
|
3
|
+
# namespace: fbs
|
4
|
+
|
5
|
+
import flatbuffers
|
6
|
+
from flatbuffers.compat import import_numpy
|
7
|
+
from typing import Any
|
8
|
+
from flatbuffers.table import Table
|
9
|
+
from typing import Optional
|
10
|
+
np = import_numpy()
|
11
|
+
|
12
|
+
class Root(object):
|
13
|
+
__slots__ = ['_tab']
|
14
|
+
|
15
|
+
@classmethod
|
16
|
+
def GetRootAs(cls, buf, offset: int = 0):
|
17
|
+
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
|
18
|
+
x = Root()
|
19
|
+
x.Init(buf, n + offset)
|
20
|
+
return x
|
21
|
+
|
22
|
+
@classmethod
|
23
|
+
def GetRootAsRoot(cls, buf, offset=0):
|
24
|
+
"""This method is deprecated. Please switch to GetRootAs."""
|
25
|
+
return cls.GetRootAs(buf, offset)
|
26
|
+
# Root
|
27
|
+
def Init(self, buf: bytes, pos: int):
|
28
|
+
self._tab = flatbuffers.table.Table(buf, pos)
|
29
|
+
|
30
|
+
# Root
|
31
|
+
def DataType(self):
|
32
|
+
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
|
33
|
+
if o != 0:
|
34
|
+
return self._tab.Get(flatbuffers.number_types.Uint8Flags, o + self._tab.Pos)
|
35
|
+
return 0
|
36
|
+
|
37
|
+
# Root
|
38
|
+
def Data(self) -> Optional[flatbuffers.table.Table]:
|
39
|
+
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6))
|
40
|
+
if o != 0:
|
41
|
+
obj = Table(bytearray(), 0)
|
42
|
+
self._tab.Union(obj, o)
|
43
|
+
return obj
|
44
|
+
return None
|
45
|
+
|
46
|
+
def RootStart(builder: flatbuffers.Builder):
|
47
|
+
builder.StartObject(2)
|
48
|
+
|
49
|
+
def Start(builder: flatbuffers.Builder):
|
50
|
+
RootStart(builder)
|
51
|
+
|
52
|
+
def RootAddDataType(builder: flatbuffers.Builder, dataType: int):
|
53
|
+
builder.PrependUint8Slot(0, dataType, 0)
|
54
|
+
|
55
|
+
def AddDataType(builder: flatbuffers.Builder, dataType: int):
|
56
|
+
RootAddDataType(builder, dataType)
|
57
|
+
|
58
|
+
def RootAddData(builder: flatbuffers.Builder, data: int):
|
59
|
+
builder.PrependUOffsetTRelativeSlot(1, flatbuffers.number_types.UOffsetTFlags.py_type(data), 0)
|
60
|
+
|
61
|
+
def AddData(builder: flatbuffers.Builder, data: int):
|
62
|
+
RootAddData(builder, data)
|
63
|
+
|
64
|
+
def RootEnd(builder: flatbuffers.Builder) -> int:
|
65
|
+
return builder.EndObject()
|
66
|
+
|
67
|
+
def End(builder: flatbuffers.Builder) -> int:
|
68
|
+
return RootEnd(builder)
|
@@ -0,0 +1,143 @@
|
|
1
|
+
# automatically generated by the FlatBuffers compiler, do not modify
|
2
|
+
|
3
|
+
# namespace: fbs
|
4
|
+
|
5
|
+
import flatbuffers
|
6
|
+
from flatbuffers.compat import import_numpy
|
7
|
+
from typing import Any
|
8
|
+
from typing import Optional
|
9
|
+
np = import_numpy()
|
10
|
+
|
11
|
+
class VideoExport(object):
|
12
|
+
__slots__ = ['_tab']
|
13
|
+
|
14
|
+
@classmethod
|
15
|
+
def GetRootAs(cls, buf, offset: int = 0):
|
16
|
+
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
|
17
|
+
x = VideoExport()
|
18
|
+
x.Init(buf, n + offset)
|
19
|
+
return x
|
20
|
+
|
21
|
+
@classmethod
|
22
|
+
def GetRootAsVideoExport(cls, buf, offset=0):
|
23
|
+
"""This method is deprecated. Please switch to GetRootAs."""
|
24
|
+
return cls.GetRootAs(buf, offset)
|
25
|
+
# VideoExport
|
26
|
+
def Init(self, buf: bytes, pos: int):
|
27
|
+
self._tab = flatbuffers.table.Table(buf, pos)
|
28
|
+
|
29
|
+
# VideoExport
|
30
|
+
def Recording(self) -> Optional[str]:
|
31
|
+
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
|
32
|
+
if o != 0:
|
33
|
+
return self._tab.String(o + self._tab.Pos)
|
34
|
+
return None
|
35
|
+
|
36
|
+
# VideoExport
|
37
|
+
def Filepath(self) -> Optional[str]:
|
38
|
+
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6))
|
39
|
+
if o != 0:
|
40
|
+
return self._tab.String(o + self._tab.Pos)
|
41
|
+
return None
|
42
|
+
|
43
|
+
# VideoExport
|
44
|
+
def Description(self) -> Optional[str]:
|
45
|
+
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8))
|
46
|
+
if o != 0:
|
47
|
+
return self._tab.String(o + self._tab.Pos)
|
48
|
+
return None
|
49
|
+
|
50
|
+
# VideoExport
|
51
|
+
def Format(self):
|
52
|
+
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(10))
|
53
|
+
if o != 0:
|
54
|
+
return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos)
|
55
|
+
return 0
|
56
|
+
|
57
|
+
# VideoExport
|
58
|
+
def Fps(self):
|
59
|
+
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(12))
|
60
|
+
if o != 0:
|
61
|
+
return self._tab.Get(flatbuffers.number_types.Float32Flags, o + self._tab.Pos)
|
62
|
+
return 0.0
|
63
|
+
|
64
|
+
# VideoExport
|
65
|
+
def TStart(self):
|
66
|
+
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(14))
|
67
|
+
if o != 0:
|
68
|
+
return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos)
|
69
|
+
return 0
|
70
|
+
|
71
|
+
# VideoExport
|
72
|
+
def TEnd(self):
|
73
|
+
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(16))
|
74
|
+
if o != 0:
|
75
|
+
return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos)
|
76
|
+
return 0
|
77
|
+
|
78
|
+
# VideoExport
|
79
|
+
def CloseAfterCompletion(self):
|
80
|
+
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(18))
|
81
|
+
if o != 0:
|
82
|
+
return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
|
83
|
+
return False
|
84
|
+
|
85
|
+
def VideoExportStart(builder: flatbuffers.Builder):
|
86
|
+
builder.StartObject(8)
|
87
|
+
|
88
|
+
def Start(builder: flatbuffers.Builder):
|
89
|
+
VideoExportStart(builder)
|
90
|
+
|
91
|
+
def VideoExportAddRecording(builder: flatbuffers.Builder, recording: int):
|
92
|
+
builder.PrependUOffsetTRelativeSlot(0, flatbuffers.number_types.UOffsetTFlags.py_type(recording), 0)
|
93
|
+
|
94
|
+
def AddRecording(builder: flatbuffers.Builder, recording: int):
|
95
|
+
VideoExportAddRecording(builder, recording)
|
96
|
+
|
97
|
+
def VideoExportAddFilepath(builder: flatbuffers.Builder, filepath: int):
|
98
|
+
builder.PrependUOffsetTRelativeSlot(1, flatbuffers.number_types.UOffsetTFlags.py_type(filepath), 0)
|
99
|
+
|
100
|
+
def AddFilepath(builder: flatbuffers.Builder, filepath: int):
|
101
|
+
VideoExportAddFilepath(builder, filepath)
|
102
|
+
|
103
|
+
def VideoExportAddDescription(builder: flatbuffers.Builder, description: int):
|
104
|
+
builder.PrependUOffsetTRelativeSlot(2, flatbuffers.number_types.UOffsetTFlags.py_type(description), 0)
|
105
|
+
|
106
|
+
def AddDescription(builder: flatbuffers.Builder, description: int):
|
107
|
+
VideoExportAddDescription(builder, description)
|
108
|
+
|
109
|
+
def VideoExportAddFormat(builder: flatbuffers.Builder, format: int):
|
110
|
+
builder.PrependInt32Slot(3, format, 0)
|
111
|
+
|
112
|
+
def AddFormat(builder: flatbuffers.Builder, format: int):
|
113
|
+
VideoExportAddFormat(builder, format)
|
114
|
+
|
115
|
+
def VideoExportAddFps(builder: flatbuffers.Builder, fps: float):
|
116
|
+
builder.PrependFloat32Slot(4, fps, 0.0)
|
117
|
+
|
118
|
+
def AddFps(builder: flatbuffers.Builder, fps: float):
|
119
|
+
VideoExportAddFps(builder, fps)
|
120
|
+
|
121
|
+
def VideoExportAddTStart(builder: flatbuffers.Builder, tStart: int):
|
122
|
+
builder.PrependInt32Slot(5, tStart, 0)
|
123
|
+
|
124
|
+
def AddTStart(builder: flatbuffers.Builder, tStart: int):
|
125
|
+
VideoExportAddTStart(builder, tStart)
|
126
|
+
|
127
|
+
def VideoExportAddTEnd(builder: flatbuffers.Builder, tEnd: int):
|
128
|
+
builder.PrependInt32Slot(6, tEnd, 0)
|
129
|
+
|
130
|
+
def AddTEnd(builder: flatbuffers.Builder, tEnd: int):
|
131
|
+
VideoExportAddTEnd(builder, tEnd)
|
132
|
+
|
133
|
+
def VideoExportAddCloseAfterCompletion(builder: flatbuffers.Builder, closeAfterCompletion: bool):
|
134
|
+
builder.PrependBoolSlot(7, closeAfterCompletion, 0)
|
135
|
+
|
136
|
+
def AddCloseAfterCompletion(builder: flatbuffers.Builder, closeAfterCompletion: bool):
|
137
|
+
VideoExportAddCloseAfterCompletion(builder, closeAfterCompletion)
|
138
|
+
|
139
|
+
def VideoExportEnd(builder: flatbuffers.Builder) -> int:
|
140
|
+
return builder.EndObject()
|
141
|
+
|
142
|
+
def End(builder: flatbuffers.Builder) -> int:
|
143
|
+
return VideoExportEnd(builder)
|
File without changes
|