summaryrefslogtreecommitdiff
path: root/src/qcam/assets/feathericons/user-minus.svg
diff options
context:
space:
mode:
authorMarian Cichy <m.cichy@pengutronix.de>2021-03-19 17:03:22 +0100
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-03-20 22:24:09 +0200
commit1a26f79f213f294f16f169d2e3dd9d37517d486d (patch)
treea63abc25b43a48ce2aac663015d053119676d1f9 /src/qcam/assets/feathericons/user-minus.svg
parentaade93f503a313217dcaf117b1ba43be473bfe3f (diff)
pipeline: simple: Update documentation on pipeline setup
After commit 4671911df040 ("pipeline: simple: Use breadth-first search to setup media pipeline"), the explanation in the SimplePipeline documentation how the handler tries to find a valid path to capture device does not reflect the reality anymore. Update the text to the new situation. Fixes: 4671911df040 ("pipeline: simple: Use breadth-first search to setup media pipeline") Signed-off-by: Marian Cichy <m.cichy@pengutronix.de> Reviewed-by: Sebastian Fricke <sebastian.fricke@posteo.net> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/qcam/assets/feathericons/user-minus.svg')
0 files changed, 0 insertions, 0 deletions
s="hl com">/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright (C) 2019, Google Inc. * * libcamera V4L2 Subdevice format handling test */ #include <iostream> #include <limits.h> #include "libcamera/internal/v4l2_subdevice.h" #include "v4l2_subdevice_test.h" using namespace std; using namespace libcamera; /* Test format handling on the "Scaler" subdevice of vimc media device. */ class FormatHandlingTest : public V4L2SubdeviceTest { protected: int run() override; }; int FormatHandlingTest::run() { V4L2SubdeviceFormat format = {}; /* * Get format on a non-existing Scaler pad: expect failure. */ int ret = scaler_->getFormat(2, &format); if (!ret) { cerr << "Getting format on a non existing pad should fail" << endl; return TestFail; } ret = scaler_->getFormat(0, &format); if (ret) { cerr << "Failed to get format" << endl; return TestFail; } /* * Set unrealistic image resolutions and make sure it gets updated. */ format.size = { UINT_MAX, UINT_MAX }; ret = scaler_->setFormat(0, &format); if (ret) { cerr << "Failed to set format: image resolution is wrong, but " << "setFormat() should not fail." << endl; return TestFail; } if (format.size.width == UINT_MAX || format.size.height == UINT_MAX) { cerr << "Failed to update image format" << endl; return TestFail; } format.size = { 0, 0 }; ret = scaler_->setFormat(0, &format); if (ret) { cerr << "Failed to set format: image resolution is wrong, but " << "setFormat() should not fail." << endl; return TestFail; } if (format.size.isNull()) { cerr << "Failed to update image format" << endl; return TestFail; } return TestPass; } TEST_REGISTER(FormatHandlingTest);