pngdsp x86: use unaligned access
authorChristophe Gisquet <christophe.gisquet@gmail.com>
Tue, 2 Dec 2014 13:31:49 +0000 (14:31 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 3 Dec 2014 10:56:22 +0000 (11:56 +0100)
commit9fa056ba75c089b5120366ab7c5ce8cc4c5bd67a
treef05f5ff297ed51c916d5e7fdb16c6805c4ba4ca5
parent242f1152bf906a4a3164a9a8e40bd52723bd5afe
pngdsp x86: use unaligned access

For test images manually generated to contain only up prediction,
timing results:
         8380x3032    255x185
before:   138635       1992
after:    139232       1996

Actually jumping to the proper version depending on the alignment:
8380x3032: 138767

A 0.5% speed improvement for gigantic images is not worth the code
duplication.

Fixes ticket #4148

Signed-off-by: Christophe Gisquet <christophe.gisquet@gmail.com>
Tested-by: Benoit Fouet <benoit.fouet@free.fr>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/pngdsp.h
libavcodec/x86/pngdsp.asm