libavcodec/beosthread.c File Reference

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

Go to the source code of this file.

Data Structures

struct  ThreadContext
struct  benaphore

Functions

static int lock_ben (struct benaphore *ben)
static int unlock_ben (struct benaphore *ben)
static int32 ff_thread_func (void *v)
void avcodec_thread_free (AVCodecContext *s)
 Free what has been allocated by avcodec_thread_init().
int avcodec_thread_execute (AVCodecContext *s, int(*func)(AVCodecContext *c2, void *arg2), void *arg, int *ret, int count, int size)
int avcodec_thread_init (AVCodecContext *s, int thread_count)
int avcodec_thread_lock_lib (void)
int avcodec_thread_unlock_lib (void)
void initialize_after (void)
void uninitialize_before (void)

Variables

static struct benaphore av_thread_lib_ben


Function Documentation

int avcodec_thread_execute ( AVCodecContext s,
int(*)(AVCodecContext *c2, void *arg2)  func,
void *  arg,
int *  ret,
int  count,
int  size 
)

Definition at line 95 of file beosthread.c.

void avcodec_thread_free ( AVCodecContext s  ) 

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 78 of file beosthread.c.

int avcodec_thread_init ( AVCodecContext s,
int  thread_count 
)

Definition at line 120 of file beosthread.c.

int avcodec_thread_lock_lib ( void   ) 

Definition at line 156 of file beosthread.c.

int avcodec_thread_unlock_lib ( void   ) 

Definition at line 161 of file beosthread.c.

static int32 ff_thread_func ( void *  v  )  [static]

Definition at line 56 of file beosthread.c.

Referenced by avcodec_thread_init().

void initialize_after ( void   ) 

Definition at line 168 of file beosthread.c.

static int lock_ben ( struct benaphore ben  )  [inline, static]

Definition at line 41 of file beosthread.c.

Referenced by avcodec_thread_lock_lib().

void uninitialize_before ( void   ) 

Definition at line 174 of file beosthread.c.

static int unlock_ben ( struct benaphore ben  )  [inline, static]

Definition at line 47 of file beosthread.c.

Referenced by avcodec_thread_unlock_lib().


Variable Documentation

struct benaphore av_thread_lib_ben [static]


Generated on Fri Oct 26 02:35:42 2012 for FFmpeg by  doxygen 1.5.8