Lines Matching defs:thread
31 #include "thread.h"
37 #include "libavutil/thread.h"
50 AVSliceThread *thread;
87 avpriv_slicethread_free(&c->thread);
115 avpriv_slicethread_execute(c->thread, job_count, !!c->mainfunc );
150 // use number of cores + 1 as thread count if there is more than one
164 if (!c || (thread_count = avpriv_slicethread_create(&c->thread, avctx, worker_func, mainfunc, thread_count)) <= 1) {
166 avpriv_slicethread_free(&c->thread);
210 void ff_thread_report_progress2(AVCodecContext *avctx, int field, int thread, int n)
213 Progress *const progress = &p->progress[thread];
222 void ff_thread_await_progress2(AVCodecContext *avctx, int field, int thread, int shift)
230 thread = thread ? thread - 1 : p->thread_count - 1;
231 progress = &p->progress[thread];