OptrisOptrisDocumentation

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

optris_sdk_clipped_window

Where a clipped video format's window sits on the detector.

The fastest formats are not the whole detector. A PI 640's 640x120 @ 125 Hz reads 120 of its 480 rows, and that strip is a window onto the full readout. It can be moved: there is no reason the interesting part of the scene should be in the middle. Until now the SDK centred it and offered no way to ask where it was, to move it, or to find out how far it could be moved.

Describes the active operation mode. Selecting a different one changes every field; a mode that reads the whole detector reports clipped zero with the rest zero too.

Public attributes

struct_size

uint32_t struct_size

Set to sizeof(optris_sdk_clipped_window).

clipped

int32_t clipped

Non-zero when the active mode is a clipped format at all.

Test this before offering a control. optris_sdk_imager_get_clipped_window() succeeds on every camera, open or not, and reports zero here rather than failing; it is optris_sdk_imager_set_clipped_window() that refuses.

x

int32_t x

Left edge of the window within the full readout, in detector pixels.

y

int32_t y

Top edge, same units.

max_x

int32_t max_x

Largest x this mode accepts: device_width less the frame width. Usually zero -- a fast format drops rows rather than columns, so the window moves vertically only.

max_y

int32_t max_y

Largest y, under the same rule.

device_width

int32_t device_width

Width of the full readout this window sits in. Not the frame width: that is optris_sdk_operation_mode::width, and it is the smaller of the two whenever max_x is non-zero.

device_height

int32_t device_height

Height of the full readout. The frame height is optris_sdk_operation_mode::height.