summaryrefslogtreecommitdiff
path: root/src/ipa/raspberrypi/controller/dpc_status.h
diff options
context:
space:
mode:
authorKieran Bingham <kieran.bingham@ideasonboard.com>2022-05-10 16:25:02 +0200
committerKieran Bingham <kieran.bingham@ideasonboard.com>2022-05-10 21:15:22 +0200
commit226563607ea888c0af49bf3cdc7b3654d6a50089 (patch)
tree34e9d05cc90314ddfaed0c3f8ab07e0546ac9b57 /src/ipa/raspberrypi/controller/dpc_status.h
parentc39b52c1840545bf89ff048764a4b550db465624 (diff)
py: Fix gen-py-control-enums.py reference
Scripts should be referenced using the meson files() directive to ensure the location is correctly identified with the relevant paths. This prevents compilation failures if the working directory does not match the source tree. Fixes: 6e92cb9dc49e ("py: Generate control enums from yaml") Reviewed-by: Umang Jain <umang.jain@ideasonboard.com> Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src/ipa/raspberrypi/controller/dpc_status.h')
0 files changed, 0 insertions, 0 deletions
"hl pps">"libcamera/internal/formats.h" namespace libcamera { class EventNotifier; class V4L2Device : protected Loggable { public: void close(); bool isOpen() const { return fd_.isValid(); } const ControlInfoMap &controls() const { return controls_; } ControlList getControls(const std::vector<uint32_t> &ids); int setControls(ControlList *ctrls); const struct v4l2_query_ext_ctrl *controlInfo(uint32_t id) const; const std::string &deviceNode() const { return deviceNode_; } std::string devicePath() const; int setFrameStartEnabled(bool enable); Signal<uint32_t> frameStart; void updateControlInfo(); protected: V4L2Device(const std::string &deviceNode); ~V4L2Device(); int open(unsigned int flags); int setFd(UniqueFD fd); int ioctl(unsigned long request, void *argp); int fd() const { return fd_.get(); } template<typename T> static std::optional<ColorSpace> toColorSpace(const T &v4l2Format, PixelFormatInfo::ColourEncoding colourEncoding); template<typename T> static int fromColorSpace(const std::optional<ColorSpace> &colorSpace, T &v4l2Format); private: static ControlType v4l2CtrlType(uint32_t ctrlType); static std::unique_ptr<ControlId> v4l2ControlId(const v4l2_query_ext_ctrl &ctrl); std::optional<ControlInfo> v4l2ControlInfo(const v4l2_query_ext_ctrl &ctrl); std::optional<ControlInfo> v4l2MenuControlInfo(const v4l2_query_ext_ctrl &ctrl); void listControls(); void updateControls(ControlList *ctrls, Span<const v4l2_ext_control> v4l2Ctrls); void eventAvailable(); std::map<unsigned int, struct v4l2_query_ext_ctrl> controlInfo_; std::vector<std::unique_ptr<ControlId>> controlIds_; ControlIdMap controlIdMap_; ControlInfoMap controls_; std::string deviceNode_; UniqueFD fd_; EventNotifier *fdEventNotifier_; bool frameStartEnabled_; }; } /* namespace libcamera */