#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) |
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(). | |
int | avcodec_thread_execute (AVCodecContext *avctx, action_func *func, void *arg, int *ret, int job_count, int job_size) |
int | avcodec_thread_init (AVCodecContext *avctx, int thread_count) |
typedef int( action_func)(AVCodecContext *c, void *arg) |
int avcodec_thread_execute | ( | AVCodecContext * | avctx, | |
action_func * | func, | |||
void * | arg, | |||
int * | ret, | |||
int | job_count, | |||
int | job_size | |||
) |
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
int avcodec_thread_init | ( | AVCodecContext * | avctx, | |
int | thread_count | |||
) |
static av_always_inline void avcodec_thread_park_workers | ( | ThreadContext * | c, | |
int | thread_count | |||
) | [static] |
Definition at line 78 of file pthread.c.
Referenced by avcodec_thread_execute(), and avcodec_thread_init().
static void* attribute_align_arg worker | ( | void * | v | ) | [static] |