diff options
author | Anton Khirnov <anton@khirnov.net> | 2012-11-21 21:34:46 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-03-08 07:38:30 +0100 |
commit | 759001c534287a96dc96d1e274665feb7059145d (patch) | |
tree | 6ace9560c20aa30db92067c5b45d7bd86e458d10 /doc | |
parent | 6e7b50b4270116ded8b874d76cb7c5b1a0341827 (diff) | |
download | ffmpeg-759001c534287a96dc96d1e274665feb7059145d.tar.gz |
lavc decoders: work with refcounted frames.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/multithreading.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/multithreading.txt b/doc/multithreading.txt index b72bc16079..9b27b108c6 100644 --- a/doc/multithreading.txt +++ b/doc/multithreading.txt @@ -57,6 +57,11 @@ which re-allocates them for other threads. Add CODEC_CAP_FRAME_THREADS to the codec capabilities. There will be very little speed gain at this point but it should work. +If there are inter-frame dependencies, so the codec calls +ff_thread_report/await_progress(), set AVCodecInternal.allocate_progress. The +frames must then be freed with ff_thread_release_buffer(). +Otherwise leave it at zero and decode directly into the user-supplied frames. + Call ff_thread_report_progress() after some part of the current picture has decoded. A good place to put this is where draw_horiz_band() is called - add this if it isn't called anywhere, as it's useful too and the implementation is trivial when you're |