OptrisOptrisDocumentation

Documentation/OTC SDK/optris_sdk — Rust API referencev12.0

ClipResult

pub struct ClipResult

What Camera::save_clip wrote.

ClipResult — fields

incomplete: bool

The requested window was not fully covered: the history had been pruned past the in point, or the out point is past the newest frame.

Not an error. A clip of what exists is almost always what was wanted, and refusing would lose the footage that is there. But "the clip is short" and "the clip is wrong" want different responses, so it is reported.

path: String

The file written.

from_us: u64

Where the clip actually starts, clamped to what the history still holds.

to_us: u64

Where it actually ends.

frames: u64

Frames of the measurement in it.

file_bytes: u64

The clip file's size on disk.

snapped_by_us: u64

How much earlier than requested the clip starts, because the first frame in range was not a seek anchor.

Zero for an all-intra history, which is the default; that is what ContinuousConfig::all_intra buys. Non-zero means the clip holds extra frames at the front rather than being silently wrong about where it starts.

segment_count: u32

How many segments it was cut from.