libavcodec/w32thread.c File Reference

#include "avcodec.h"
#include <windows.h>
#include <process.h>

Go to the source code of this file.

Data Structures

struct  ThreadContext




static unsigned WINAPI
thread_func (void *v)
void avcodec_thread_free (AVCodecContext *s)
 Free what has been allocated by avcodec_thread_init().
static int avcodec_thread_execute (AVCodecContext *s, int(*func)(AVCodecContext *c2, void *arg2), void *arg, int *ret, int count, int size)
static int avcodec_thread_execute2 (AVCodecContext *s, int(*func)(AVCodecContext *c2, void *arg2, int, int), void *arg, int *ret, int count)
int avcodec_thread_init (AVCodecContext *s, int thread_count)

Define Documentation


Definition at line 24 of file w32thread.c.

Function Documentation

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

Definition at line 96 of file w32thread.c.

static int avcodec_thread_execute2 ( AVCodecContext s,
int(*)(AVCodecContext *c2, void *arg2, int, int)  func,
void *  arg,
int *  ret,
int  count 
) [static]

Definition at line 119 of file w32thread.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 75 of file w32thread.c.

Referenced by avcodec_close(), and avcodec_thread_init().

int avcodec_thread_init ( AVCodecContext s,
int  thread_count 

static unsigned WINAPI attribute_align_arg thread_func ( void *  v  )  [static]

Definition at line 44 of file w32thread.c.

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