libcamera/src/ipa/rkisp1/algorithms/algorithm.h
Umang Jain 8b291bce82 ipa: libipa: Add frame context pointer in process()
Currently we have a single structure of IPAFrameContext but
subsequently, we shall have a ring buffer (or similar) container
to keep IPAFrameContext structures for each frame.

It would be a hassle to query out the frame context required for
process() (since they will reside in a ring buffer) by the IPA
for each process. Hence, prepare the process() libipa template to
accept a particular IPAFrameContext early on.

As for this patch, we shall pass in the pointer as nullptr, so
that the changes compile and keep working as-is.

Signed-off-by: Umang Jain <umang.jain@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
2022-05-18 15:27:32 +01:00

28 lines
564 B
C++

/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
* Copyright (C) 2021, Ideas On Board
*
* algorithm.h - RkISP1 control algorithm interface
*/
#pragma once
#include <linux/rkisp1-config.h>
#include <libcamera/ipa/rkisp1_ipa_interface.h>
#include <libipa/algorithm.h>
#include "ipa_context.h"
namespace libcamera {
namespace ipa::rkisp1 {
using Algorithm = libcamera::ipa::Algorithm<IPAContext, IPAFrameContext,
IPACameraSensorInfo, rkisp1_params_cfg,
rkisp1_stat_buffer>;
} /* namespace ipa::rkisp1 */
} /* namespace libcamera */