[FFmpeg-devel] [PATCH] lavfi/scale: add nb_slices debug option

Clément Bœsch u at pkh.me
Fri Dec 18 17:31:32 CET 2015


On Fri, Dec 18, 2015 at 04:33:18PM +0100, Nicolas George wrote:
> L'octidi 28 frimaire, an CCXXIV, Clement Boesch a écrit :
> > +        const int slice_h = FFMAX(1, link->h / scale->nb_slices);
> > +        for (i = 0; i < scale->nb_slices; i++)
> > +            scale_slice(link, out, in, scale->sws, i*slice_h, slice_h, 1, 0);
> 
> What happens if link->h is not a multiple of nb_slices?
> 

That wasn't very rigorous, sorry. New patch attached.

Note: the option is not really documented since it doesn't serve any
purpose aside from debugging slicing, and not from a threading
perspective, but more like a locality, as in CPU cache wise apparently.

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-lavfi-scale-add-nb_slices-debug-option.patch
Type: text/x-diff
Size: 2101 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20151218/06814aa9/attachment.patch>
-------------- 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/20151218/06814aa9/attachment.sig>


More information about the ffmpeg-devel mailing list