Lines Matching defs:tasks
37 /* There can be as many as MAX_THREADS + 1 outstanding tasks.
39 * the case of zero and MAX_THREADS + 1 outstanding tasks modulo
59 Task tasks[BUFFER_SIZE];
60 pthread_mutex_t finished_task_mutex; /* Guards tasks[i].finished */
99 /* The main thread ensures that any two outstanding tasks have
101 * of c->tasks with the exception of finished, which is shared
103 task = &c->tasks[task_index];
205 if (!(c->tasks[j].indata = av_frame_alloc()) ||
206 !(c->tasks[j].outdata = av_packet_alloc())) {
275 av_frame_free(&c->tasks[i].indata);
276 av_packet_free(&c->tasks[i].outdata);
292 av_frame_move_ref(c->tasks[c->task_index].indata, frame);
300 outtask = &c->tasks[c->finished_task_index];