FrameThreadContext Struct Reference

Context stored in the client AVCodecContext thread_opaque. More...

Collaboration diagram for FrameThreadContext:
Collaboration graph

Data Fields

PerThreadContextthreads
 The contexts for each thread. More...
 
PerThreadContextprev_thread
 The last thread submit_packet() was called on. More...
 
pthread_mutex_t buffer_mutex
 Mutex used to protect get/release_buffer(). More...
 
int next_decoding
 The next context to submit a packet to. More...
 
int next_finished
 The next context to return output from. More...
 
int delaying
 Set for the first N packets, where N is the number of threads. More...
 
int die
 Set when threads should exit. More...
 

Detailed Description

Context stored in the client AVCodecContext thread_opaque.

Definition at line 147 of file pthread.c.

Field Documentation

pthread_mutex_t FrameThreadContext::buffer_mutex

Mutex used to protect get/release_buffer().

Definition at line 151 of file pthread.c.

Referenced by ff_thread_release_buffer(), frame_thread_free(), frame_thread_init(), release_delayed_buffers(), and thread_get_buffer_internal().

int FrameThreadContext::delaying

Set for the first N packets, where N is the number of threads.

While it is set, ff_thread_en/decode_frame won't return any results.

Definition at line 156 of file pthread.c.

Referenced by ff_thread_decode_frame(), ff_thread_flush(), and frame_thread_init().

int FrameThreadContext::die

Set when threads should exit.

Definition at line 161 of file pthread.c.

Referenced by frame_thread_free(), and frame_worker_thread().

int FrameThreadContext::next_decoding

The next context to submit a packet to.

Definition at line 153 of file pthread.c.

Referenced by ff_thread_decode_frame(), ff_thread_flush(), and submit_packet().

int FrameThreadContext::next_finished

The next context to return output from.

Definition at line 154 of file pthread.c.

Referenced by ff_thread_decode_frame(), and ff_thread_flush().

PerThreadContext* FrameThreadContext::prev_thread

The last thread submit_packet() was called on.

Definition at line 149 of file pthread.c.

Referenced by ff_thread_flush(), frame_thread_free(), and submit_packet().

PerThreadContext* FrameThreadContext::threads

The contexts for each thread.

Definition at line 148 of file pthread.c.

Referenced by ff_thread_decode_frame(), ff_thread_flush(), frame_thread_free(), frame_thread_init(), and park_frame_worker_threads().


The documentation for this struct was generated from the following file: