FFmpeg
Data Structures | Functions
pthread.c File Reference
#include <stddef.h>
#include "libavutil/error.h"
#include "libavutil/macros.h"
#include "libavutil/mem.h"
#include "libavutil/slicethread.h"
#include "avfilter.h"
#include "avfilter_internal.h"

Go to the source code of this file.

Data Structures

struct  ThreadContext
 

Functions

static void worker_func (void *priv, int jobnr, int threadnr, int nb_jobs, int nb_threads)
 
static void slice_thread_uninit (ThreadContext *c)
 
static int thread_execute (AVFilterContext *ctx, avfilter_action_func *func, void *arg, int *ret, int nb_jobs)
 
static int thread_init_internal (ThreadContext *c, int nb_threads)
 
int ff_graph_thread_init (FFFilterGraph *graphi)
 
void ff_graph_thread_free (FFFilterGraph *graph)
 

Detailed Description

Libavfilter multithreading support

Definition in file pthread.c.

Function Documentation

◆ worker_func()

static void worker_func ( void *  priv,
int  jobnr,
int  threadnr,
int  nb_jobs,
int  nb_threads 
)
static

Definition at line 45 of file pthread.c.

Referenced by thread_init_internal().

◆ slice_thread_uninit()

static void slice_thread_uninit ( ThreadContext c)
static

Definition at line 53 of file pthread.c.

Referenced by ff_graph_thread_free().

◆ thread_execute()

static int thread_execute ( AVFilterContext ctx,
avfilter_action_func func,
void *  arg,
int *  ret,
int  nb_jobs 
)
static

Definition at line 58 of file pthread.c.

Referenced by ff_graph_thread_init().

◆ thread_init_internal()

static int thread_init_internal ( ThreadContext c,
int  nb_threads 
)
static

Definition at line 74 of file pthread.c.

Referenced by ff_graph_thread_init().

◆ ff_graph_thread_init()

int ff_graph_thread_init ( FFFilterGraph graphi)

Definition at line 82 of file pthread.c.

◆ ff_graph_thread_free()

void ff_graph_thread_free ( FFFilterGraph graph)

Definition at line 110 of file pthread.c.