Age | Commit message (Collapse) | Author |
|
For all tests that don't otherwise require access to the camera manager,
get the event dispatcher from the current thread instead of the camera
manager. This prepares for the removal of CameraManager::instance().
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
|
|
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
|
|
The IPA, IPC and Stream tests are self-contained so they can run in
parallel.
Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Test that the IPC supports sending data and file descriptors over the
IPC med/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (C) 2019, Raspberry Pi Ltd
*
* algorithm.cpp - ISP control algorithms
*/
#include "algorithm.h"
using namespace RPiController;
int Algorithm::read([[maybe_unused]] const libcamera::YamlObject ¶ms)
{
return 0;
}
void Algorithm::initialise()
{
}
void Algorithm]] Metadata *metadata)
{
}
void Algorithm::prepare([[maybe_unused]] Metadata *imageMetadata)
{
}
void Algorithm::process([[maybe_unused]] StatisticsPtr &stats,
[[maybe_unused]] Metadata *imageMetadata)
{
}
/* For registering algorithms with the system: */
namespace {
std::map<std::string, AlgoCreateFunc> &algorithms()
{
static std::map<std::string, AlgoCreateFunc> algorithms;
return algorithms;
}
} /* namespace */
std::map<std::string, AlgoCreateFunc> const &RPiController::getAlgorithms()
{
return algorithms();
}
RegisterAlgorithm::RegisterAlgorithm(char const *name,
AlgoCreateFunc createFunc)
{
algorithms()[std::string(name)] = createFunc;
}
|