Lines Matching refs:thread
35 #include "thread.h"
48 #include "libavutil/thread.h"
51 ///< Set when the thread is awaiting a packet.
81 pthread_t thread;
84 pthread_cond_t input_cond; ///< Used to wait for a new packet from the main thread.
86 pthread_cond_t output_cond; ///< Used by the main thread to wait for frames to finish.
91 AVCodecContext *avctx; ///< Context used to decode packets passed to this thread.
117 int die; ///< Set when the thread should exit.
129 PerThreadContext *threads; ///< The contexts for each thread.
130 PerThreadContext *prev_thread; ///< The last thread submit_packet() was called on.
152 * to the next decoding thread without the need for extra synchronization */
182 * Codec worker thread.
218 /* if the previous thread uses hwaccel then we take the lock to ensure
268 * Update the next thread's AVCodecContext with values from the reference thread's context.
272 * @param for_user 0 if the destination is a codec thread, 1 if the destination is the user's thread
352 * Update the next thread's AVCodecContext with values set by the user.
399 /// Releases the buffers that this decoding thread was the last user of.
484 * If the client doesn't have a thread-safe get_buffer(),
485 * then decoding threads call back to the main thread,
539 * Submit a packet to the next decoding thread.
563 * Return the next available frame from the oldest thread.
646 "thread awaiting %d field %d from %p\n", n, field, progress);
672 /* save hwaccel state for passing to the next thread;
673 * this is done here so that this worker thread can wipe its own hwaccel
744 pthread_join(p->thread, NULL);
857 err = AVERROR(pthread_create(&p->thread, NULL, frame_worker_thread, p));
874 // use number of cores + 1 as thread count if there is more than one