libcamera v0.7.2+rpt20260817
Supporting cameras in Linux since 2019
Loading...
Searching...
No Matches
libcamera::ipa::LscAlgorithmBase Class Reference

Base class for LscAlgorithm. More...

Inheritance diagram for libcamera::ipa::LscAlgorithmBase:

Public Member Functions

int init (const ValueNode &tuningData, ControlInfoMap::Map &controls, const LscDescriptor &descriptor)
 
void queueRequest (lsc::ActiveState &state, lsc::FrameContext &context, const ControlList &controls)
 Queue a request to the lsc algorithm.
 
void process (lsc::FrameContext &context, ControlList &metadata)
 Populate the list of lsc metadata.
 

Protected Attributes

std::unique_ptr< LscImplementationimpl_
 The LSC algorithm implementation.
 
bool polynomial_
 Boolean flag for polynomial LSC.
 

Detailed Description

Base class for LscAlgorithm.

Base class for LscAlgorithm for non-templated functions implementation

Member Function Documentation

◆ init()

int libcamera::ipa::LscAlgorithmBase::init ( const ValueNode tuningData,
ControlInfoMap::Map controls,
const LscDescriptor descriptor 
)
Parameters
[in]tuningDataThe tuning data
[in]controlsThe IPA list of supported controls
[in]descriptorThe LSC engine descriptor

Parse tuningData according to the settings specified in descriptor to populate the LSC data and registers LSC controls in controls.

Returns
0 on success, a negative error code otherwise

◆ process()

void libcamera::ipa::LscAlgorithmBase::process ( lsc::FrameContext context,
ControlList metadata 
)

Populate the list of lsc metadata.

Parameters
[in]contextThe lsc frame context
[in]metadataThe list of metadata

Populates the list of metadata with controls handled by the LscAlgorithm class. The only supported metadata is controls::LensShadingCorrectionEnable.

◆ queueRequest()

void libcamera::ipa::LscAlgorithmBase::queueRequest ( lsc::ActiveState state,
lsc::FrameContext context,
const ControlList controls 
)

Queue a request to the lsc algorithm.

Parameters
[in]stateThe lsc active state
[in]contextThe lsc frame context
[in]controlsThe list of controls associated with a Request

Queue a new list of controls to the lsc algorithm. The only supported control is controls::LensShadingCorrectionEnable.

Member Data Documentation

◆ impl_

libcamera::ipa::LscAlgorithmBase::impl_
protected

The LSC algorithm implementation.

There are two classes derived from LscImplementation, the LscTable and LscPolynomial ones. Which one to instantiate is decided by parsing the tuning file.

◆ polynomial_

libcamera::ipa::LscAlgorithmBase::polynomial_
protected

Boolean flag for polynomial LSC.

Set to true if polynomial LSC is in use.


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