/* SPDX-License-Identifier: LGPL-2.1-or-later */ /* * Copyright (C) 2019, Google Inc. * * camera_sensor.h - A camera sensor */ #ifndef __LIBCAMERA_CAMERA_SENSOR_H__ #define __LIBCAMERA_CAMERA_SENSOR_H__ #include #include #include #include #include "log.h" namespace libcamera { class MediaEntity; class V4L2Subdevice; struct V4L2SubdeviceFormat; class CameraSensor : protected Loggable { public: explicit CameraSensor(const MediaEntity *entity); ~CameraSensor(); CameraSensor(const CameraSensor &) = delete; CameraSensor &operator=(const CameraSensor &) = delete; int init(); const MediaEntity *entity() const { return entity_; } const std::vector &mbusCodes() const { return mbusCodes_; } const std::vector &sizes() const { return sizes_; } const Size &resolution() const; V4L2SubdeviceFormat getFormat(const std::vector &mbusCodes, const Size &size) const; int setFormat(V4L2SubdeviceFormat *format); const ControlInfoMap &controls() const; int getControls(ControlList *ctrls); int setControls(ControlList *ctrls); const ControlList &properties() const { return properties_; } protected: std::string logPrefix() const; private: const MediaEntity *entity_; V4L2Subdevice *subdev_; std::vector mbusCodes_; std::vector sizes_; ControlList properties_; }; } /* namespace libcamera */ #endif /* __LIBCAMERA_CAMERA_SENSOR_H__ */ ss='active' href='/libcamera/vivid.git/tree/src/qcam/assets/feathericons/feathericons.qrc?h=v0.0.1&id=431749b399dd689890300b6cbc9b6305801bfd1b'>treecommitdiff
blob: c5302040ea4483c4003f3b9fad0eab6e4b8986f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
<!-- SPDX-License-Identifier: GPL-2.0-or-later -->
<!DOCTYPE RCC><RCC version="1.0">
<qresource>
	<file>aperture.svg</file>
	<file>camera-off.svg</file>
	<file>play-circle.svg</file>
	<file>save.svg</file>
	<file>stop-circle.svg</file>
	<file>x-circle.svg</file>
</qresource>
</RCC>