FFmpeg
|
Context stored in the client AVCodecInternal thread_ctx. More...
Data Fields | |
PerThreadContext * | threads |
The contexts for each thread. More... | |
PerThreadContext * | prev_thread |
The last thread submit_packet() was called on. More... | |
unsigned | pthread_init_cnt |
Number of successfully initialized mutexes/conditions. More... | |
pthread_mutex_t | buffer_mutex |
Mutex used to protect get/release_buffer(). More... | |
pthread_mutex_t | hwaccel_mutex |
This lock is used for ensuring threads run in serial when thread-unsafe hwaccel is used. More... | |
pthread_mutex_t | async_mutex |
pthread_cond_t | async_cond |
int | async_lock |
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... | |
const AVHWAccel * | stash_hwaccel |
void * | stash_hwaccel_context |
void * | stash_hwaccel_priv |
Context stored in the client AVCodecInternal thread_ctx.
Definition at line 116 of file pthread_frame.c.
PerThreadContext* FrameThreadContext::threads |
The contexts for each thread.
Definition at line 117 of file pthread_frame.c.
Referenced by ff_frame_thread_free(), ff_frame_thread_init(), ff_thread_decode_frame(), ff_thread_flush(), park_frame_worker_threads(), and thread_set_name().
PerThreadContext* FrameThreadContext::prev_thread |
The last thread submit_packet() was called on.
Definition at line 118 of file pthread_frame.c.
Referenced by ff_thread_flush(), and submit_packet().
unsigned FrameThreadContext::pthread_init_cnt |
Number of successfully initialized mutexes/conditions.
Definition at line 120 of file pthread_frame.c.
pthread_mutex_t FrameThreadContext::buffer_mutex |
Mutex used to protect get/release_buffer().
Definition at line 121 of file pthread_frame.c.
Referenced by thread_get_buffer_internal().
pthread_mutex_t FrameThreadContext::hwaccel_mutex |
This lock is used for ensuring threads run in serial when thread-unsafe hwaccel is used.
Definition at line 126 of file pthread_frame.c.
Referenced by ff_thread_finish_setup(), and frame_worker_thread().
pthread_mutex_t FrameThreadContext::async_mutex |
Definition at line 127 of file pthread_frame.c.
Referenced by async_lock(), and async_unlock().
pthread_cond_t FrameThreadContext::async_cond |
Definition at line 128 of file pthread_frame.c.
Referenced by async_lock(), and async_unlock().
int FrameThreadContext::async_lock |
Definition at line 129 of file pthread_frame.c.
Referenced by async_lock(), async_unlock(), and ff_frame_thread_init().
int FrameThreadContext::next_decoding |
The next context to submit a packet to.
Definition at line 131 of file pthread_frame.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 132 of file pthread_frame.c.
Referenced by ff_thread_decode_frame(), and ff_thread_flush().
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 134 of file pthread_frame.c.
Referenced by ff_frame_thread_init(), ff_thread_decode_frame(), and ff_thread_flush().
const AVHWAccel* FrameThreadContext::stash_hwaccel |
Definition at line 142 of file pthread_frame.c.
Referenced by ff_frame_thread_free(), ff_thread_finish_setup(), and submit_packet().
void* FrameThreadContext::stash_hwaccel_context |
Definition at line 143 of file pthread_frame.c.
Referenced by ff_frame_thread_free(), ff_thread_finish_setup(), and submit_packet().
void* FrameThreadContext::stash_hwaccel_priv |
Definition at line 144 of file pthread_frame.c.
Referenced by ff_frame_thread_free(), ff_thread_finish_setup(), and submit_packet().