@@ -42,7 +42,7 @@ public:
IPAProxyFactory(const char *name);
virtual ~IPAProxyFactory() {}
- virtual std::unique_ptr<IPAProxy> create(IPAModule *ipam) = 0;
+ virtual std::unique_ptr<IPAProxy> create(IPAModule *ipam, bool isolate) = 0;
const std::string &name() const { return name_; }
@@ -53,16 +53,16 @@ private:
std::string name_;
};
-#define REGISTER_IPA_PROXY(proxy) \
-class proxy##Factory final : public IPAProxyFactory \
-{ \
-public: \
- proxy##Factory() : IPAProxyFactory(#proxy) {} \
- std::unique_ptr<IPAProxy> create(IPAModule *ipam) \
- { \
- return std::make_unique<proxy>(ipam); \
- } \
-}; \
+#define REGISTER_IPA_PROXY(proxy) \
+class proxy##Factory final : public IPAProxyFactory \
+{ \
+public: \
+ proxy##Factory() : IPAProxyFactory(#proxy) {} \
+ std::unique_ptr<IPAProxy> create(IPAModule *ipam, bool isolate) \
+ { \
+ return std::make_unique<proxy>(ipam, isolate); \
+ } \
+}; \
static proxy##Factory global_##proxy##Factory;
} /* namespace libcamera */
@@ -250,10 +250,12 @@ IPAProxyFactory::IPAProxyFactory(const char *name)
* \fn IPAProxyFactory::create()
* \brief Create an instance of the IPAProxy corresponding to the factory
* \param[in] ipam The IPA module
+ * \param[in] isolate Flag to isolate the IPA module
*
* This virtual function is implemented by the REGISTER_IPA_PROXY() macro.
* It creates a IPAProxy instance that isolates an IPA interface designated
- * by the IPA module \a ipam.
+ * by the IPA module \a ipam. If \a isolate is true, then the IPA module will
+ * be isolated.
*
* \return A pointer to a newly constructed instance of the IPAProxy subclass
* corresponding to the factory