libcamera v0.0.0+3240-f2a18172-dirty (2021-12-20T12:33:54+00:00)
Supporting cameras in Linux since 2019
Public Member Functions | List of all members
libcamera::ipa::ipu3::algorithms::ToneMapping Class Reference

A class to handle tone mapping based on gamma. More...

Inheritance diagram for libcamera::ipa::ipu3::algorithms::ToneMapping:
Inheritance graph
[legend]
Collaboration diagram for libcamera::ipa::ipu3::algorithms::ToneMapping:
Collaboration graph
[legend]

Public Member Functions

int configure (IPAContext &context, const IPAConfigInfo &configInfo) override
 Configure the tone mapping given a configInfo. More...
 
void prepare (IPAContext &context, ipu3_uapi_params *params) override
 Fill in the parameter structure, and enable gamma control. More...
 
void process (IPAContext &context, const ipu3_uapi_stats_3a *stats) override
 Calculate the tone mapping look up table. More...
 

Detailed Description

A class to handle tone mapping based on gamma.

This algorithm improves the image dynamic using a look-up table which is generated based on a gamma parameter.

Member Function Documentation

◆ configure()

int libcamera::ipa::ipu3::algorithms::ToneMapping::configure ( IPAContext context,
const IPAConfigInfo &  configInfo 
)
overridevirtual

Configure the tone mapping given a configInfo.

Parameters
[in]contextThe shared IPA context
[in]configInfoThe IPA configuration data
Returns
0

Reimplemented from libcamera::ipa::ipu3::Algorithm.

◆ prepare()

void libcamera::ipa::ipu3::algorithms::ToneMapping::prepare ( IPAContext context,
ipu3_uapi_params *  params 
)
overridevirtual

Fill in the parameter structure, and enable gamma control.

Parameters
contextThe shared IPA context
paramsThe IPU3 parameters

Populate the IPU3 parameter structure with our tone mapping look up table and enable the gamma control module in the processing blocks.

Reimplemented from libcamera::ipa::ipu3::Algorithm.

◆ process()

void libcamera::ipa::ipu3::algorithms::ToneMapping::process ( IPAContext context,
const ipu3_uapi_stats_3a *  stats 
)
overridevirtual

Calculate the tone mapping look up table.

Parameters
contextThe shared IPA context
statsThe IPU3 statistics and ISP results

The tone mapping look up table is generated as an inverse power curve from our gamma setting.

Reimplemented from libcamera::ipa::ipu3::Algorithm.


The documentation for this class was generated from the following files: