libavcodec/pthread.c File Reference

#include <pthread.h>
#include "avcodec.h"

Go to the source code of this file.

Data Structures

struct  ThreadContext

Typedefs

typedef int( action_func )(AVCodecContext *c, void *arg)
typedef int( action_func2 )(AVCodecContext *c, void *arg, int jobnr, int threadnr)

Functions

static void *attribute_align_arg worker (void *v)
static av_always_inline void avcodec_thread_park_workers (ThreadContext *c, int thread_count)
void avcodec_thread_free (AVCodecContext *avctx)
 Free what has been allocated by avcodec_thread_init().
static int avcodec_thread_execute (AVCodecContext *avctx, action_func *func, void *arg, int *ret, int job_count, int job_size)
static int avcodec_thread_execute2 (AVCodecContext *avctx, action_func2 *func2, void *arg, int *ret, int job_count)
int avcodec_thread_init (AVCodecContext *avctx, int thread_count)


Typedef Documentation

typedef int( action_func)(AVCodecContext *c, void *arg)

Definition at line 28 of file pthread.c.

typedef int( action_func2)(AVCodecContext *c, void *arg, int jobnr, int threadnr)

Definition at line 29 of file pthread.c.


Function Documentation

static int avcodec_thread_execute ( AVCodecContext avctx,
action_func func,
void *  arg,
int *  ret,
int  job_count,
int  job_size 
) [static]

Definition at line 107 of file pthread.c.

static int avcodec_thread_execute2 ( AVCodecContext avctx,
action_func2 func2,
void *  arg,
int *  ret,
int  job_count 
) [static]

Definition at line 136 of file pthread.c.

Referenced by avcodec_thread_init().

void avcodec_thread_free ( AVCodecContext avctx  ) 

Free what has been allocated by avcodec_thread_init().

Must be called after decoding has finished, especially do not call while avcodec_thread_execute() is running.

Free what has been allocated by avcodec_thread_init().

must be called after decoding has finished, especially do not call while avcodec_thread_execute() is running

Definition at line 87 of file pthread.c.

int avcodec_thread_init ( AVCodecContext avctx,
int  thread_count 
)

Definition at line 143 of file pthread.c.

static av_always_inline void avcodec_thread_park_workers ( ThreadContext c,
int  thread_count 
) [static]

Definition at line 81 of file pthread.c.

Referenced by avcodec_thread_execute(), and avcodec_thread_init().

static void* attribute_align_arg worker ( void *  v  )  [static]

Definition at line 48 of file pthread.c.

Referenced by avcodec_thread_init().


Generated on Fri Oct 26 02:36:53 2012 for FFmpeg by  doxygen 1.5.8