summaryrefslogtreecommitdiff
path: root/include/android
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2024-11-18 21:27:56 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2024-11-26 19:05:20 +0200
commitcb3e3095d611462d839d6aec29d8a39cd38abf7c (patch)
tree64fb39260baf609656a0877261d85d730d8854dd /include/android
parent4251193c3544ec105e75452c52d9c88384335df2 (diff)
ipa: ipu3: awb: Replace Awb::RGB class with ipa::RGB
Now that libipa has a generic RGB class, replaces the local implementation from the IPU3 AWB algorithm. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Milan Zamazal <mzamazal@redhat.com>
Diffstat (limited to 'include/android')
0 files changed, 0 insertions, 0 deletions
="hl ppc">#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 (status_ != TestPass) return status_; return TestPass; } int run() override { 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; g_autoptr(GstElement) element = gst_device_create_element(device, NULL); g_object_get(element, "camera-name", &gst_name, NULL); for (auto name : cameraNames) { if (strcmp(name.c_str(), gst_name) == 0) { matched = true; break; } } if (!matched) return TestFail; } g_list_free_full(devices, (GDestroyNotify)gst_object_unref); return TestPass; } }; TEST_REGISTER(GstreamerDeviceProviderTest)