[MPlayer-dev-eng] [PATCH] multi-threaded lavc

Michael Niedermayer michaelni at gmx.at
Wed Sep 1 14:01:02 CEST 2004


Hi

On Wednesday 01 September 2004 11:59, Torinthiel wrote:
> On Tue, Aug 31, 2004 at 11:02:31PM +0200, Michael Niedermayer wrote:
> > > michael, imo it should be possible to make a mode where the threaded
> > > motion est behaves just like the non-threaded. just delay subsequent
> > > rows so that when row N is on mb M, row N+1 is on mb M-1. it won't be
> > > as fast but it might be worth it. the synchronization could be done
> > > without thread-level locking. if it's not obvious how, i can explain.
> >
> > 1 row != 1 thread, and IIRC the optimal number of threads was close to
> > the number of cpus, in which case there will be several rows per thread,
> > waiting in such a case for the mb above is problematic speedwise
>
> So it's like first thread handles first 8 rows, second next 8 and so on?
yes

> And would it be possible that row m goes to thread m%N, N-number of
> threads?
yes, feel free to send a patch+benchmarks

[...]

-- 
Michael
level[i]= get_vlc(); i+=get_vlc();  (violates patent EP0266049)
median(mv[y-1][x], mv[y][x-1], mv[y+1][x+1]); (violates patent #5,905,535)
buf[i]= qp - buf[i-1];    (violates patent #?)
for more examples, see http://mplayerhq.hu/~michael/patent.html
stop it, see http://petition.eurolinux.org & http://petition.ffii.org/eubsa/en




More information about the MPlayer-dev-eng mailing list