[FFmpeg-devel] libavcodec/huffyuvdsp(enc) : add avx2 version for add(diff)_int16

Martin Vignali martin.vignali at gmail.com
Sun Oct 22 01:26:45 EEST 2017


Hello,

In attach patch to add avx2 version for huffyuv dsp and huffyuvdsp enc
for add_int16 and diff_int16 func

Check asm result for add_int16 (Kaby Lake, os 10.12)
add_int16_128_c: 1607.9
add_int16_128_sse2: 442.7
add_int16_128_avx2: 218.9

Pass fate test for me


0001-checkasm-add-test-for-huffyuvdsp-add_int16 :
add a checkasm test for add_int16
base on lossless_videodsp checkasm test

i add a test with a fix size, to make speed test more easy to compare

0002-libavcodec-huffyuvdsp-enc-move-duplicate-macro-to-a-
huffyuvdsp.asm and huffyuvdspenc.asm use the same INT16_LOOP macro
with arg add for dec and sub for encoder

this patch move this macro in an asm file in order to be share by both dsp
asm

0003-libavcodec-huffyuvdsp-reorganize-add_int16-asm
0005-libavcodec-huffyuvdspenc-reorganize-diff_int16
Code reorganization


0004-libavcodec-huffyuvdsp-add-add_int16-AVX2-func
0006-libavcodec-huffyuvdspenc-add-diff_int16-AVX2-func
AVX2 version for each func


Martin
Jokyo Images
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-checkasm-add-test-for-huffyuvdsp-add_int16.patch
Type: application/octet-stream
Size: 5049 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20171022/e65245be/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-libavcodec-huffyuvdsp-enc-move-duplicate-macro-to-a-.patch
Type: application/octet-stream
Size: 6871 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20171022/e65245be/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-libavcodec-huffyuvdsp-reorganize-add_int16-asm.patch
Type: application/octet-stream
Size: 1500 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20171022/e65245be/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-libavcodec-huffyuvdsp-add-add_int16-AVX2-func.patch
Type: application/octet-stream
Size: 2340 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20171022/e65245be/attachment-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-libavcodec-huffyuvdspenc-reorganize-diff_int16.patch
Type: application/octet-stream
Size: 1604 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20171022/e65245be/attachment-0004.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-libavcodec-huffyuvdspenc-add-diff_int16-AVX2-func.patch
Type: application/octet-stream
Size: 1874 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20171022/e65245be/attachment-0005.obj>


More information about the ffmpeg-devel mailing list