Files
external_libcamera/src/ipa/ipu3/algorithms/tone_mapping.h
T
Jean-Michel Hautbois ec5ceceaf7 ipa: ipu3: tonemapping: Implement configure call
Let the algorithm perform its initial configuration. Implement
configure() to set a default gamma value and let process do the updates
needed.

Signed-off-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
2021-10-26 14:02:43 +02:00

34 lines
788 B
C++

/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
* Copyright (C) 2021, Google inc.
*
* tone_mapping.h - IPU3 ToneMapping and Gamma control
*/
#ifndef __LIBCAMERA_IPU3_ALGORITHMS_TONE_MAPPING_H__
#define __LIBCAMERA_IPU3_ALGORITHMS_TONE_MAPPING_H__
#include "algorithm.h"
namespace libcamera {
namespace ipa::ipu3::algorithms {
class ToneMapping : public Algorithm
{
public:
ToneMapping();
int configure(IPAContext &context, const IPAConfigInfo &configInfo) override;
void prepare(IPAContext &context, ipu3_uapi_params *params) override;
void process(IPAContext &context, const ipu3_uapi_stats_3a *stats) override;
private:
double gamma_;
};
} /* namespace ipa::ipu3::algorithms */
} /* namespace libcamera */
#endif /* __LIBCAMERA_IPU3_ALGORITHMS_TONE_MAPPING_H__ */