Config.in 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # jpeg-turbo has simd support for some architectures
  2. config 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 && !BR2_powerpc64le
  7. default y if BR2_POWERPC_CPU_HAS_VSX && BR2_powerpc64le
  8. default y if BR2_aarch64 || BR2_aarch64_be
  9. config BR2_PACKAGE_JPEG
  10. bool "jpeg support"
  11. help
  12. Select the desired JPEG library provider.
  13. if BR2_PACKAGE_JPEG
  14. choice
  15. prompt "jpeg variant"
  16. default BR2_PACKAGE_JPEG_TURBO if BR2_PACKAGE_JPEG_SIMD_SUPPORT
  17. help
  18. Select the normal libjpeg or libjpeg-turbo.
  19. config BR2_PACKAGE_LIBJPEG
  20. bool "jpeg"
  21. select BR2_PACKAGE_HAS_JPEG
  22. help
  23. The ubiquitous C library for manipulating JPEG images.
  24. http://www.ijg.org/
  25. config BR2_PACKAGE_JPEG_TURBO
  26. bool "jpeg-turbo"
  27. select BR2_PACKAGE_HAS_JPEG
  28. help
  29. Libjpeg-turbo is a derivative of libjpeg that uses SIMD
  30. instructions (MMX, SSE2, NEON) to accelerate baseline JPEG
  31. compression and decompression on x86, x86-64, and ARM
  32. systems.
  33. http://www.libjpeg-turbo.org
  34. # libjpeg from br2-external trees, if any
  35. source "$BR2_BASE_DIR/.br2-external.in.jpeg"
  36. endchoice
  37. source "package/jpeg-turbo/Config.in.options"
  38. config BR2_PACKAGE_HAS_JPEG
  39. bool
  40. config BR2_PACKAGE_PROVIDES_JPEG
  41. string
  42. default "libjpeg" if BR2_PACKAGE_LIBJPEG
  43. default "jpeg-turbo" if BR2_PACKAGE_JPEG_TURBO
  44. endif