10 #include <linux/intel-ipu3.h> 16 #include "algorithm.h" 20 namespace ipa::ipu3::algorithms {
25 typedef struct __attribute__((packed)) y_table_item {
36 ipu3_uapi_params *params)
override;
39 const ipu3_uapi_stats_3a *stats,
45 bool afScan(
IPAContext &context,
int min_step);
47 bool afNeedIgnoreFrame();
48 void afIgnoreFrameReset();
49 double afEstimateVariance(Span<const y_table_item_t> y_items,
bool isY1);
58 double currentVariance_;
60 uint32_t ignoreCounter_;
62 double previousVariance_;
66 bool coarseCompleted_;
Global IPA context data shared between all algorithms.
Definition: ipa_context.h:86
Top-level libcamera namespace.
Definition: backtrace.h:17
int configure(IPAContext &context, const IPAConfigInfo &configInfo) override
Configure the Af given a configInfo.
Definition: af.cpp:119
Miscellaneous utility functions.
An auto-focus algorithm based on IPU3 statistics.
Definition: af.h:22
void process(IPAContext &context, const uint32_t frame, IPAFrameContext &frameContext, const ipu3_uapi_stats_3a *stats, ControlList &metadata) override
Determine the max contrast image and lens position.
Definition: af.cpp:422
void prepare(IPAContext &context, const uint32_t frame, IPAFrameContext &frameContext, ipu3_uapi_params *params) override
Fill the params buffer with ISP processing parameters for a frame.
Definition: af.cpp:184
IPU3-specific FrameContext.
Definition: ipa_context.h:79
Associate a list of ControlId with their values for an object.
Definition: controls.h:410
The base class for all IPA algorithms.
Definition: algorithm.h:22
Data structures related to geometric objects.