[x264-devel] Re: parallising the encoder
Loren Merritt
lorenm at u.washington.edu
Wed Apr 6 19:43:24 CEST 2005
On Wed, 6 Apr 2005, Tuukka Toivonen wrote:
> On Wed, 6 Apr 2005, Loren Merritt wrote:
>
>> You probably don't want to parallelize MBs. The extra predictions are no
>> problem (just encode each line 2 MBs behind the previous), but it would
>> mean you have to save residual coefficients and such, and delay bitstream
>> writing.
>
> Hmm... i think i don't follow you. So, suppose one would have two threads and
> frames with, say, 22x18 MBs. Which MBs would be encoded by which thread?
Thread 0 encodes row 0 (mb 0-21).
When thead 0 finishes mb 1, start thread 1 encoding row 1 (mb 22-43),
making sure that it stays >= 2 mbs behind all the way.
When thread 0 finishes row 0, start it on row 2 (mb 44-65).
When thread 1 finished row 1 or thread 0 finishes mb 45 (whichever is
later), thread 1 starts row 3.
...
Without CABAC RD, this produces results identical to the single-threaded
case.
--Loren Merritt
--
This is the x264-devel mailing-list
To unsubscribe, go to: http://developers.videolan.org/lists.html
More information about the x264-devel
mailing list