[vlc-devel] [PATCH 02/23] libmpeg2: enable NEON optimizations
Rémi Denis-Courmont
remi at remlab.net
Sat Oct 3 19:52:09 CEST 2009
---
modules/codec/libmpeg2.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/modules/codec/libmpeg2.c b/modules/codec/libmpeg2.c
index 39bde8d..ff28dde 100644
--- a/modules/codec/libmpeg2.c
+++ b/modules/codec/libmpeg2.c
@@ -215,6 +215,8 @@ static int OpenDecoder( vlc_object_t *p_this )
#elif defined(__arm__)
i_accel |= MPEG2_ACCEL_ARM;
+ if( vlc_CPU() & CPU_CAPABILITY_NEON )
+ i_accel |= MPEG2_ACCEL_ARM_NEON;
#else
/* If we do not know this CPU, trust libmpeg2's feature detection */
--
1.6.4.3
More information about the vlc-devel
mailing list