summaryrefslogtreecommitdiff
path: root/src/ipa/raspberrypi/controller/black_level_status.h
diff options
context:
space:
mode:
authorDavid Plowman <david.plowman@raspberrypi.com>2021-02-04 09:34:52 +0000
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-02-07 16:01:49 +0200
commita03cd6af11f99f21b58276ad3ab5527a97a4ed88 (patch)
tree6b744463466003f71a0c62/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright (C) 2023, Umang Jain <umang.jain@ideasonboard.com> * * GStreamer single stream capture test */ #include <vector> #include <libcamera/libcamera.h> #include <gst/gst.h> #include "gstreamer_test.h" #include "test.h" using namespace std; class GstreamerDeviceProviderTest : public GstreamerTest, public Test { public: GstreamerDeviceProviderTest() : GstreamerTest() { } protected: int init() override { if
0 files changed, 0 insertions, 0 deletions
pan class="hl opt">{ g_autoptr(GstDeviceProvider) provider = NULL; GList *devices, *l; std::vector<std::string> cameraNames; std::unique_ptr<libcamera::CameraManager> cm; cm = std::make_unique<libcamera::CameraManager>(); cm->start(); for (auto &camera : cm->cameras()) cameraNames.push_back(camera->id()); cm->stop(); cm.reset(); provider = gst_device_provider_factory_get_by_name("libcameraprovider"); devices = gst_device_provider_get_devices(provider); for (l = devices; l != NULL; l = g_list_next(l)) { GstDevice *device = GST_DEVICE(l->data); g_autofree gchar *gst_name; bool matched = false;