[FFmpeg-devel] [PATCH] vsrc_color: port to new drawutils API.
nicolas.george at normalesup.org
Sun Mar 18 09:34:18 CET 2012
Le nonidi 29 ventôse, an CCXX, Stefano Sabatini a écrit :
> Patch looks cool, but I noticed that the single memcpy in
> ff_draw_rectangle() (which was using the pre-filled buffer) was
> replaced by a loop on the width in ff_fill_rectangle(), I wonder if this
> impacts on performance (I remember when I first implemented
> ff_draw_rectangle() it did).
You may notice that the loop on the width is only for the first line of the
rectangle: all the other lines are copied from the first one. Thus, any
difference would only be visible for rectangles with a large width and a
I ran a benchmark for vf_pad, and I did not notice any significant
difference, even for the horizontal border slice.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 198 bytes
Desc: Digital signature
More information about the ffmpeg-devel