Lines Matching defs:threads
76 * Context used by codec threads and stored in their AVCodecInternal thread_ctx.
85 pthread_cond_t progress_cond; ///< Used by child threads to wait for progress to change.
104 * Frames are released after all threads referencing them are finished.
129 PerThreadContext *threads; ///< The contexts for each thread.
135 * This lock is used for ensuring threads run in serial when hwaccel
147 * Set for the first N packets, where N is the number of threads.
219 * the threads don't run concurrently */
485 * then decoding threads call back to the main thread,
534 /* release the async lock, permitting blocked hwaccel threads to
542 p = &fctx->threads[fctx->next_decoding];
564 * If we're at the end of the stream, then we have to skip threads that
570 p = &fctx->threads[finished++];
585 * A later call with avkpt->size == 0 may loop over all threads,
691 /// Waits for all threads to finish.
699 PerThreadContext *p = &fctx->threads[i];
734 PerThreadContext *p = &fctx->threads[i];
776 av_freep(&fctx->threads);
903 fctx->threads = av_calloc(thread_count, sizeof(*fctx->threads));
904 if (!fctx->threads) {
910 PerThreadContext *p = &fctx->threads[i];
934 if (fctx->prev_thread != &fctx->threads[0])
935 update_context_from_thread(fctx->threads[0].avctx, fctx->prev_thread->avctx, 0);
942 PerThreadContext *p = &fctx->threads[i];