FFmpeg
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
ThreadContext Struct Reference

Data Fields

AVCodecContextparent_avctx
 
pthread_mutex_t buffer_mutex
 
AVFifoBuffertask_fifo
 
pthread_mutex_t task_fifo_mutex
 
pthread_cond_t task_fifo_cond
 
Task finished_tasks [BUFFER_SIZE]
 
pthread_mutex_t finished_task_mutex
 
pthread_cond_t finished_task_cond
 
unsigned task_index
 
unsigned finished_task_index
 
pthread_t worker [MAX_THREADS]
 
int exit
 
pthread_tworkers
 
action_funcfunc
 
action_func2func2
 
voidargs
 
int * rets
 
int rets_count
 
int job_count
 
int job_size
 
pthread_cond_t last_job_cond
 
pthread_cond_t current_job_cond
 
pthread_mutex_t current_job_lock
 
int current_job
 
unsigned int current_execute
 
int done
 

Detailed Description

Definition at line 48 of file frame_thread_encoder.c.

Field Documentation

AVCodecContext* ThreadContext::parent_avctx
pthread_mutex_t ThreadContext::buffer_mutex
AVFifoBuffer* ThreadContext::task_fifo
pthread_mutex_t ThreadContext::task_fifo_mutex
pthread_cond_t ThreadContext::task_fifo_cond
Task ThreadContext::finished_tasks[BUFFER_SIZE]

Definition at line 56 of file frame_thread_encoder.c.

Referenced by ff_thread_video_encode_frame(), and worker().

pthread_mutex_t ThreadContext::finished_task_mutex
pthread_cond_t ThreadContext::finished_task_cond
unsigned ThreadContext::task_index

Definition at line 60 of file frame_thread_encoder.c.

Referenced by ff_thread_video_encode_frame().

unsigned ThreadContext::finished_task_index

Definition at line 61 of file frame_thread_encoder.c.

Referenced by ff_thread_video_encode_frame().

pthread_t ThreadContext::worker[MAX_THREADS]
int ThreadContext::exit

Definition at line 64 of file frame_thread_encoder.c.

Referenced by ff_frame_thread_encoder_free(), and worker().

pthread_t* ThreadContext::workers

Definition at line 72 of file pthread.c.

Referenced by thread_free(), and thread_init().

action_func* ThreadContext::func

Definition at line 73 of file pthread.c.

Referenced by avcodec_thread_execute(), and worker().

action_func2* ThreadContext::func2

Definition at line 74 of file pthread.c.

Referenced by avcodec_thread_execute2(), and worker().

void* ThreadContext::args

Definition at line 75 of file pthread.c.

Referenced by avcodec_thread_execute(), and worker().

int* ThreadContext::rets

Definition at line 76 of file pthread.c.

Referenced by avcodec_thread_execute(), and worker().

int ThreadContext::rets_count

Definition at line 77 of file pthread.c.

Referenced by avcodec_thread_execute(), and worker().

int ThreadContext::job_count

Definition at line 78 of file pthread.c.

Referenced by avcodec_thread_execute(), avcodec_thread_park_workers(), thread_init(), and worker().

int ThreadContext::job_size

Definition at line 79 of file pthread.c.

Referenced by avcodec_thread_execute(), thread_init(), and worker().

pthread_cond_t ThreadContext::last_job_cond

Definition at line 81 of file pthread.c.

Referenced by avcodec_thread_park_workers(), thread_free(), thread_init(), and worker().

pthread_cond_t ThreadContext::current_job_cond

Definition at line 82 of file pthread.c.

Referenced by avcodec_thread_execute(), thread_free(), thread_init(), and worker().

pthread_mutex_t ThreadContext::current_job_lock
int ThreadContext::current_job

Definition at line 84 of file pthread.c.

Referenced by avcodec_thread_execute(), avcodec_thread_park_workers(), thread_init(), and worker().

unsigned int ThreadContext::current_execute

Definition at line 85 of file pthread.c.

Referenced by avcodec_thread_execute(), and worker().

int ThreadContext::done

Definition at line 86 of file pthread.c.

Referenced by thread_free(), thread_init(), and worker().


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