From 70e2fd6dff3a4257fb2a94442e62ea0b5b5bd8c1 Mon Sep 17 00:00:00 2001 From: Jacopo Mondi Date: Wed, 8 Mar 2023 15:01:22 +0100 Subject: ipa: rkisp1: lsc: Enable/disable LSC algorithm Implement LSC algorithm enable/disable by parsing the "LensShadingEnable" control in queueRequest(). Start with the LSC algorithm enabled by default and disable it on application request. The 'lsc' filed in the context configuration could also be removed but other algorithms inspect it. Do not remove it for now. Signed-off-by: Jacopo Mondi --- src/ipa/rkisp1/ipa_context.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/ipa/rkisp1/ipa_context.h') diff --git a/src/ipa/rkisp1/ipa_context.h b/src/ipa/rkisp1/ipa_context.h index b9b20653..ada99527 100644 --- a/src/ipa/rkisp1/ipa_context.h +++ b/src/ipa/rkisp1/ipa_context.h @@ -98,6 +98,11 @@ struct IPAActiveState { uint8_t denoise; uint8_t sharpness; } filter; + + struct { + bool enable; + bool active; + } lsc; }; struct IPAFrameContext : public FrameContext { -- cgit v1.2.1