xref: /OK3568_Linux_fs/buildroot/package/jpeg/Config.in (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1# jpeg-turbo has simd support for some architectures
2config BR2_PACKAGE_JPEG_SIMD_SUPPORT
3	bool
4	default y if BR2_X86_CPU_HAS_MMX
5	default y if BR2_ARM_CPU_HAS_NEON
6	default y if BR2_POWERPC_CPU_HAS_ALTIVEC
7	default y if BR2_aarch64 || BR2_aarch64_be
8
9config BR2_PACKAGE_JPEG
10	bool "jpeg support"
11	help
12	  Select the desired JPEG library provider.
13
14if BR2_PACKAGE_JPEG
15
16choice
17	prompt "jpeg variant"
18	default BR2_PACKAGE_JPEG_TURBO if BR2_PACKAGE_JPEG_SIMD_SUPPORT
19	help
20	  Select the normal libjpeg or libjpeg-turbo.
21
22config BR2_PACKAGE_LIBJPEG
23	bool "jpeg"
24	select BR2_PACKAGE_HAS_JPEG
25	help
26	  The ubiquitous C library for manipulating JPEG images.
27
28	  http://www.ijg.org/
29
30config BR2_PACKAGE_JPEG_TURBO
31	bool "jpeg-turbo"
32	select BR2_PACKAGE_HAS_JPEG
33	help
34	  Libjpeg-turbo is a derivative of libjpeg that uses SIMD
35	  instructions (MMX, SSE2, NEON) to accelerate baseline JPEG
36	  compression and decompression on x86, x86-64, and ARM
37	  systems.
38
39	  http://www.libjpeg-turbo.org
40
41# libjpeg from br2-external trees, if any
42source "$BR2_BASE_DIR/.br2-external.in.jpeg"
43
44endchoice
45
46source "package/jpeg-turbo/Config.in.options"
47
48config BR2_PACKAGE_HAS_JPEG
49	bool
50
51config BR2_PACKAGE_PROVIDES_JPEG
52	string
53	default "libjpeg"    if BR2_PACKAGE_LIBJPEG
54	default "jpeg-turbo" if BR2_PACKAGE_JPEG_TURBO
55
56endif
57