summaryrefslogtreecommitdiff
path: root/src/qcam/dng_writer.cpp
AgeCommit message (Expand)Author
2020-10-02qcam: dng_writer: Record camera modelNiklas Söderlund
2020-08-25meson: Remove -Wno-unused-parameterLaurent Pinchart
2020-08-05libcamera: camera: Rename name() to id()Niklas Söderlund
2020-07-25libcamera: qcam: Improve colour information in DNG filesDavid Plowman
2020-06-18qcam: Replace explicit DRM FourCCs with libcamera formatsLaurent Pinchart
2020-06-16qcam: dng_writer: Record creation time in the EXIF directoryNiklas Söderlund
2020-06-15qcam: dng_writer: Add support for IPU3 Bayer formatsNiklas Söderlund
2020-05-04qcam: dng_writer: Write EXIF IFD as custom directoryLaurent Pinchart
2020-05-03qcam: dng_writer: Remove colon from \todoNiklas Söderlund
2020-05-03qcam: dng_writer: Generate thumbnail in RGB formatLaurent Pinchart
2020-05-03qcam: dng_writer: Populate DNG tags from metadataLaurent Pinchart
2020-05-03qcam: dng_writer: Output thumbnailLaurent Pinchart
2020-05-03qcam: dng_writer: Name arguments to packScanline()Laurent Pinchart
2020-05-03qcam: Pass request metadata to DNG writerLaurent Pinchart
2020-05-03qcam: dng_writer: Fix missing field nameNiklas Söderlund
2020-05-02qcam: Add DNGWriterNiklas Söderlund
d">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)