summaryrefslogtreecommitdiff
path: root/src/qcam/assets/feathericons/bell.svg
blob: bba561c19b2f3dbbbb8182e2c6a6760dbe067cf0 (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-bell"><path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"></path><path d="M13.73 21a2 2 0 0 1-3.46 0"></path></svg>
d='n72' href='#n72'>72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright (C) 2019, Google Inc. * * libcamera V4L2 Subdevice format handling test */ #include <iomanip> #include <iostream> #include <vector> #include "geometry.h" #include "v4l2_subdevice.h" #include "v4l2_subdevice_test.h" using namespace std; using namespace libcamera; /* List image formats on the "Scaler" subdevice of vimc media device. */ class ListFormatsTest : public V4L2SubdeviceTest { protected: int run() override; private: void printFormats(unsigned int pad, unsigned code, std::vector<SizeRange> &formats); }; void ListFormatsTest::printFormats(unsigned int pad, unsigned int code, std::vector<SizeRange> &sizes) { cout << "Enumerate formats on pad " << pad << endl; for (SizeRange &size : sizes) { cout << " mbus code: 0x" << setfill('0') << setw(4) << hex << code << endl; cout << " min width: " << dec << size.minWidth << endl/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright (C) 2020, Google Inc. * * span.cpp - Span tests */ /* * Include first to ensure the header is self-contained, as there's no span.cpp * in libcamera. */ #include <libcamera/base/span.h> #include <array> #include <iostream> #include <vector> #include "test.h" using namespace std; using namespace libcamera; class SpanTest : public Test { protected: int run() { int i[4]{ 1, 2, 3, 4 }; std::array<int, 4> a{ 1, 2, 3, 4 }; const std::array<int, 4> ca{ 1, 2, 3, 4 }; std::vector<int> v{ 1, 2, 3, 4 }; const std::vector<int> cv{ 1, 2, 3, 4 }; /* * Compile-test construction and usage of spans with static * extent. Commented-out tests are expected not to compile, or * to generate undefined behaviour. */ Span<int, 0>{}; /* Span<int, 4>{}; */ Span<int, 4>{ &i[0], 4 }; Span<int, 4>{ &i[0], &i[3] }; Span<int, 4>{ i }; /* Span<float, 4>{ i }; */ /* Span<int, 2>{ i }; */ Span<int, 4>{ a }; Span<const int, 4>{ a }; /* Span<float, 4>{ a }; */ /* Span<int, 2>{ a }; */ Span<const int, 4>{ ca }; /* Span<const int, 2>{ ca }; */ /* Span<const float, 4>{ ca }; */ /* Span<int, 4>{ ca }; */ Span<int, 4>{ v }; Span<const int, 4>{ v }; /* Span<float, 4>{ v }; */ Span<const int, 4>{ v }; /* Span<int, 4>{ v }; */ /* Span<const float, 4>{ v }; */ Span<int, 4> staticSpan{ i }; Span<int, 4>{ staticSpan }; Span<const int, 4>{ staticSpan }; /* Span<const int, 2>{ staticSpan }; */