[vlc-devel] [PATCH 02/23] libmpeg2: enable NEON optimizations

Rafaël Carré rafael.carre at gmail.com
Sat Oct 3 20:00:11 CEST 2009


Le 03/10/2009 19:52, Rémi Denis-Courmont a écrit :
> ---
>  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;

perhaps add #ifdef MPEG2_ACCEL_ARM_NEON ?

At least until the patch which adds this capability makes it into a
libmpeg2 release

-- 
Rafaël Carré

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20091003/752f9b24/attachment.sig>


More information about the vlc-devel mailing list