diff options
author | Alexander Strange <astrange@ithinksw.com> | 2011-02-07 21:15:45 -0500 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-02-11 02:54:08 +0100 |
commit | 043d2ff2673933c0ac8995b74c76973bd93cdd3e (patch) | |
tree | b81de1d2b67ba97112447a3f7c0a67e46d24d5c8 /libavcodec/thread.h | |
parent | 03e3cb8777b64afba9318ea1fbd085e133d16af6 (diff) | |
download | ffmpeg-043d2ff2673933c0ac8995b74c76973bd93cdd3e.tar.gz |
Deprecate avcodec_thread_init()
As a side effect of the last commit, avcodec_open() now calls it automatically,
so there is no longer any need for clients to call it.
Instead they should set AVCodecContext.thread_count.
avcodec_thread_free() is deprecated, and will be removed from avcodec.h at the
next MAJOR libavcodec bump.
Rename the functions to ff_thread_init/free, since they are now internal.
Wrappers are provided to maintain API compatibility.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit c0b102ca03fe92250f1ce620aec3836f529fc1d6)
Diffstat (limited to 'libavcodec/thread.h')
-rw-r--r-- | libavcodec/thread.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/thread.h b/libavcodec/thread.h index d9186d6850..485f4ec188 100644 --- a/libavcodec/thread.h +++ b/libavcodec/thread.h @@ -108,4 +108,7 @@ int ff_thread_get_buffer(AVCodecContext *avctx, AVFrame *f); */ void ff_thread_release_buffer(AVCodecContext *avctx, AVFrame *f); +int ff_thread_init(AVCodecContext *s, int thread_count); +void ff_thread_free(AVCodecContext *s); + #endif /* AVCODEC_THREAD_H */ |