NEON optimization for mplayer?

This forum is for supported devices using an ARMv7 Allwinner SoC.

NEON optimization for mplayer?

Postby adam900710 » Sun Nov 25, 2012 6:01 am

Hi,

Since the default armv7h repo is not compiled using NEON for some Tegra 2 board,
I used the following makepkg.conf to recompile things:
------
CFLAGS="-march=armv7-a -mcpu=cortex-a8 -mtune=cortex-a8 -mfloat-abi=hard -mfpu=neon -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -ffast-math"
------

I tried to recompile ffmpeg package and tested using mplayer -benchmark -vo null -no sound using an H.264 video,
but no improvement.

What codec does mplayer really use to decode an H.264 video?
Should I recompile all the packages related to mplayer?
adam900710
 
Posts: 44
Joined: Thu Sep 13, 2012 1:27 pm

Re: NEON optimization for mplayer?

Postby WarheadsSE » Sun Nov 25, 2012 6:33 pm

NEON is specific, and the programs have to make use of the instructions. Does mplayer have these optimizations in it's code?
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: NEON optimization for mplayer?

Postby adam900710 » Tue Nov 27, 2012 2:11 pm

Not sure whether mplayer uses NEON,
but much of the players on Android uses just the ffmpeg source code with NEON optimization,
and the performance seems obviously.

After some search, it seems that the source code should be written in a special way,
and why the ffmpeg is not compiled with --enable-neon flag......................... :oops:
adam900710
 
Posts: 44
Joined: Thu Sep 13, 2012 1:27 pm

Re: NEON optimization for mplayer?

Postby WarheadsSE » Tue Nov 27, 2012 7:47 pm

because not all devices have neon.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm


Return to Allwinner

Who is online

Users browsing this forum: No registered users and 4 guests