68 unsigned int last_execute = 0;
123 void *arg,
int *ret,
int nb_jobs)
142 c->
rets = &dummy_ret;
163 nb_threads = nb_cpus + 1;
185 for (i = 0; i < nb_threads; i++) {
222 return (ret < 0) ? ret : 0;
static av_unused void pthread_cond_signal(pthread_cond_t *cond)
static av_unused void w32thread_init(void)
int thread_type
Type of multithreading allowed for filters in this graph.
static av_unused void pthread_cond_init(pthread_cond_t *cond, const void *unused_attr)
Main libavfilter public API header.
memory handling functions
static av_unused void pthread_cond_broadcast(pthread_cond_t *cond)
static int thread_execute(AVFilterContext *ctx, avfilter_action_func *func, void *arg, int *ret, int nb_jobs)
avfilter_action_func * func
static void slice_thread_park_workers(ThreadContext *c)
pthread_cond_t last_job_cond
void av_freep(void *arg)
Free a memory block which has been allocated with av_malloc(z)() or av_realloc() and set the pointer ...
struct AVFilterGraph * graph
filtergraph this filter belongs to
CRITICAL_SECTION pthread_mutex_t
static av_unused int pthread_create(pthread_t *thread, const void *unused_attr, void *(*start_routine)(void *), void *arg)
int nb_threads
Maximum number of threads used by filters in this graph.
static int pthread_mutex_init(pthread_mutex_t *m, void *attr)
static int pthread_mutex_unlock(pthread_mutex_t *m)
#define AV_LOG_DEBUG
Stuff which is only useful for libav* developers.
void av_log(void *avcl, int level, const char *fmt,...)
static av_unused void pthread_join(pthread_t thread, void **value_ptr)
void ff_graph_thread_free(AVFilterGraph *graph)
static int pthread_mutex_destroy(pthread_mutex_t *m)
static av_unused void pthread_cond_destroy(pthread_cond_t *cond)
static av_unused int pthread_cond_wait(pthread_cond_t *cond, pthread_mutex_t *mutex)
pthread_mutex_t current_job_lock
int( avfilter_action_func)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
A function pointer passed to the AVFilterGraph::execute callback to be executed multiple times...
pthread_cond_t current_job_cond
#define attribute_align_arg
static int pthread_mutex_lock(pthread_mutex_t *m)
AVFilterGraphInternal * internal
Opaque object for libavfilter internal use.
static void slice_thread_uninit(ThreadContext *c)
static int thread_init_internal(ThreadContext *c, int nb_threads)
static void *attribute_align_arg worker(void *v)
common internal and external API header
unsigned int current_execute
avfilter_execute_func * thread_execute
int ff_graph_thread_init(AVFilterGraph *graph)
w32threads to pthreads wrapper
void * av_mallocz(size_t size)
Allocate a block of size bytes with alignment suitable for all memory accesses (including vectors if ...