Loading...
Searching...
No Matches
usher_frame_timing.c
Go to the documentation of this file.
114bool usher_frame_document(const struct usher_frame_timing *timing, unsigned width, unsigned height,
Read Linux's boot-unique identifier for pose-log session provenance.
static void usher_boot_id(char result[37])
Fill a 36-character boot UUID or the stable fallback "unknown".
Definition boot_id.h:36
static int record(const union dc_shot_union *shot)
Retrieve a point and admit a new observation only when its credit is free.
Definition dipla_camera_backend.c:206
void exif_document_init(struct exif_document *document)
Start a fresh upright sRGB/Y-Cb-Cr document with EXIF 2.32 defaults.
Definition exifite.c:412
unsigned char * exif_document_reserve(struct exif_document *document, enum exif_directory directory, uint16_t tag, enum exif_format format, uint32_t count)
Create or replace a field with zeroed, bounded value storage.
Definition exifite.c:508
Exact bounded SENSOR02 capture evidence, independent of TIFF byte order.
static bool sensor_capture_encode(const struct sensor_capture *record, unsigned char *data, size_t capacity)
Encode a SENSOR02 record in the fixed on-disk layout.
Definition sensor_capture.h:109
Definition sensor_capture.h:33
Timing evidence for one exposure, with microsecond uncertainty.
Definition usher_frame_timing.h:43
uint64_t sensor_ns
Original sensor timestamp in BOOTTIME nanoseconds; zero if invalid.
Definition usher_frame_timing.h:45
uint64_t monotonic_us
Estimated exposure/readout-window midpoint in MONOTONIC microseconds.
Definition usher_frame_timing.h:46
int64_t exposure_us
Reported exposure duration, retained even when rejected.
Definition usher_frame_timing.h:48
int64_t duration_us
Reported frame duration used as a readout allowance.
Definition usher_frame_timing.h:49
uint64_t time_error_us
Conservative alignment allowance, not calibrated accuracy.
Definition usher_frame_timing.h:47
uint64_t sequence
Camera frame sequence, not a flight-controller shot number.
Definition usher_frame_timing.h:44
static double seconds(Clock::duration duration)
Convert a monotonic interval without truncating fractional seconds.
Definition survey.cpp:100
bool usher_frame_document(const struct usher_frame_timing *timing, unsigned width, unsigned height, struct exif_document *document)
Initialize capture EXIF for the JPEG encoded from this exposure.
Definition usher_frame_timing.c:114
static bool timespec_to_nanoseconds(const struct timespec *value, uint64_t *result)
Convert a validated POSIX clock sample to nanoseconds without overflow.
Definition usher_frame_timing.c:52
struct usher_frame_timing usher_frame_timing_estimate(uint64_t sequence, uint64_t sensor_ns, int64_t exposure_us, int64_t duration_us)
Translate fresh sensor evidence into a cautious pose-alignment time.
Definition usher_frame_timing.c:67
C interface for conservative frame-time estimation and EXIF evidence.