openh264/codec
Martin Storsjö ef7e05d47d Use the __ARM_NEON__ built-in compiler define for identifying neon capability on iOS
This avoids having to hardcode the names of devices that don't
support neon.

The devices that don't support neon don't run the armv7 variants
of iOS binaries at all - they would need to be built for the armv6
architecture. (Building for armv6 isn't supported at all in
modern iOS SDKs.)

Therefore we can simply use the __ARM_NEON__ built-in compiler
define to check if NEON code is allowed in the current build,
and have the WelsCPUFeatureDetect function return flags accordingly.

The only thing this disallows is doing an armv6 build which would
optionally enable neon code at runtime if run on an armv7 capable
device, but since Apple allows you to build the same binary for
armv7 separately in the same app bundle, and since armv6 building
isn't even possible in the current iOS SDKs, this isn't really a loss.

This is in contrast to the android builds where the armv7 baseline
does not include NEON.
2014-03-05 09:47:05 +02:00
..
api/svc add timestamp in encoder interface 2014-03-03 17:05:06 +08:00
build Merge pull request #387 from zhilwang/arm-asm 2014-03-04 11:08:17 +08:00
common Use the __ARM_NEON__ built-in compiler define for identifying neon capability on iOS 2014-03-05 09:47:05 +02:00
console Merge pull request #358 from volvet/add_ios_encDemo 2014-02-27 10:52:14 -08:00
decoder Merge pull request #401 from mstorsjo/android-arm-assembly 2014-03-04 09:50:07 -08:00
encoder Merge pull request #405 from mstorsjo/simplify-threads 2014-03-05 12:31:15 +08:00
processing Unify the interface for the different variants of WelsCPUFeatureDetect 2014-03-04 10:18:30 +02:00