@@ -409,6 +409,7 @@ bool Af::afIsOutOfFocus(IPAContext context)
/**
* \brief Determine the max contrast image and lens position.
* \param[in] context The IPA context.
+ * \param[in] frame The frame context sequence number
* \param[in] frameContext The current frame context
* \param[in] stats The statistics buffer of IPU3.
*
@@ -424,6 +425,7 @@ bool Af::afIsOutOfFocus(IPAContext context)
* [1] Hill Climbing Algorithm, https://en.wikipedia.org/wiki/Hill_climbing
*/
void Af::process(IPAContext &context,
+ [[maybe_unused]] unsigned int frame,
[[maybe_unused]] IPU3FrameContext &frameContext,
const ipu3_uapi_stats_3a *stats)
{
@@ -34,7 +34,8 @@ public:
void prepare(IPAContext &context, unsigned int frame,
IPU3FrameContext &frameContext,
ipu3_uapi_params *params) override;
- void process(IPAContext &context, IPU3FrameContext &frameContext,
+ void process(IPAContext &context, unsigned int frame,
+ IPU3FrameContext &frameContext,
const ipu3_uapi_stats_3a *stats) override;
private:
@@ -317,6 +317,7 @@ double Agc::estimateLuminance(IPAActiveState &activeState,
/**
* \brief Process IPU3 statistics, and run AGC operations
* \param[in] context The shared IPA context
+ * \param[in] frame The current frame sequence number
* \param[in] frameContext The current frame context
* \param[in] stats The IPU3 statistics and ISP results
*
@@ -324,6 +325,7 @@ double Agc::estimateLuminance(IPAActiveState &activeState,
* new exposure and gain for the scene.
*/
void Agc::process(IPAContext &context,
+ [[maybe_unused]] unsigned int frame,
IPU3FrameContext &frameContext,
const ipu3_uapi_stats_3a *stats)
{
@@ -28,7 +28,8 @@ public:
~Agc() = default;
int configure(IPAContext &context, const IPAConfigInfo &configInfo) override;
- void process(IPAContext &context, IPU3FrameContext &frameContext,
+ void process(IPAContext &context, unsigned int frame,
+ IPU3FrameContext &frameContext,
const ipu3_uapi_stats_3a *stats) override;
private:
@@ -388,6 +388,7 @@ void Awb::calculateWBGains(const ipu3_uapi_stats_3a *stats)
* \copydoc libcamera::ipa::Algorithm::process
*/
void Awb::process(IPAContext &context,
+ [[maybe_unused]] unsigned int frame,
[[maybe_unused]] IPU3FrameContext &frameContext,
const ipu3_uapi_stats_3a *stats)
{
@@ -43,7 +43,8 @@ public:
void prepare(IPAContext &context, unsigned int frame,
IPU3FrameContext &frameContext,
ipu3_uapi_params *params) override;
- void process(IPAContext &context, IPU3FrameContext &frameContext,
+ void process(IPAContext &context, unsigned int frame,
+ IPU3FrameContext &frameContext,
const ipu3_uapi_stats_3a *stats) override;
private:
@@ -76,6 +76,7 @@ void ToneMapping::prepare([[maybe_unused]] IPAContext &context,
/**
* \brief Calculate the tone mapping look up table
* \param context The shared IPA context
+ * \param frame The current frame sequence number
* \param frameContext The current frame context
* \param stats The IPU3 statistics and ISP results
*
@@ -83,6 +84,7 @@ void ToneMapping::prepare([[maybe_unused]] IPAContext &context,
* our gamma setting.
*/
void ToneMapping::process(IPAContext &context,
+ [[maybe_unused]] unsigned int frame,
[[maybe_unused]] IPU3FrameContext &frameContext,
[[maybe_unused]] const ipu3_uapi_stats_3a *stats)
{
@@ -21,7 +21,8 @@ public:
int configure(IPAContext &context, const IPAConfigInfo &configInfo) override;
void prepare(IPAContext &context, unsigned int frame,
IPU3FrameContext &frameContext, ipu3_uapi_params *params) override;
- void process(IPAContext &context, IPU3FrameContext &frameContext,
+ void process(IPAContext &context, unsigned int frame,
+ IPU3FrameContext &frameContext,
const ipu3_uapi_stats_3a *stats) override;
private:
@@ -620,7 +620,7 @@ void IPAIPU3::processStatsBuffer(const uint32_t frame,
ControlList ctrls(controls::controls);
for (auto const &algo : algorithms())
- algo->process(context_, frameContext, stats);
+ algo->process(context_, frame, frameContext, stats);
setControls(frame);
@@ -103,6 +103,7 @@ namespace ipa {
* \fn Algorithm::process()
* \brief Process ISP statistics, and run algorithm operations
* \param[in] context The shared IPA context
+ * \param[in] frame The frame context sequence number
* \param[in] frameContext The current frame's context
* \param[in] stats The IPA statistics and ISP results
*
@@ -51,6 +51,7 @@ public:
}
virtual void process([[maybe_unused]] typename Module::Context &context,
+ [[maybe_unused]] unsigned int frame,
[[maybe_unused]] typename Module::FrameContext &frameContext,
[[maybe_unused]] const typename Module::Stats *stats)
{
@@ -281,6 +281,7 @@ double Agc::measureBrightness(const rkisp1_cif_isp_hist_stat *hist) const
* new exposure and gain for the scene.
*/
void Agc::process(IPAContext &context,
+ [[maybe_unused]] unsigned int frame,
[[maybe_unused]] RKISP1FrameContext &frameContext,
const rkisp1_stat_buffer *stats)
{
@@ -29,7 +29,8 @@ public:
void prepare(IPAContext &context, unsigned int frame,
RKISP1FrameContext &frameContext,
rkisp1_params_cfg *params) override;
- void process(IPAContext &context, RKISP1FrameContext &frameContext,
+ void process(IPAContext &context, unsigned int frame,
+ RKISP1FrameContext &frameContext,
const rkisp1_stat_buffer *stats) override;
private:
@@ -123,6 +123,7 @@ void Awb::prepare(IPAContext &context,
* \copydoc libcamera::ipa::Algorithm::process
*/
void Awb::process([[maybe_unused]] IPAContext &context,
+ [[maybe_unused]] unsigned int frame,
[[maybe_unused]] RKISP1FrameContext &frameCtx,
const rkisp1_stat_buffer *stats)
{
@@ -23,7 +23,8 @@ public:
void prepare(IPAContext &context, unsigned int frame,
RKISP1FrameContext &frameContext,
rkisp1_params_cfg *params) override;
- void process(IPAContext &context, RKISP1FrameContext &frameCtx,
+ void process(IPAContext &context, unsigned int frame,
+ RKISP1FrameContext &frameCtx,
const rkisp1_stat_buffer *stats) override;
private:
@@ -334,7 +334,7 @@ void IPARkISP1::processStatsBuffer(const uint32_t frame, const uint32_t bufferId
unsigned int aeState = 0;
for (auto const &algo : algorithms())
- algo->process(context_, frameContext, stats);
+ algo->process(context_, frame, frameContext, stats);
setControls(frame);