[FFmpeg-devel] [PATCH] avcodec/utvideodec: add SIMD for restore_rgb_planes
Paul B Mahol
onemda at gmail.com
Tue Jun 27 01:02:37 EEST 2017
On 6/26/17, Clement Boesch <u at pkh.me> wrote:
> 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
Yes, changed.
>
>> + mova [src_rq+xq], m0
>> + mova [src_bq+xq], m2
>> + add xq, mmsize
>> + jl .loop
>> +
> [...]
>
> --
> Clement B.
>
More information about the ffmpeg-devel
mailing list