ipa: rkisp1: Pass IPASettings at init call
When the IPA is initialized, it will need to know the sensor model used in order to properly call CameraSensorHelper for the analogue gain. Modify the init definition in the pipeline handler and in the IPA as well as the mojo interface to pass the IPASettings. Signed-off-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
parent
aad674c544
commit
90da3af347
3 changed files with 7 additions and 4 deletions
|
@ -34,7 +34,7 @@ namespace ipa::rkisp1 {
|
|||
class IPARkISP1 : public IPARkISP1Interface
|
||||
{
|
||||
public:
|
||||
int init(unsigned int hwRevision) override;
|
||||
int init(const IPASettings &settings, unsigned int hwRevision) override;
|
||||
int start() override;
|
||||
void stop() override {}
|
||||
|
||||
|
@ -75,7 +75,8 @@ private:
|
|||
unsigned int hwHistogramWeightGridsSize_;
|
||||
};
|
||||
|
||||
int IPARkISP1::init(unsigned int hwRevision)
|
||||
int IPARkISP1::init([[maybe_unused]] const IPASettings &settings,
|
||||
unsigned int hwRevision)
|
||||
{
|
||||
/* \todo Add support for other revisions */
|
||||
switch (hwRevision) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue