dgain: Introduce digital gain

This commit is contained in:
Pavel Machek
2024-08-31 22:06:03 +00:00
parent bbc077f528
commit 7c59259f27
5 changed files with 82 additions and 6 deletions

View File

@@ -128,6 +128,14 @@ update_io_pipeline()
.gain.manual = state.gain.manual,
.gain.manual_req = state.gain.manual_req,
.dgain.control = state.dgain.control,
.dgain.auto_control = state.dgain.auto_control,
.dgain.value = state.dgain.value,
.dgain.value_req = state.dgain.value_req,
.dgain.max = state.dgain.max,
.dgain.manual = state.dgain.manual,
.dgain.manual_req = state.dgain.manual_req,
.exposure.control = state.exposure.control,
.exposure.auto_control = state.exposure.auto_control,
.exposure.value = state.exposure.value,
@@ -186,6 +194,12 @@ update_state(const mp_state_main *new_state)
state.gain.max = new_state->gain.max;
state.gain.manual = new_state->gain.manual;
state.dgain.control = new_state->dgain.control;
state.dgain.auto_control = new_state->dgain.auto_control;
state.dgain.value = new_state->dgain.value;
state.dgain.max = new_state->dgain.max;
state.dgain.manual = new_state->dgain.manual;
state.exposure.control = new_state->exposure.control;
state.exposure.auto_control = new_state->exposure.auto_control;
state.exposure.value = new_state->exposure.value;