[FFmpeg-devel] [PATCH 1/5] avutil: add pixelutils API

Clément Bœsch u at pkh.me
Sat Aug 2 20:43:12 CEST 2014


On Sat, Aug 02, 2014 at 08:30:39PM +0200, Lukasz Marek wrote:
> >+static av_always_inline int sad_wxh(const uint8_t *src1, ptrdiff_t stride1,
> >+                                    const uint8_t *src2, ptrdiff_t stride2,
> >+                                    int w, int h)
> >+{
> >+    int x, y, sum = 0;
> >+
> >+    for (y = 0; y < h; y++) {
> >+        for (x = 0; x < w; x++)
> >+            sum += abs(src1[x] - src2[x]);
> 
> minor: I came out of nowhere to this patch, but maybe FFABS? :)
> 

No difference in generated ASM here

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


More information about the ffmpeg-devel mailing list