summaryrefslogtreecommitdiff
path: root/COPYING.rst
AgeCommit message (Collapse)Author
2020-06-26libcamera: Summarize licensing terms in COPYING.rstLaurent Pinchart
Storing detailed licensing information in SPDX headers and in the DEP5 file gives precise information to handle license compliance, but lacks a high-level overview. Summmarize the licensing terms in a COPYING.rst file to facilitate understanding of the libcamera project licenses, and to clarify that closed-source third-party IPA modules are permitted. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Acked-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Tomasz Figa <tfiga@chromium.org>
30' href='#n30'>30 31 32 33 34 35 36
/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * Copyright (C) 2019, Google Inc.
 *
 * media_device_test.cpp - libcamera media device test base class
 */

#include <iostream>

#include "media_device_test.h"

using namespace libcamera;
using namespace std;

int MediaDeviceTest::init()
{
	enumerator_ = unique_ptr<DeviceEnumerator>(DeviceEnumerator::create());
	if (!enumerator_) {
		cerr << "Failed to create device enumerator" << endl;
		return TestFail;
	}

	if (enumerator_->enumerate()) {
		cerr << "Failed to enumerate media devices" << endl;
		return TestFail;
	}

	DeviceMatch dm("vimc");
	media_ = enumerator_->search(dm);
	if (!media_) {
		cerr << "No VIMC media device found: skip test" << endl;
		return TestSkip;
	}

	return TestPass;
}