WIP
Signed-off-by: Vasiliy Doylov <nekocwd@mainlining.org>
This commit is contained in:
parent
f87a64ef6b
commit
8fbd5b04e5
5 changed files with 14 additions and 1 deletions
|
@ -147,7 +147,8 @@ void Agc::process(IPAContext &context,
|
|||
ControlList &metadata)
|
||||
{
|
||||
const auto ae_enable = context.activeState.knobs.ae_enabled.value_or(true);
|
||||
|
||||
if (context.activeState.knobs.focus_sweep.value_or(false))
|
||||
return;
|
||||
if (!ae_enable)
|
||||
frameContext.sensor.exposure = (int32_t)( context.activeState.knobs.exposure_value.value_or(0.5) * (context.configuration.agc.exposureMax - context.configuration.agc.exposureMin));
|
||||
utils::Duration exposureTime =
|
||||
|
|
|
@ -51,6 +51,9 @@ void Awb::process(IPAContext &context,
|
|||
const SwIspStats *stats,
|
||||
ControlList &metadata)
|
||||
{
|
||||
if (context.activeState.knobs.focus_sweep.value_or(false))
|
||||
return;
|
||||
|
||||
const SwIspStats::Histogram &histogram = stats->yHistogram;
|
||||
const uint8_t blackLevel = context.activeState.blc.level;
|
||||
|
||||
|
|
|
@ -53,6 +53,9 @@ void BlackLevel::process(IPAContext &context,
|
|||
const SwIspStats *stats,
|
||||
ControlList &metadata)
|
||||
{
|
||||
if (context.activeState.knobs.focus_sweep.value_or(false))
|
||||
return;
|
||||
|
||||
/* Assign each of the R G G B channels as the same black level. */
|
||||
const int32_t blackLevel = context.activeState.blc.level * 256;
|
||||
const int32_t blackLevels[] = {
|
||||
|
|
|
@ -86,6 +86,9 @@ void Ccm::applySaturation(Matrix<float, 3, 3> &ccm, float saturation)
|
|||
void Ccm::prepare(IPAContext &context, const uint32_t frame,
|
||||
IPAFrameContext &frameContext, [[maybe_unused]] DebayerParams *params)
|
||||
{
|
||||
if (context.activeState.knobs.focus_sweep.value_or(false))
|
||||
return;
|
||||
|
||||
auto &saturation = context.activeState.knobs.saturation;
|
||||
|
||||
const unsigned int ct = context.activeState.awb.temperatureK;
|
||||
|
|
|
@ -147,6 +147,9 @@ void Lut::process([[maybe_unused]] IPAContext &context,
|
|||
[[maybe_unused]] const SwIspStats *stats,
|
||||
ControlList &metadata)
|
||||
{
|
||||
if (context.activeState.knobs.focus_sweep.value_or(false))
|
||||
return;
|
||||
|
||||
const auto &contrast = frameContext.contrast;
|
||||
if (contrast)
|
||||
metadata.set(controls::Contrast, contrast.value());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue