summaryrefslogtreecommitdiff
path: root/src/qcam/assets/feathericons/check-circle.svg
blob: f2f4fd1af930157d026a636c082cd3a40fde4a43 (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-check-circle"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline></svg>
hl ppc">#include <stdint.h> #include <vector> #include <libcamera/base/class.h> #include <libcamera/base/flags.h> #include <libcamera/base/span.h> #include <libcamera/framebuffer.h> class Image { public: enum class MapMode { ReadOnly = 1 << 0, WriteOnly = 1 << 1, ReadWrite = ReadOnly | WriteOnly, }; static std::unique_ptr<Image> fromFrameBuffer(const libcamera::FrameBuffer *buffer, MapMode mode); ~Image(); unsigned int numPlanes() const; libcamera::Span<uint8_t> data(unsigned int plane); libcamera::Span<const uint8_t> data(unsigned int plane) const; private: LIBCAMERA_DISABLE_COPY(Image) Image(); std::vector<libcamera::Span<uint8_t>> maps_; std::vector<libcamera::Span<uint8_t>> planes_; }; namespace libcamera { LIBCAMERA_FLAGS_ENABLE_OPERATORS(Image::MapMode) }