| Message ID | 20251202134544.662446-23-bryan.odonoghue@linaro.org |
|---|---|
| State | Superseded |
| Headers | show |
| Series |
|
| Related | show |
Hi, On 2-Dec-25 2:45 PM, Bryan O'Donoghue wrote: > Change the default softisp Gamma from 0.5 to 1.0/2.2. > > Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> Thanks this indeed is a better default since monitors have a default gamma of 2.2 (and this compensates for that): Reviewed-by: Hans de Goede <johannes.goede@oss.qualcomm.com> Regards, Hans > --- > src/ipa/simple/algorithms/lut.cpp | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/ipa/simple/algorithms/lut.cpp b/src/ipa/simple/algorithms/lut.cpp > index 9aaab54f1..7f223e812 100644 > --- a/src/ipa/simple/algorithms/lut.cpp > +++ b/src/ipa/simple/algorithms/lut.cpp > @@ -35,7 +35,7 @@ int Lut::configure(IPAContext &context, > [[maybe_unused]] const IPAConfigInfo &configInfo) > { > /* Gamma value is fixed */ > - context.configuration.gamma = 0.5; > + context.configuration.gamma = 1.0/2.2; > context.activeState.knobs.contrast = std::optional<double>(); > updateGammaTable(context); >
Bryan O'Donoghue <bryan.odonoghue@linaro.org> writes: > Change the default softisp Gamma from 0.5 to 1.0/2.2. > > Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> Reviewed-by: Milan Zamazal <mzamazal@redhat.com> > --- > src/ipa/simple/algorithms/lut.cpp | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/ipa/simple/algorithms/lut.cpp b/src/ipa/simple/algorithms/lut.cpp > index 9aaab54f1..7f223e812 100644 > --- a/src/ipa/simple/algorithms/lut.cpp > +++ b/src/ipa/simple/algorithms/lut.cpp > @@ -35,7 +35,7 @@ int Lut::configure(IPAContext &context, > [[maybe_unused]] const IPAConfigInfo &configInfo) > { > /* Gamma value is fixed */ > - context.configuration.gamma = 0.5; > + context.configuration.gamma = 1.0/2.2; > context.activeState.knobs.contrast = std::optional<double>(); > updateGammaTable(context);
diff --git a/src/ipa/simple/algorithms/lut.cpp b/src/ipa/simple/algorithms/lut.cpp index 9aaab54f1..7f223e812 100644 --- a/src/ipa/simple/algorithms/lut.cpp +++ b/src/ipa/simple/algorithms/lut.cpp @@ -35,7 +35,7 @@ int Lut::configure(IPAContext &context, [[maybe_unused]] const IPAConfigInfo &configInfo) { /* Gamma value is fixed */ - context.configuration.gamma = 0.5; + context.configuration.gamma = 1.0/2.2; context.activeState.knobs.contrast = std::optional<double>(); updateGammaTable(context);
Change the default softisp Gamma from 0.5 to 1.0/2.2. Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> --- src/ipa/simple/algorithms/lut.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)