45static int worker_func(
void *priv,
int jobnr,
int threadnr,
int nb_jobs,
int nb_threads)
48 int ret =
c->func(
c->ctx,
c->arg, jobnr, nb_jobs);
60 void *
arg,
int *ret,
int nb_jobs)
80 return FFMAX(nb_threads, 1);
102 return (ret < 0) ? ret : 0;
Main libavfilter public API header.
static FFFilterGraph * fffiltergraph(AVFilterGraph *graph)
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,...
int(* func)(AVBPrint *dst, const char *in, const char *arg)
static int worker_func(void *priv, int jobnr, int threadnr, int nb_jobs, int nb_threads)
static int thread_execute(AVFilterContext *ctx, avfilter_action_func *func, void *arg, int *ret, int nb_jobs)
void ff_graph_thread_free(FFFilterGraph *graph)
static void slice_thread_uninit(ThreadContext *c)
int ff_graph_thread_init(FFFilterGraph *graphi)
static int thread_init_internal(ThreadContext *c, int nb_threads)
Utility Preprocessor macros.
Memory handling functions.
static int thread_execute(AVCodecContext *avctx, action_func *func, void *arg, int *ret, int job_count, int job_size)
static int worker_func(void *priv, int jobnr, int threadnr, int nb_jobs, int nb_threads)
void avpriv_slicethread_free(AVSliceThread **pctx)
Destroy slice threading context.
int avpriv_slicethread_execute2(AVSliceThread *ctx, int nb_jobs, int execute_main)
Execute slice threading.
int avpriv_slicethread_create2(AVSliceThread **pctx, void *priv, int(*worker_func)(void *priv, int jobnr, int threadnr, int nb_jobs, int nb_threads), int(*main_func)(void *priv), int nb_threads)
Create slice threading context.
struct AVSliceThread AVSliceThread
int thread_type
Type of multithreading allowed for filters in this graph.
int nb_threads
Maximum number of threads used by filters in this graph.
avfilter_execute_func * thread_execute
AVFilterGraph p
The public AVFilterGraph.
avfilter_action_func * func
static AVFormatContext * ctx