]> git.sesse.net Git - ffmpeg/commit
lavc: replace internal use of AV_CODEC_CAP_AUTO_THREADS with an internal cap
authorAnton Khirnov <anton@khirnov.net>
Tue, 9 Mar 2021 17:00:44 +0000 (18:00 +0100)
committerAnton Khirnov <anton@khirnov.net>
Tue, 16 Mar 2021 09:34:29 +0000 (10:34 +0100)
commit8a129077cc37202a00dd666bd5365c3f61ea2e80
tree37c74788d6f529596bf635340648a4f51b57a41e
parentb60fe9508f5cf2adec82b0411c313c5638f33cc5
lavc: replace internal use of AV_CODEC_CAP_AUTO_THREADS with an internal cap

AV_CODEC_CAP_AUTO_THREADS was originally added in b4d44a45f9a to mark
codecs that spawn threads internally and are able to select an optimal
threads count by themselves (all such codecs are wrappers around
external libraries). It is used by lavc generic code to check whether it
should handle thread_count=0 itself or pass the zero directly to the
codec implementation. Within this meaning, it is clearly supposed to be
an internal cap rather than a public one, since from the viewpoint of a
libavcodec user, lavc ALWAYS handles thread_count=0. Whether it happens
in the generic code or within the codec internals is not a meaningful
difference for the caller.

External aspects of this flag will be dealt with in the following
commit.
18 files changed:
libavcodec/internal.h
libavcodec/libaomdec.c
libavcodec/libaomenc.c
libavcodec/libdav1d.c
libavcodec/libdavs2.c
libavcodec/libkvazaar.c
libavcodec/libopenh264enc.c
libavcodec/librav1e.c
libavcodec/libsvtav1.c
libavcodec/libuavs3d.c
libavcodec/libvpxdec.c
libavcodec/libvpxenc.c
libavcodec/libx264.c
libavcodec/libx265.c
libavcodec/libxavs.c
libavcodec/libxavs2.c
libavcodec/pthread.c
libavcodec/utils.c