Skip to main content

Crate pixelflow_test_support

Crate pixelflow_test_support 

Source
Expand description

Deterministic test helpers for PixelFlow filters, plugins, and embedders.

Helpers here avoid external media files by constructing frames and graph sources fully in memory.

Structs§

GoldenTolerance
Absolute per-sample tolerance for deterministic golden-frame comparisons.
SyntheticClip
Renderable in-memory synthetic clip plus its executor map.
TraceEvent
One scheduler trace event.
TraceGate
Deterministic gate used to force one frame to finish after another starts.
TracePassthroughFilter
Passthrough filter that records dependency requests and commit ordering.
TraceRecorder
Thread-safe recorder for scheduler trace events.
TraceSource
Source executor that records prepare ordering and tags frame metadata.

Enums§

TraceEventKind
Kind of scheduler event recorded by trace executors.

Constants§

EXACT_GOLDEN_TOLERANCE
Exact comparison tolerance for structural filters such as crop and trim.

Functions§

assert_frame_f32_near
Asserts all f32 planes match expected rows within tolerance.
assert_frame_u8_near
Asserts all u8 planes match expected rows within tolerance.
assert_frame_u16_near
Asserts all u16 planes match expected rows within tolerance.
assert_plane_f32_near
Asserts one f32 plane matches expected rows within tolerance.
assert_plane_u8_near
Asserts one u8 plane matches expected rows within tolerance.
assert_plane_u16_near
Asserts one u16 plane matches expected rows within tolerance.
fixed_media
Creates fixed media with deterministic test defaults.
synthetic_clip_from_frames
Builds graph source backed by in-memory frames.
synthetic_f32_frame
Builds one synthetic frame with f32 storage using per-plane coordinates.
synthetic_u8_frame
Builds one synthetic frame with u8 storage using per-plane coordinates.
synthetic_u16_frame
Builds one synthetic frame with u16 storage using per-plane coordinates.