Auto exposure and gain (AEG) adjustment algorithm state.
Definition: u_autoexpgain.c:67
enum u_aeg_strategy strategy
The selected strategy affects various targets of the algorithm.
Definition: u_autoexpgain.c:85
int frame_delay
A camera might take a couple of frames until the new exposure/gain sets in the image.
Definition: u_autoexpgain.c:111
Basic frame data structure - holds a pointer to buffer.
Definition: xrt_frame.h:25
u_aeg_strategy
An auto exposure/gain strategy tunes the algorithm for specific objectives.
Definition: u_autoexpgain.h:21
@ U_AEG_STRATEGY_TRACKING
Lower exposure and gain at the cost of darker images.
Definition: u_autoexpgain.h:22
@ U_AEG_STRATEGY_DYNAMIC_RANGE
Tries to maximize the image information.
Definition: u_autoexpgain.h:23
float u_autoexpgain_get_exposure(struct u_autoexpgain *aeg)
Get currently computed exposure value in usecs.
Definition: u_autoexpgain.c:502
void u_autoexpgain_add_vars(struct u_autoexpgain *aeg, void *root, char *prefix)
Setup UI for the AEG algorithm.
Definition: u_autoexpgain.c:457
float u_autoexpgain_get_gain(struct u_autoexpgain *aeg)
Get currently computed gain value in the [0, 255] range.
Definition: u_autoexpgain.c:508
void u_autoexpgain_destroy(struct u_autoexpgain **aeg)
Destroy AEG object.
Definition: u_autoexpgain.c:514
struct u_autoexpgain * u_autoexpgain_create(enum u_aeg_strategy strategy, bool enabled_from_start, int frame_delay)
Create auto exposure and gain (AEG) algorithm object.
Definition: u_autoexpgain.c:424
void u_autoexpgain_update(struct u_autoexpgain *aeg, struct xrt_frame *xf)
Update the AEG with a frame.
Definition: u_autoexpgain.c:495