[x264-devel] Sliced-threads: do hpel and deblock after returning

Jason Garrett-Glaser git at videolan.org
Wed Mar 7 03:20:17 CET 2012


x264 | branch: master | Jason Garrett-Glaser <jason at x264.com> | Fri Feb 24 13:34:39 2012 -0800| [c522ad1fed167d0e985e4f9dcdee042473cf74db] | committer: Jason Garrett-Glaser

Sliced-threads: do hpel and deblock after returning
Lowers encoding latency around 14% in sliced threads mode with preset superfast.
Additionally, even if there is no waiting time between frames, this improves parallelism, because hpel+deblock are done during the (singlethreaded) lookahead.
For ease of debugging, dump-yuv forces all of the threads to wait and finish instead of setting b_full_recon.

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=c522ad1fed167d0e985e4f9dcdee042473cf74db
---

 common/common.h     |    7 ++
 common/deblock.c    |    4 +-
 common/frame.c      |   43 +++++++++++----
 common/frame.h      |    5 +-
 common/macroblock.c |   19 +++++-
 encoder/encoder.c   |  156 +++++++++++++++++++++++++++++++++++++-------------
 6 files changed, 176 insertions(+), 58 deletions(-)

Diff:   http://git.videolan.org/gitweb.cgi/x264.git/?a=commitdiff;h=c522ad1fed167d0e985e4f9dcdee042473cf74db


More information about the x264-devel mailing list