ipa: rkisp1: Introduce IPAContext
Before using any algorithm, we want the IPAContext to be ready for those. Introduce the IPAContext following the existing design from IPA::IPU3. Each algorithm will then introduce the needed fields. Signed-off-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
c2da6aab21
commit
b6fa52fc5b
4 changed files with 99 additions and 1 deletions
|
@ -25,6 +25,7 @@
|
|||
|
||||
#include <libcamera/internal/mapped_framebuffer.h>
|
||||
|
||||
#include "ipa_context.h"
|
||||
#include "libipa/camera_sensor_helper.h"
|
||||
|
||||
namespace libcamera {
|
||||
|
@ -78,6 +79,9 @@ private:
|
|||
|
||||
/* Interface to the Camera Helper */
|
||||
std::unique_ptr<CameraSensorHelper> camHelper_;
|
||||
|
||||
/* Local parameter storage */
|
||||
struct IPAContext context_;
|
||||
};
|
||||
|
||||
int IPARkISP1::init(const IPASettings &settings, unsigned int hwRevision)
|
||||
|
@ -164,6 +168,9 @@ int IPARkISP1::configure([[maybe_unused]] const IPACameraSensorInfo &info,
|
|||
<< "Exposure: " << minExposure_ << "-" << maxExposure_
|
||||
<< " Gain: " << minGain_ << "-" << maxGain_;
|
||||
|
||||
/* Clean context at configuration */
|
||||
context_ = {};
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue