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

Michael Niedermayer michael at niedermayer.cc
Wed Nov 22 00:56:22 EET 2017


On Mon, Nov 20, 2017 at 10:07:11PM +0100, Martin Vignali wrote:
> 2017-11-04 19:31 GMT+01:00 Martin Vignali <martin.vignali at gmail.com>:
> 
> >
> >
> > 2017-10-22 0:26 GMT+02:00 Martin Vignali <martin.vignali at gmail.com>:
> >
> >> 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
> >>
> >>
> >>
> >> ping
> >
> > Ping

as huffyuv in ffmpeg  maintainer, my oppinion is that iam happy about all
optimizations that make the code faster. Theres no need to wait for
some approval if you belive your code is correct ...

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The bravest are surely those who have the clearest vision
of what is before them, glory and danger alike, and yet
notwithstanding go out to meet it. -- Thucydides
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20171121/9215dcc6/attachment.sig>


More information about the ffmpeg-devel mailing list