[libcamera-devel,v2,10/14] libcamera: ipa: meson: Allow access to internal libcamera headers

Message ID 20190829232653.13214-11-niklas.soderlund@ragnatech.se
State Superseded
Headers show
Series
  • libcamera: ipa: Add basic IPA support
Related show

Commit Message

Niklas Söderlund Aug. 29, 2019, 11:26 p.m. UTC
Allow IPA implementations to use internal libcamera headers so they can
utilize helpers not exposed to applications.

Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
---
 src/ipa/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Laurent Pinchart Sept. 4, 2019, 7:19 p.m. UTC | #1
Hi Niklas,

Thank you for the patch.

On Fri, Aug 30, 2019 at 01:26:49AM +0200, Niklas Söderlund wrote:
> Allow IPA implementations to use internal libcamera headers so they can
> utilize helpers not exposed to applications.
> 
> Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>

For open-source IPAs that are shipped with libcamera this is fine, but
third-party IPAs, open-source or closed-source, won't have access to
internal headers.

For the open-source IPAs this isn't a blocker, but should still be
addressed sooner than later. For the closed-source IPAs, I notice you
include v4l2_controls.h in ipa_interface.h, and that's a problem as it
requires linking against libcamera. I would like to discuss how to solve
this issue. In the meantime,

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

> ---
>  src/ipa/meson.build | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/ipa/meson.build b/src/ipa/meson.build
> index 2b9863bce3eabe80..dca7a9461385b68d 100644
> --- a/src/ipa/meson.build
> +++ b/src/ipa/meson.build
> @@ -9,7 +9,7 @@ foreach t : ipa_dummy_sources
>      ipa = shared_module(t[0],
>                          t[1],
>                          name_prefix : '',
> -                        include_directories : libcamera_includes,
> +                        include_directories : includes,
>                          install : true,
>                          install_dir : ipa_install_dir)
>  endforeach

Patch

diff --git a/src/ipa/meson.build b/src/ipa/meson.build
index 2b9863bce3eabe80..dca7a9461385b68d 100644
--- a/src/ipa/meson.build
+++ b/src/ipa/meson.build
@@ -9,7 +9,7 @@  foreach t : ipa_dummy_sources
     ipa = shared_module(t[0],
                         t[1],
                         name_prefix : '',
-                        include_directories : libcamera_includes,
+                        include_directories : includes,
                         install : true,
                         install_dir : ipa_install_dir)
 endforeach