Lines Matching refs:thread_count
551 if (fctx->next_decoding > (avctx->thread_count-1-(avctx->codec_id == AV_CODEC_ID_FFV1)))
593 if (finished >= avctx->thread_count) finished = 0;
598 if (fctx->next_decoding >= avctx->thread_count) fctx->next_decoding = 0;
692 static void park_frame_worker_threads(FrameThreadContext *fctx, int thread_count)
698 for (i = 0; i < thread_count; i++) {
725 void ff_frame_thread_free(AVCodecContext *avctx, int thread_count)
731 park_frame_worker_threads(fctx, thread_count);
733 for (i = 0; i < thread_count; i++) {
867 int thread_count = avctx->thread_count;
872 if (!thread_count) {
876 thread_count = avctx->thread_count = FFMIN(nb_cpus + 1, MAX_AUTO_THREADS);
878 thread_count = avctx->thread_count = 1;
881 if (thread_count <= 1) {
901 avctx->delay = avctx->thread_count - 1;
903 fctx->threads = av_calloc(thread_count, sizeof(*fctx->threads));
909 for (; i < thread_count; ) {
932 park_frame_worker_threads(fctx, avctx->thread_count);
941 for (i = 0; i < avctx->thread_count; i++) {