summaryrefslogtreecommitdiff
path: root/src/apps/qcam/assets/feathericons/terminal.svg
blob: af459c04e0002c40a43ec754f6a8838f9b123f27 (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-terminal"><polyline points="4 17 10 11 4 5"></polyline><line x1="12" y1="19" x2="20" y2="19"></line></svg>
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) }