19 #ifndef AVUTIL_SLICETHREAD_H
20 #define AVUTIL_SLICETHREAD_H
34 void (*
worker_func)(
void *priv,
int jobnr,
int threadnr,
int nb_jobs,
int nb_threads),
static void worker_func(void *priv, int jobnr, int threadnr, int nb_jobs, int nb_threads)
struct AVSliceThread AVSliceThread
int avpriv_slicethread_create(AVSliceThread **pctx, void *priv, void(*worker_func)(void *priv, int jobnr, int threadnr, int nb_jobs, int nb_threads), void(*main_func)(void *priv), int nb_threads)
Create slice threading context.
void avpriv_slicethread_execute(AVSliceThread *ctx, int nb_jobs, int execute_main)
Execute slice threading.
int( main_func)(AVCodecContext *c)
void avpriv_slicethread_free(AVSliceThread **pctx)
Destroy slice threading context.