summaryrefslogtreecommitdiff
path: root/src/qcam/assets/feathericons/grid.svg
blob: 8ef2e9d87498aa5b2ca66e4925fcf14955cc1e04 (plain)
1
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-grid"><rect x="3" y="3" width="7" height="7"></rect><rect x="14" y="3" width="7" height="7"></rect><rect x="14" y="14" width="7" height="7"></rect><rect x="3" y="14" width="7" height="7"></rect></svg>
lude "libcamera/internal/yaml_parser.h" #include "camera_mode.h" #include "device_status.h" #include "metadata.h" 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 function returns a pointer to metadata for this * specific image, and which should be passed on to the Process function. */ class Controller { public: Controller(); ~Controller(); int read(char const *filename); void initialise(); void switchMode(CameraMode const &cameraMode, Metadata *metadata); void prepare(Metadata *imageMetadata); void process(StatisticsPtr stats, Metadata *imageMetadata); Metadata &getGlobalMetadata(); Algorithm *getAlgorithm(std::string const &name) const; protected: int createAlgorithm(const std::string &name, const libcamera::YamlObject &params); Metadata globalMetadata_; std::vector<AlgorithmPtr> algorithms_; bool switchModeCalled_; }; } /* namespace RPiController */