Loading...
Searching...
No Matches
lwir_image.h
Go to the documentation of this file.
64 struct sensor_capture capture; /**< Boot id and sequence go to APP14; the whole record becomes the EXIF sensor-capture tag on live frames. */
66 uint64_t arrival_us; /**< Host time the frame arrived, microseconds; arrival is not exposure time. */
68 uint64_t kernel_monotonic_us; /**< Kernel buffer timestamp; recorded but explicitly not a qualified exposure time. */
71 const char *gain; /**< Operator gain label, not a device readback; NULL is recorded as "unknown". */
72 const char *raw_path; /**< Raw companion path; NULL is recorded as "none". Must be NULL for image-only frames. */
74 const struct lwir_measurement *measurement; /**< Optional measurement geometry; written only together with statistics. */
75 const struct lwir_thresholds *thresholds; /**< Optional coverage band; NULL is recorded as disabled. */
76 const struct lwir_temperature_stats *statistics; /**< Optional measurement results; must be NULL for image-only frames. */
77 const struct lwir_device_state *device_state; /**< Optional post-frame device snapshot; dropped for synthetic output, must be NULL for image-only frames. */
79 char frame_sha256[65]; /**< NUL-terminated hex SHA-256 of the frame; readers require 64 lowercase hex digits. */
80 enum lwir_frame_layout layout; /**< LWIR_YUYV_IMAGE selects image-only encoding and validation. */
109bool lwir_encode_jpeg(FILE *output, const uint8_t *frame, size_t bytes, unsigned width, unsigned height,
110 bool synthetic, const struct lwir_evidence *evidence, const struct lwir_render_options *render);
Native frame arithmetic and camera measurements; no codec or flight dependencies.
lwir_frame_layout
Buffer content kinds: full image+thermal frame, or the YUYV image plane alone.
Definition lwir_frame.h:54
bool lwir_write_raw(const char *path, const uint8_t *frame, size_t bytes, unsigned width, unsigned height)
Publish an exact combined frame with the same no-overwrite contract.
Definition lwir_image.c:516
bool lwir_write_jpeg(const char *path, const uint8_t *frame, size_t bytes, unsigned width, unsigned height, bool synthetic)
Publish a sensor-view JPEG with exact native thermal markers.
Definition lwir_image.c:501
bool lwir_write_jpeg_rendered(const char *path, const uint8_t *frame, size_t bytes, unsigned width, unsigned height, bool synthetic, const struct lwir_evidence *evidence, const struct lwir_render_options *render)
Publish a rendered view without altering original temperature samples.
Definition lwir_image.c:522
bool lwir_remove_published(const char *path)
Remove a file previously published by this process and sync its directory.
Definition lwir_image.c:488
bool lwir_write_jpeg_evidence(const char *path, const uint8_t *frame, size_t bytes, unsigned width, unsigned height, bool synthetic, const struct lwir_evidence *evidence)
Publish the sensor view plus borrowed capture provenance.
Definition lwir_image.c:508
const char * lwir_jpeg_provider(void)
Identify the compiled codec provider for diagnostics and benchmark logs.
Definition lwir_image.c:380
bool lwir_encode_jpeg(FILE *output, const uint8_t *frame, size_t bytes, unsigned width, unsigned height, bool synthetic, const struct lwir_evidence *evidence, const struct lwir_render_options *render)
Encode into an existing stream without owning its publication policy.
Definition lwir_image.c:390
Tiny1-C vendor mailbox: bounded device-state snapshots and verified setting controls.
Exact bounded SENSOR02 capture evidence, independent of TIFF byte order.
One post-capture snapshot of all lwir_state_field values.
Definition lwir_state.h:135
Borrowed provenance for one publication; strings must outlive encoding.
Definition lwir_image.h:63
Display policy for one rendering request; never affects stored samples.
Definition lwir_render.h:103
Raw-unit measurement results; derive mean/variance from the sums and pixels.
Definition lwir_frame.h:98
Optional coverage band counted alongside measurement statistics.
Definition lwir_frame.h:89
Definition sensor_capture.h:33