[FFmpeg-devel] [PATCH] simplify dnxhd threading

Reimar Döffinger Reimar.Doeffinger
Fri Sep 25 18:36:21 CEST 2009

On Fri, Sep 25, 2009 at 06:30:42PM +0200, Reimar D?ffinger wrote:
> attached patch changes dnxhd encoder to create one task per slice
> instead of one per thread.
> Since the overhead of having more tasks (max is 64 or so anyway) is
> minimal, this causes no slowdown, but allows removing of the outer loops
> of several functions and more simplifications (and also gets rid of the
> error of -threads is > than number of slices).
> It also means that e.g. on a system with two very differently loaded
> CPUs and using only two threads, each thread will dynamically process as
> much as it can, instead of one thread being idle while the other one has
> barely started processing.
> I have tested it to not be slower as the original code, but that test
> was probably useless since with the options I used encoding did not get
> any faster using threads...

And maybe I should mention this is a special delivery to Mike, since
obviously my words have failed to get my idea across, I made this patch
in the hope it will :-)

More information about the ffmpeg-devel mailing list