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>
This commit is contained in:
Jean-Michel Hautbois 2021-10-22 15:58:26 +02:00
parent acbad32b2e
commit ec5ceceaf7
2 changed files with 17 additions and 0 deletions

View file

@ -19,6 +19,22 @@ ToneMapping::ToneMapping()
{
}
/**
* \brief Configure the tone mapping given a configInfo
* \param[in] context The shared IPA context
* \param[in] configInfo The IPA configuration data
*
* \return 0
*/
int ToneMapping::configure(IPAContext &context,
[[maybe_unused]] const IPAConfigInfo &configInfo)
{
/* Initialise tone mapping gamma value. */
context.frameContext.toneMapping.gamma = 0.0;
return 0;
}
void ToneMapping::prepare([[maybe_unused]] IPAContext &context,
ipu3_uapi_params *params)
{