The ProxyState is only used by the IPAProxy, so it should remain inside that scope. This helps clarify the usage, and improves the documentation by bringing the (future) ProxyState documentation into the class. Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
49 lines
851 B
C++
49 lines
851 B
C++
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
|
/*
|
|
* Copyright (C) 2019, Google Inc.
|
|
*
|
|
* ipa_proxy.h - Image Processing Algorithm proxy
|
|
*/
|
|
#ifndef __LIBCAMERA_INTERNAL_IPA_PROXY_H__
|
|
#define __LIBCAMERA_INTERNAL_IPA_PROXY_H__
|
|
|
|
#include <memory>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#include <libcamera/ipa/ipa_interface.h>
|
|
|
|
namespace libcamera {
|
|
|
|
class IPAModule;
|
|
|
|
class IPAProxy : public IPAInterface
|
|
{
|
|
public:
|
|
enum ProxyState {
|
|
ProxyStopped,
|
|
ProxyStopping,
|
|
ProxyRunning,
|
|
};
|
|
|
|
IPAProxy(IPAModule *ipam);
|
|
~IPAProxy();
|
|
|
|
bool isValid() const { return valid_; }
|
|
|
|
std::string configurationFile(const std::string &file) const;
|
|
|
|
protected:
|
|
std::string resolvePath(const std::string &file) const;
|
|
|
|
bool valid_;
|
|
ProxyState state_;
|
|
|
|
private:
|
|
IPAModule *ipam_;
|
|
};
|
|
|
|
} /* namespace libcamera */
|
|
|
|
#endif /* __LIBCAMERA_INTERNAL_IPA_PROXY_H__ */
|