From b318101ada9ccd2c8b53b8c7a1436e84fc157e04 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Tue, 3 Sep 2024 01:11:19 +0300 Subject: libcamera: ipa: Drop unneded includes from ipa_interface.h The ipa_interface.h file includes a number of headers that are not directly used. Remove them, and add them to the source files that include ipa_interface.h as required. Signed-off-by: Laurent Pinchart Reviewed-by: Milan Zamazal --- include/libcamera/ipa/ipa_interface.h | 7 ------- src/ipa/ipu3/ipu3.cpp | 2 ++ src/ipa/rkisp1/rkisp1.cpp | 1 + src/ipa/vimc/vimc.cpp | 1 + src/libcamera/pipeline/vimc/vimc.cpp | 3 +++ .../ipc/generators/libcamera_templates/core_ipa_interface.h.tmpl | 4 ++++ .../ipc/generators/libcamera_templates/module_ipa_interface.h.tmpl | 7 +++++++ 7 files changed, 18 insertions(+), 7 deletions(-) diff --git a/include/libcamera/ipa/ipa_interface.h b/include/libcamera/ipa/ipa_interface.h index 2fdc085e..dce9637a 100644 --- a/include/libcamera/ipa/ipa_interface.h +++ b/include/libcamera/ipa/ipa_interface.h @@ -7,13 +7,6 @@ #pragma once -#include -#include - -#include -#include -#include - namespace libcamera { /* diff --git a/src/ipa/ipu3/ipu3.cpp b/src/ipa/ipu3/ipu3.cpp index 6ebf7c1d..10a8c86d 100644 --- a/src/ipa/ipu3/ipu3.cpp +++ b/src/ipa/ipu3/ipu3.cpp @@ -23,7 +23,9 @@ #include #include +#include #include +#include #include #include diff --git a/src/ipa/rkisp1/rkisp1.cpp b/src/ipa/rkisp1/rkisp1.cpp index f164d7c5..78d2c375 100644 --- a/src/ipa/rkisp1/rkisp1.cpp +++ b/src/ipa/rkisp1/rkisp1.cpp @@ -18,6 +18,7 @@ #include #include +#include #include #include diff --git a/src/ipa/vimc/vimc.cpp b/src/ipa/vimc/vimc.cpp index ebd63fa6..5495401f 100644 --- a/src/ipa/vimc/vimc.cpp +++ b/src/ipa/vimc/vimc.cpp @@ -14,6 +14,7 @@ #include #include +#include #include #include diff --git a/src/libcamera/pipeline/vimc/vimc.cpp b/src/libcamera/pipeline/vimc/vimc.cpp index 0ec9928e..325174b9 100644 --- a/src/libcamera/pipeline/vimc/vimc.cpp +++ b/src/libcamera/pipeline/vimc/vimc.cpp @@ -14,6 +14,7 @@ #include #include +#include #include #include @@ -21,6 +22,8 @@ #include #include #include +#include +#include #include #include diff --git a/utils/codegen/ipc/generators/libcamera_templates/core_ipa_interface.h.tmpl b/utils/codegen/ipc/generators/libcamera_templates/core_ipa_interface.h.tmpl index 590135b8..3942e570 100644 --- a/utils/codegen/ipc/generators/libcamera_templates/core_ipa_interface.h.tmpl +++ b/utils/codegen/ipc/generators/libcamera_templates/core_ipa_interface.h.tmpl @@ -18,6 +18,10 @@ {% if has_string %}#include {% endif %} {% if has_array %}#include {% endif %} +#include +#include +#include + #include namespace libcamera { diff --git a/utils/codegen/ipc/generators/libcamera_templates/module_ipa_interface.h.tmpl b/utils/codegen/ipc/generators/libcamera_templates/module_ipa_interface.h.tmpl index 0111d0c4..5d70ea6a 100644 --- a/utils/codegen/ipc/generators/libcamera_templates/module_ipa_interface.h.tmpl +++ b/utils/codegen/ipc/generators/libcamera_templates/module_ipa_interface.h.tmpl @@ -18,6 +18,13 @@ {% if has_string %}#include {% endif %} {% if has_array %}#include {% endif %} +#include +#include + +#include +#include +#include + #include #include -- cgit v1.2.1