]> git.sesse.net Git - vlc/commitdiff
libmpeg2: enable non-upstream NEON optimizations if available
authorRémi Denis-Courmont <remi@remlab.net>
Thu, 17 Sep 2009 16:16:48 +0000 (19:16 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Mon, 19 Oct 2009 19:48:20 +0000 (22:48 +0300)
modules/codec/libmpeg2.c

index 39bde8dd09931cec15a5572a6b436c469970c245..e0dcd8428db475822018e9b6aeac73727d74b8b7 100644 (file)
@@ -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;