[FFmpeg-devel] [PATCH v2 8/9] swscale/arm/yuv2rgb: save a few instructions by processing the luma line interleaved

Clément Bœsch u at pkh.me
Thu Mar 31 11:19:15 CEST 2016


On Thu, Mar 31, 2016 at 11:17:43AM +0200, Benoit Fouet wrote:
[...]
> What about adding a level of macro here? Something like:
> .macro process_1l_internal ofmt src_addr res
>     compute_premult
>     vld2.8            {d14, d15}, [\src_addr]!
>     compute        \res, \ofmt
> .endm
> 
> (again, the naming could be changed, according to your own taste :-) )
> 
> This way, we would get:
> .macro process_1l ofmt
>     process_1l_internal \ofmt, r4, r2
> .endm
> 
> .macro process_2l ofmt
>     process_1l_internal \ofmt, r4,  r2
>     process_1l_internal \ofmt, r12, r11
> .endm
> 

You loose the possibility of doing pairing if you do that

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


More information about the ffmpeg-devel mailing list