Lines Matching defs:PerThreadContext
78 typedef struct PerThreadContext {
88 pthread_mutex_t mutex; ///< Mutex used to protect the contents of the PerThreadContext.
123 } PerThreadContext;
129 PerThreadContext *threads; ///< The contexts for each thread.
130 PerThreadContext *prev_thread; ///< The last thread submit_packet() was called on.
190 PerThreadContext *p = arg;
400 static void release_delayed_buffers(PerThreadContext *p)
421 static int submit_packet(PerThreadContext *p, AVCodecContext *user_avctx,
425 PerThreadContext *prev_thread = fctx->prev_thread;
531 PerThreadContext *p;
612 PerThreadContext *p;
635 PerThreadContext *p;
655 PerThreadContext *p = avctx->internal->thread_ctx;
699 PerThreadContext *p = &fctx->threads[i];
719 #define OFF(member) offsetof(PerThreadContext, member)
720 DEFINE_OFFSET_ARRAY(PerThreadContext, per_thread, pthread_init_cnt,
734 PerThreadContext *p = &fctx->threads[i];
789 static av_cold int init_thread(PerThreadContext *p, int *threads_to_free,
803 /* From now on, this PerThreadContext will be cleaned up by
910 PerThreadContext *p = &fctx->threads[i];
942 PerThreadContext *p = &fctx->threads[i];
959 PerThreadContext *p = avctx->internal->thread_ctx;
975 PerThreadContext *p;
1031 PerThreadContext *p;
1101 PerThreadContext *p;