libcamera
v0.0.0
Supporting cameras in Linux since 2019
|
Wrap an IPAInterface and expose it as an ipa_context. More...
Public Member Functions | |
IPAInterfaceWrapper (std::unique_ptr< IPAInterface > interface) | |
Construct an IPAInterfaceWrapper wrapping interface. More... | |
Additional Inherited Members | |
![]() | |
const struct ipa_context_ops * | ops |
The IPA context operations. | |
Wrap an IPAInterface and expose it as an ipa_context.
This class implements the ipa_context API based on a provided IPAInterface. It helps IPAs that implement the IPAInterface API to provide the external ipa_context API.
To use the wrapper, an IPA module simple creates a new instance of its IPAInterface implementation, and passes it to the constructor of the IPAInterfaceWrapper. As IPAInterfaceWrapper inherits from ipa_context, the constructed wrapper can then be directly returned from the IPA module's ipaCreate() function.
The wrapper takes ownership of the IPAInterface and will automatically delete it when the wrapper is destroyed.
libcamera::IPAInterfaceWrapper::IPAInterfaceWrapper | ( | std::unique_ptr< IPAInterface > | interface | ) |
Construct an IPAInterfaceWrapper wrapping interface.
[in] | interface | The interface to wrap |