[FFmpeg-devel] [PATCH] avcodec/utvideodec: add SIMD for restore_rgb_planes

Clément Bœsch u at pkh.me
Tue Jun 27 00:56:12 EEST 2017


On Mon, Jun 26, 2017 at 11:38:26PM +0200, Paul B Mahol wrote:
[...]
> +    .loop:
> +        mova           m0, [src_rq + xq]
> +        mova           m1, [src_gq + xq]
> +        mova           m2, [src_bq + xq]

> +        paddb          m0, m1
> +        paddb          m2, m1
> +        psubb          m0, [pb_128]
> +        psubb          m2, [pb_128]

would the following work to save one instruction?

        psubb          m1, [pb_128]
        paddb          m0, m1
        paddb          m2, m1

> +        mova  [src_rq+xq], m0
> +        mova  [src_bq+xq], m2
> +        add            xq, mmsize
> +    jl .loop
> +
[...]

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170626/83c73fb4/attachment.sig>


More information about the ffmpeg-devel mailing list