@@ -8,6 +8,9 @@ module ipa.ipu3;
import "include/libcamera/ipa/core.mojom";
+/* Maximum number of frame contexts to be held */
+const uint32 kMaxFrameContexts = 16;
+
struct IPAConfigInfo {
libcamera.IPACameraSensorInfo sensorInfo;
libcamera.ControlInfoMap sensorControls;
@@ -8,6 +8,9 @@ module ipa.rkisp1;
import "include/libcamera/ipa/core.mojom";
+/* Maximum number of frame contexts to be held */
+const uint32 kMaxFrameContexts = 16;
+
struct IPAConfigInfo {
libcamera.IPACameraSensorInfo sensorInfo;
libcamera.ControlInfoMap sensorControls;
@@ -55,9 +55,6 @@ static constexpr uint32_t kMinCellSizeLog2 = 3;
/* log2 of the maximum grid cell width and height, in pixels */
static constexpr uint32_t kMaxCellSizeLog2 = 6;
-/* Maximum number of frame contexts to be held */
-static constexpr uint32_t kMaxFrameContexts = 16;
-
namespace libcamera {
LOG_DEFINE_CATEGORY(IPAIPU3)
@@ -41,9 +41,6 @@ using namespace std::literals::chrono_literals;
namespace ipa::rkisp1 {
-/* Maximum number of frame contexts to be held */
-static constexpr uint32_t kMaxFrameContexts = 16;
-
class IPARkISP1 : public IPARkISP1Interface, public Module
{
public:
Move kMaxFrameContexts to the mojom interface. This will prepare the pipeline handler class to manage queuing of requests to the IPA. Signed-off-by: Umang Jain <umang.jain@ideasonboard.com> --- include/libcamera/ipa/ipu3.mojom | 3 +++ include/libcamera/ipa/rkisp1.mojom | 3 +++ src/ipa/ipu3/ipu3.cpp | 3 --- src/ipa/rkisp1/rkisp1.cpp | 3 --- 4 files changed, 6 insertions(+), 6 deletions(-)