Skip to content

Commit 549f80a

Browse files
committed
ipa: rpi: Provide the camera helper with the hardware configuration
Add a CamHelper::setHwConfig() helper used by the IPA to set the hardware configuartion in use by the pipeline. This will be needed by the IMX500 camera helper in a future commit to determine if the metadata buffer is strided. Signed-off-by: Naushir Patuck <[email protected]>
1 parent dc7c297 commit 549f80a

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

src/ipa/rpi/cam_helper/cam_helper.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,11 @@ void CamHelper::setCameraMode(const CameraMode &mode)
156156
}
157157
}
158158

159+
void CamHelper::setHwConfig(const Controller::HardwareConfig &hwConfig)
160+
{
161+
hwConfig_ = hwConfig;
162+
}
163+
159164
void CamHelper::getDelays(int &exposureDelay, int &gainDelay,
160165
int &vblankDelay, int &hblankDelay) const
161166
{

src/ipa/rpi/cam_helper/cam_helper.h

+2
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ class CamHelper
7676
CamHelper(std::unique_ptr<MdParser> parser, unsigned int frameIntegrationDiff);
7777
virtual ~CamHelper();
7878
void setCameraMode(const CameraMode &mode);
79+
void setHwConfig(const Controller::HardwareConfig &hwConfig);
7980
virtual void prepare(libcamera::Span<const uint8_t> buffer,
8081
Metadata &metadata);
8182
virtual void process(StatisticsPtr &stats, Metadata &metadata);
@@ -108,6 +109,7 @@ class CamHelper
108109

109110
std::unique_ptr<MdParser> parser_;
110111
CameraMode mode_;
112+
Controller::HardwareConfig hwConfig_;
111113

112114
private:
113115
/*

src/ipa/rpi/common/ipa_base.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ int32_t IpaBase::init(const IPASettings &settings, const InitParams &params, Ini
155155
lensPresent_ = params.lensPresent;
156156

157157
controller_.initialise();
158+
helper_->setHwConfig(controller_.getHardwareConfig());
158159

159160
/* Return the controls handled by the IPA */
160161
ControlInfoMap::Map ctrlMap = ipaControls;

0 commit comments

Comments
 (0)