dgain: Introduce digital gain
This commit is contained in:
14
src/main.c
14
src/main.c
@@ -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;
|
||||
|
Reference in New Issue
Block a user