ipa: rkisp1: Rename frameContext to activeState
The RkISP1 IPA module creates a single instance of its IPAFrameContext structure, effectively using it more as an active state than a per-frame context. To prepare for the introduction of a real per-frame context, move all the members of the IPAFrameContext structure to a new IPAActiveState structure. The IPAFrameContext becomes effectively unused at runtime, and will be populated back with per-frame data after converting the RkISP1 IPA module to using a frame context queue. The IPAActiveState structure will slowly morph into a different entity as individual algorithm get later ported to the frame context API. While at it, fix a typo in the documentation of the Agc::computeExposure() function that incorrectly refers to the frame context instead of the global context. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Umang Jain <umang.jain@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
parent
80d6657cb4
commit
906373331f
12 changed files with 105 additions and 93 deletions
|
@ -179,7 +179,7 @@ void Dpf::queueRequest(IPAContext &context,
|
|||
[[maybe_unused]] IPAFrameContext &frameContext,
|
||||
const ControlList &controls)
|
||||
{
|
||||
auto &dpf = context.frameContext.dpf;
|
||||
auto &dpf = context.activeState.dpf;
|
||||
|
||||
const auto &denoise = controls.get(controls::draft::NoiseReductionMode);
|
||||
if (denoise) {
|
||||
|
@ -214,9 +214,9 @@ void Dpf::prepare(IPAContext &context, [[maybe_unused]] const uint32_t frame,
|
|||
if (!initialized_)
|
||||
return;
|
||||
|
||||
auto &dpf = context.frameContext.dpf;
|
||||
auto &dpf = context.activeState.dpf;
|
||||
|
||||
if (context.frameContext.frameCount == 0) {
|
||||
if (context.activeState.frameCount == 0) {
|
||||
params->others.dpf_config = config_;
|
||||
params->others.dpf_strength_config = strengthConfig_;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue