#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 |
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] |
void initialize_after | ( | void | ) |
Definition at line 168 of file beosthread.c.
static int lock_ben | ( | struct benaphore * | ben | ) | [inline, static] |
void uninitialize_before | ( | void | ) |
Definition at line 174 of file beosthread.c.
static int unlock_ben | ( | struct benaphore * | ben | ) | [inline, static] |
struct benaphore av_thread_lib_ben [static] |
Definition at line 54 of file beosthread.c.
Referenced by avcodec_thread_lock_lib(), avcodec_thread_unlock_lib(), initialize_after(), and uninitialize_before().