42 lines
1.1 KiB
Python
42 lines
1.1 KiB
Python
"""Virtual-Kinect record/replay harness (plan todo 16).
|
|
|
|
Records frames published to the shared-memory IPC frame contract into a
|
|
deterministic fixture file and replays them back - into the emitter/shim or any
|
|
consumer - on a fake clock, with no wall-clock sleeps. The fixture is byte-exact
|
|
so a replay reproduces the recorded frame sequence bit-for-bit, and a truncated
|
|
or contract-drifted fixture is rejected cleanly.
|
|
"""
|
|
|
|
from .buffer import ContractFrameBuffer, copy_frame
|
|
from .clock import FakeClock
|
|
from .fixture import (
|
|
FORMAT_VERSION,
|
|
MAGIC,
|
|
FixtureError,
|
|
FixtureFormatError,
|
|
FixtureHeader,
|
|
RecordedFrame,
|
|
TruncatedFixtureError,
|
|
read_fixture,
|
|
write_fixture,
|
|
)
|
|
from .harness import Recorder, Replayer, build_synthetic_frame
|
|
|
|
__all__ = [
|
|
"ContractFrameBuffer",
|
|
"copy_frame",
|
|
"FakeClock",
|
|
"FORMAT_VERSION",
|
|
"MAGIC",
|
|
"FixtureError",
|
|
"FixtureFormatError",
|
|
"FixtureHeader",
|
|
"RecordedFrame",
|
|
"TruncatedFixtureError",
|
|
"read_fixture",
|
|
"write_fixture",
|
|
"Recorder",
|
|
"Replayer",
|
|
"build_synthetic_frame",
|
|
]
|