xref: /OK3568_Linux_fs/buildroot/package/libcamera/Config.in (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1config BR2_PACKAGE_LIBCAMERA_ARCH_SUPPORTS
2	bool
3	default y
4	# Invalid packing size of ControlValue struct on m68k
5	depends on !BR2_m68k
6	depends on !BR2_TOOLCHAIN_HAS_BINUTILS_BUG_27597
7
8menuconfig BR2_PACKAGE_LIBCAMERA
9	bool "libcamera"
10	depends on BR2_PACKAGE_LIBCAMERA_ARCH_SUPPORTS
11	depends on BR2_INSTALL_LIBSTDCPP
12	depends on BR2_TOOLCHAIN_HAS_THREADS
13	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_8 # C++17
14	depends on !BR2_STATIC_LIBS # gnutls
15	depends on BR2_USE_WCHAR # gnutls
16	select BR2_PACKAGE_GNUTLS
17	select BR2_PACKAGE_LIBYAML
18	select BR2_PACKAGE_LIBCAMERA_PIPELINE_UVCVIDEO if !BR2_PACKAGE_LIBCAMERA_HAS_PIPELINE
19	help
20	  libcamera provides a software stack to support
21	  complex devices that need heavy hardware image
22	  processing operations.
23
24	  http://www.libcamera.org/
25
26if BR2_PACKAGE_LIBCAMERA
27
28config BR2_PACKAGE_LIBCAMERA_V4L2
29	bool "libcamera v4l2 compatibility layer"
30	default y
31	help
32	  libcamera v4l2 compatibility layer
33
34config BR2_PACKAGE_LIBCAMERA_GST
35	bool "libcamera gstreamer compatibility layer"
36	depends on BR2_PACKAGE_GST1_PLUGINS_BASE
37	select BR2_PACKAGE_LIBGLIB2
38	default y
39	help
40	  libcamera gstreamer compatibility layer
41
42config BR2_PACKAGE_LIBCAMERA_HAS_PIPELINE
43	bool
44
45config BR2_PACKAGE_LIBCAMERA_PIPELINE_IPU3
46	bool "ipu3 pipeline"
47	depends on BR2_i386 || BR2_x86_64
48	select BR2_PACKAGE_LIBCAMERA_HAS_PIPELINE
49	help
50	  Pipeline for Intel IPU3.
51
52config BR2_PACKAGE_LIBCAMERA_PIPELINE_RASPBERRYPI
53	bool "raspberrypi pipeline"
54	depends on BR2_arm || BR2_aarch64
55	depends on BR2_USE_WCHAR # boost (already enforced for gnutls)
56	select BR2_PACKAGE_BOOST
57	select BR2_PACKAGE_LIBCAMERA_HAS_PIPELINE
58	help
59	  Pipeline for Raspberry Pi devices.
60
61config BR2_PACKAGE_LIBCAMERA_PIPELINE_RKISP1
62	bool "rkisp1 pipeline"
63	depends on BR2_arm || BR2_aarch64
64	select BR2_PACKAGE_LIBCAMERA_HAS_PIPELINE
65	help
66	  Pipeline for Rockchip ISP1.
67
68config BR2_PACKAGE_LIBCAMERA_PIPELINE_SIMPLE
69	bool "simple pipeline"
70	select BR2_PACKAGE_LIBCAMERA_HAS_PIPELINE
71	help
72	  Pipeline for simple pipelines.
73
74config BR2_PACKAGE_LIBCAMERA_PIPELINE_UVCVIDEO
75	bool "uvcvideo pipeline"
76	help
77	  Pipeline for uvcvideo devices.
78
79config BR2_PACKAGE_LIBCAMERA_PIPELINE_VIMC
80	bool "vimc pipeline"
81	select BR2_PACKAGE_LIBCAMERA_HAS_PIPELINE
82	help
83	  Pipeline for the vimc device.
84
85config BR2_PACKAGE_LIBCAMERA_PIPELINE_CUSTOM
86	bool "custom pipeline"
87	select BR2_PACKAGE_LIBCAMERA_HAS_PIPELINE
88	default y
89	help
90	  Pipeline for custom device.
91
92if BR2_PACKAGE_LIBCAMERA_PIPELINE_CUSTOM
93
94config BR2_PACKAGE_LIBCAMERA_CUSTOM_DRIVERS
95	string "custom pipeline drivers"
96	default "has:rkisp"
97
98config BR2_PACKAGE_LIBCAMERA_CUSTOM_DEFAULT_ENTITY
99	string "custom pipeline default media entity"
100	default "has:mainpath"
101
102config BR2_PACKAGE_LIBCAMERA_CUSTOM_FORMAT
103	string "custom pipeline pixel format"
104	default "NV12"
105	help
106	  NV12|YUV420|NV16|YUYV|ANY
107
108config BR2_PACKAGE_LIBCAMERA_CUSTOM_BUFFER_COUNT
109	int "custom pipeline buffer count"
110	default 4
111
112endif
113
114config BR2_PACKAGE_LIBCAMERA_COMPLIANCE
115	bool "lc-compliance test application"
116	depends on BR2_USE_WCHAR # gtest
117	depends on BR2_TOOLCHAIN_HAS_THREADS # gtest
118	depends on BR2_INSTALL_LIBSTDCPP # gtest
119	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5 # gtest
120	depends on BR2_USE_MMU # gtest
121	select BR2_PACKAGE_GTEST
122	select BR2_PACKAGE_LIBEVENT
123	help
124	  lc-compliance test application
125
126comment "lc-compliance test application needs a toolchain w/ C++, wchar, threads, gcc >= 5"
127	depends on BR2_USE_MMU
128	depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || \
129		!BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_GCC_AT_LEAST_5
130
131endif # BR2_PACKAGE_LIBCAMERA
132
133comment "libcamera needs a toolchain w/ C++, threads, wchar, dynamic library, gcc >= 8"
134	depends on BR2_PACKAGE_LIBCAMERA_ARCH_SUPPORTS
135	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \
136		!BR2_TOOLCHAIN_GCC_AT_LEAST_8 || BR2_STATIC_LIBS || !BR2_USE_WCHAR
137