The cam and qcam test application share code, currently through a crude hack that references the cam source files directly from the qcam meson.build file. To prepare for the introduction of hosting that code in a static library, move all applications to src/apps/. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
23 lines
390 B
C++
23 lines
390 B
C++
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* Copyright (C) 2021, Collabora Ltd.
|
|
*
|
|
* environment.cpp - Common environment for tests
|
|
*/
|
|
|
|
#include "environment.h"
|
|
|
|
using namespace libcamera;
|
|
|
|
Environment *Environment::get()
|
|
{
|
|
static Environment instance;
|
|
return &instance;
|
|
}
|
|
|
|
void Environment::setup(CameraManager *cm, std::string cameraId)
|
|
{
|
|
cm_ = cm;
|
|
cameraId_ = cameraId;
|
|
}
|