Loading...
Searching...
No Matches
tone_mapping.h
Go to the documentation of this file.
/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
* Copyright (C) 2021, Google inc.
*
* IPU3 ToneMapping and Gamma control
*/
#pragma once
#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, const uint32_t frame,
IPAFrameContext &frameContext, ipu3_uapi_params *params) override;
void process(IPAContext &context, const uint32_t frame,
IPAFrameContext &frameContext,
const ipu3_uapi_stats_3a *stats,
ControlList &metadata) override;
private:
double gamma_;
};
} /* namespace ipa::ipu3::algorithms */
} /* namespace libcamera */
libcamera::ControlList
Associate a list of ControlId with their values for an object.
Definition controls.h:409
libcamera::ipa::ipu3::algorithms::ToneMapping::process
void process(IPAContext &context, const uint32_t frame, IPAFrameContext &frameContext, const ipu3_uapi_stats_3a *stats, ControlList &metadata) override
Calculate the tone mapping look up table.
Definition tone_mapping.cpp:87
libcamera::ipa::ipu3::algorithms::ToneMapping::prepare
void prepare(IPAContext &context, const uint32_t frame, IPAFrameContext &frameContext, ipu3_uapi_params *params) override
Fill in the parameter structure, and enable gamma control.
Definition tone_mapping.cpp:60
libcamera::ipa::ipu3::algorithms::ToneMapping::configure
int configure(IPAContext &context, const IPAConfigInfo &configInfo) override
Configure the tone mapping given a configInfo.
Definition tone_mapping.cpp:41
libcamera
Top-level libcamera namespace.
Definition backtrace.h:17
libcamera::ipa::ipu3::IPAContext
Global IPA context data shared between all algorithms.
Definition ipa_context.h:86
libcamera::ipa::ipu3::IPAFrameContext
IPU3-specific FrameContext.
Definition ipa_context.h:79