summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-04-27 04:47:38 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-04-28 01:54:47 +0300
commit26a4b03ed85e0cc39939028964ae4a8961c05d02 (patch)
treebaea752c62255fe49bf34dffdc7e8924fcdfdb1a /test
parent53d3f4152af5a943d84f60cb8a02d791730c99b1 (diff)
libcamera: ipa_manager: Return an IPAProxy from createIPA()
In order to provide pipeline handlers with IPA-related helpers on top of IPAInterface, return the IPAProxy instance from IPAManager::createIPA(). No change is required in the pipeline handlers as the IPAInterface that was previously returned is implemented by an IPAProxy instance already. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions
an class="hl pps">"camera_mode.h" #include "device_status.h" #include "metadata.hpp" namespace RPiController { class Algorithm; typedef std::unique_ptr<Algorithm> AlgorithmPtr; typedef std::shared_ptr<bcm2835_isp_stats> StatisticsPtr; // The Controller holds a pointer to some global_metadata, which is how // different controllers and control algorithms within them can exchange // information. The Prepare method returns a pointer to metadata for this // specific image, and which should be passed on to the Process method. class Controller { public: Controller(); Controller(char const *json_filename); ~Controller(); Algorithm *CreateAlgorithm(char const *name); void Read(char const *filename); void Initialise(); void SwitchMode(CameraMode const &camera_mode, Metadata *metadata); void Prepare(Metadata *image_metadata); void Process(StatisticsPtr stats, Metadata *image_metadata); Metadata &GetGlobalMetadata(); Algorithm *GetAlgorithm(std::string const &name) const; protected: Metadata global_metadata_; std::vector<AlgorithmPtr> algorithms_; bool switch_mode_called_; }; } // namespace RPiController