Encoder loopfilter running in its own thread
authorAttila Nagy <attilanagy@google.com>
Fri, 25 Feb 2011 11:42:05 +0000 (13:42 +0200)
committerAttila Nagy <attilanagy@google.com>
Fri, 11 Mar 2011 08:52:51 +0000 (10:52 +0200)
commit3ae24657887ed0a9f2e547973640890e9dfa6ea4
treeae112cccd2353c21568843b01c9527ae009d634a
parentcfaee9f7c663150d4bc478bb47e3eb4038076ca5
Encoder loopfilter running in its own thread

In multithreaded mode the loopfilter is running in its own thread (filter level
calculation and frame filtering). Filtering is mostly done in parallel with the
bitstream packing. Before starting the packing the loopfilter level has
to be calculated. Also any needed reference frame copying is done in the
filter thread.

Currently the encoder will create n+1 threads, where n > 1 is the number of
threads specified by application  and 1 is the extra filter thread. With n = 1
the encoder runs in single thread mode. There will never be more than n threads
running concurrently.

Change-Id: I4fb29b559a40275d6d3babb8727245c40fba931b
vp8/encoder/ethreading.c
vp8/encoder/onyx_if.c
vp8/encoder/onyx_int.h