[vlc-devel] commit: libmpeg2: enable non-upstream NEON optimizations if available ( Rémi Denis-Courmont )

git version control git at videolan.org
Mon Oct 19 21:51:48 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Sep 17 19:16:48 2009 +0300| [a282f14628d61bdaf328538fbc077e38fbdb858d] | committer: Rémi Denis-Courmont 

libmpeg2: enable non-upstream NEON optimizations if available

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a282f14628d61bdaf328538fbc077e38fbdb858d
---

 modules/codec/libmpeg2.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/modules/codec/libmpeg2.c b/modules/codec/libmpeg2.c
index 39bde8d..e0dcd84 100644
--- a/modules/codec/libmpeg2.c
+++ b/modules/codec/libmpeg2.c
@@ -216,6 +216,11 @@ static int OpenDecoder( vlc_object_t *p_this )
 #elif defined(__arm__)
     i_accel |= MPEG2_ACCEL_ARM;
 
+# ifdef MPEG2_ACCEL_ARM_NEON
+    if( vlc_CPU() & CPU_CAPABILITY_NEON )
+	i_accel |= MPEG2_ACCEL_ARM_NEON;
+# endif
+
 #else
     /* If we do not know this CPU, trust libmpeg2's feature detection */
     i_accel = MPEG2_ACCEL_DETECT;




More information about the vlc-devel mailing list