Fix multithreaded encoding for 1 MB wide frame
authorAttila Nagy <attilanagy@google.com>
Fri, 18 Mar 2011 08:44:08 +0000 (10:44 +0200)
committerAttila Nagy <attilanagy@google.com>
Fri, 18 Mar 2011 10:35:30 +0000 (12:35 +0200)
commitbfe803bda3685c1c8005f38b6e90e1665d4dde7f
tree842c693fbd7f03c37792f547e5557a5c88aec699
parent185557344ae79890d4acbbf5972972d20af1dd05
Fix multithreaded encoding for 1 MB wide frame

Thread synchronization was not correct when frame width was 1 MB.
Number of allocated encoding threads is limited by the sync_range.
There is no point having more because each thread lags sync_range MBs
behind the thread processing the row above.

http://code.google.com/p/webm/issues/detail?id=302

Change-Id: Icaf67a883beecc5ebf2f11e9be47b6997fdf6f26
vp8/encoder/encodeframe.c
vp8/encoder/ethreading.c