mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-13 06:24:27 +02:00
configure: add --enable-aligned
forces aligned memory reads (via memcpy) in the VP8 bit reader, useful for platforms that don't support unaligned loads. Change-Id: Ifa44a9a1677fbdc6a929520f9340b7e3fcbd6692
This commit is contained in:
13
configure.ac
13
configure.ac
@ -410,6 +410,19 @@ if test "$target_os" = "mingw32" -a "$enable_wic" = "yes"; then
|
||||
fi
|
||||
fi
|
||||
|
||||
dnl === If --enable-aligned is defined, define WEBP_FORCE_ALIGNED
|
||||
|
||||
AC_MSG_CHECKING(if --enable-aligned option is specified)
|
||||
AC_ARG_ENABLE([aligned],
|
||||
AS_HELP_STRING([--enable-aligned],
|
||||
[Force aligned memory operations in non-dsp code
|
||||
(may be slower)]))
|
||||
if test "$enable_aligned" = "yes"; then
|
||||
AC_DEFINE(WEBP_FORCE_ALIGNED, [1],
|
||||
[Define to 1 to force aligned memory operations])
|
||||
fi
|
||||
AC_MSG_RESULT(${enable_aligned-no})
|
||||
|
||||
dnl === If --enable-swap-16bit-csp is defined, add -DWEBP_SWAP_16BIT_CSP
|
||||
|
||||
USE_SWAP_16BIT_CSP=""
|
||||
|
Reference in New Issue
Block a user