OptrisOptrisDocumentation

Documentation/OTC SDK/OTC SDK — C API referencev12.0

optris_sdk_clip_result

What came out of optris_sdk_imager_save_clip().

Public attributes

struct_size

uint32_t struct_size

Set to sizeof(optris_sdk_clip_result).

incomplete

int32_t incomplete

Non-zero when 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

char path[OPTRIS_SDK_MAX_PATH]

The file written, UTF-8.

from_us

uint64_t from_us

Where the clip actually starts, on the camera clock. Clamped to what the history still holds.

to_us

uint64_t to_us

Where it actually ends.

frames

uint64_t frames

Frames of the measurement in it.

file_bytes

uint64_t file_bytes

The clip file's size on disk.

snapped_by_us

uint64_t snapped_by_us

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 all_intra buys. Non-zero means the clip holds up to eleven extra frames at the front rather than being silently wrong about where it starts.

segment_count

uint32_t segment_count

How many segments it was cut from.

reserved0

uint32_t reserved0

Padding. Zero.