Monado OpenXR Runtime
|
Automatically compute exposure and gain values from an image stream. More...
Go to the source code of this file.
Enumerations | |
enum | u_aeg_strategy { U_AEG_STRATEGY_TRACKING = 0 , U_AEG_STRATEGY_DYNAMIC_RANGE , U_AEG_STRATEGY_COUNT } |
An auto exposure/gain strategy tunes the algorithm for specific objectives. More... | |
Functions | |
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. More... | |
void | u_autoexpgain_add_vars (struct u_autoexpgain *aeg, void *root, char *prefix) |
Setup UI for the AEG algorithm. More... | |
void | u_autoexpgain_update (struct u_autoexpgain *aeg, struct xrt_frame *xf) |
Update the AEG with a frame. More... | |
float | u_autoexpgain_get_exposure (struct u_autoexpgain *aeg) |
Get currently computed exposure value in usecs. More... | |
float | u_autoexpgain_get_gain (struct u_autoexpgain *aeg) |
Get currently computed gain value in the [0, 255] range. More... | |
void | u_autoexpgain_destroy (struct u_autoexpgain **aeg) |
Destroy AEG object. More... | |
Automatically compute exposure and gain values from an image stream.
enum u_aeg_strategy |
void u_autoexpgain_add_vars | ( | struct u_autoexpgain * | aeg, |
void * | root, | ||
char * | prefix | ||
) |
Setup UI for the AEG algorithm.
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.
strategy | What objective is preferred for the algorithm. |
enabled_from_start | Update exposure/gain from the start. |
frame_delay | About how many frames does it take for exp and gain to settle in. |
References u_autoexpgain::enable, u_autoexpgain::state, and U_TYPED_CALLOC.
void u_autoexpgain_destroy | ( | struct u_autoexpgain ** | aeg | ) |
Destroy AEG object.
float u_autoexpgain_get_exposure | ( | struct u_autoexpgain * | aeg | ) |
Get currently computed exposure value in usecs.
References u_autoexpgain::exposure.
Referenced by update_expgain().
float u_autoexpgain_get_gain | ( | struct u_autoexpgain * | aeg | ) |
Get currently computed gain value in the [0, 255] range.
References u_autoexpgain::gain.
Referenced by update_expgain().
void u_autoexpgain_update | ( | struct u_autoexpgain * | aeg, |
struct xrt_frame * | xf | ||
) |
Update the AEG with a frame.
Referenced by update_expgain().