libcamera/src/ipa/raspberrypi/controller/rpi/focus.hpp
David Plowman fd2b55cb3f ipa: raspberrypi: Enable focus measure without recompile
Previously, output of the focus measure could not be enabled without
recompiling (because of the RPI_LOGGING_ENABLE macro). This uses the
libcamera logging mechanism instead, so can be enabled/disabled at
runtime.

Signed-off-by: David Plowman <david.plowman@raspberrypi.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2020-07-03 04:24:00 +03:00

28 lines
591 B
C++

/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (C) 2020, Raspberry Pi (Trading) Limited
*
* focus.hpp - focus algorithm
*/
#pragma once
#include "../algorithm.hpp"
#include "../metadata.hpp"
/*
* The "focus" algorithm. All it does it print out a version of the
* focus contrast measure; there is no actual auto-focus mechanism to
* control.
*/
namespace RPi {
class Focus : public Algorithm
{
public:
Focus(Controller *controller);
char const *Name() const override;
void Process(StatisticsPtr &stats, Metadata *image_metadata) override;
};
} /* namespace RPi */