libcamera: include/libcamera/internal/ipa_proxy.h Source File

libcamera v0.5.1 Supporting cameras in Linux since 2019 |

Loading...
Searching...
No Matches
ipa_proxy.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: LGPL-2.1-or-later */
2/*
3 * Copyright (C) 2019, Google Inc.
4 *
5 * Image Processing Algorithm proxy
6 */
7
8#pragma once
9
10#include <string>
11
12#include <libcamera/ipa/ipa_interface.h>
13
14namespace libcamera {
15
16class IPAModule;
17
18 class IPAProxy : public IPAInterface
19{
20public:
21 enum ProxyState {
22 ProxyStopped,
23 ProxyStopping,
24 ProxyRunning,
25 };
26
27 IPAProxy(IPAModule *ipam);
28 ~IPAProxy();
29
30 bool isValid() const { return valid_; }
31
32 std::string configurationFile(const std::string &name,
33 const std::string &fallbackName = std::string()) const;
34
35protected:
36 std::string resolvePath(const std::string &file) const;
37
38 bool valid_;
39 ProxyState state_;
40
41private:
42 IPAModule *ipam_;
43};
44
45} /* namespace libcamera */
libcamera::IPAInterface
C++ Interface for IPA implementation.
Definition ipa_interface.h:18
libcamera::IPAModule
Wrapper around IPA module shared object.
Definition ipa_module.h:24
libcamera::IPAProxy
IPA Proxy.
Definition ipa_proxy.h:19
libcamera::IPAProxy::IPAProxy
IPAProxy(IPAModule *ipam)
Construct an IPAProxy instance.
Definition ipa_proxy.cpp:52
libcamera::IPAProxy::isValid
bool isValid() const
Check if the IPAProxy instance is valid.
Definition ipa_proxy.h:30
libcamera::IPAProxy::configurationFile
std::string configurationFile(const std::string &name, const std::string &fallbackName=std::string()) const
Retrieve the absolute path to an IPA configuration file.
Definition ipa_proxy.cpp:98
libcamera::IPAProxy::resolvePath
std::string resolvePath(const std::string &file) const
Find a valid full path for a proxy worker for a given executable name.
Definition ipa_proxy.cpp:198
libcamera::IPAProxy::state_
ProxyState state_
Current state of the IPAProxy.
Definition ipa_proxy.h:39
libcamera::IPAProxy::ProxyState
ProxyState
Identifies the available operational states of the proxy.
Definition ipa_proxy.h:21
libcamera::IPAProxy::ProxyRunning
@ ProxyRunning
The Proxy is active and asynchronous tasks may be queued.
Definition ipa_proxy.h:24
libcamera::IPAProxy::ProxyStopped
@ ProxyStopped
The proxy is not active and only synchronous operations are permitted.
Definition ipa_proxy.h:22
libcamera::IPAProxy::ProxyStopping
@ ProxyStopping
No new tasks can be submitted to the proxy, however existing events can be completed.
Definition ipa_proxy.h:23
libcamera::IPAProxy::valid_
bool valid_
Flag to indicate if the IPAProxy instance is valid.
Definition ipa_proxy.h:38
ipa_interface.h
Image Processing Algorithm interface.
libcamera
Top-level libcamera namespace.
Definition backtrace.h:17