diff options
author | Paul B Mahol <onemda@gmail.com> | 2016-08-27 22:22:58 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2016-08-29 16:27:09 +0200 |
commit | 5b1907142dca052c3254d0b4ca3e2ff7ddc7d96b (patch) | |
tree | b228875fee9680f01b95fe85fda147e207646edb /libavfilter/internal.h | |
parent | 449339084fb2fe9259d8612a9c8c2a886022d1f5 (diff) | |
download | ffmpeg-5b1907142dca052c3254d0b4ca3e2ff7ddc7d96b.tar.gz |
avfilter: add ff_filter_get_nb_threads()
Diffstat (limited to 'libavfilter/internal.h')
-rw-r--r-- | libavfilter/internal.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavfilter/internal.h b/libavfilter/internal.h index 769e65b2fc..3856012aa9 100644 --- a/libavfilter/internal.h +++ b/libavfilter/internal.h @@ -402,4 +402,10 @@ static inline int ff_norm_qscale(int qscale, int type) return qscale; } +/** + * Get number of threads for current filter instance. + * This number is always same or less than graph->nb_threads. + */ +int ff_filter_get_nb_threads(AVFilterContext *ctx); + #endif /* AVFILTER_INTERNAL_H */ |