FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
pthread.c File Reference

Multithreading support functions. More...

#include "avcodec.h"
#include "internal.h"
#include "pthread_internal.h"
#include "thread.h"

Go to the source code of this file.

Functions

static void validate_thread_parameters (AVCodecContext *avctx)
 Set the threading algorithms used. More...
 
int ff_thread_init (AVCodecContext *avctx)
 
void ff_thread_free (AVCodecContext *avctx)
 

Detailed Description

Multithreading support functions.

See Also
doc/multithreading.txt

Definition in file pthread.c.

Function Documentation

static void validate_thread_parameters ( AVCodecContext avctx)
static

Set the threading algorithms used.

Threading requires more than one thread. Frame threading requires entire frames to be passed to the codec, and introduces extra decoding delay, so is incompatible with low_delay.

Parameters
avctxThe context.

Definition at line 46 of file pthread.c.

Referenced by ff_thread_init().

int ff_thread_init ( AVCodecContext avctx)

Definition at line 70 of file pthread.c.

void ff_thread_free ( AVCodecContext avctx)

Definition at line 82 of file pthread.c.

Referenced by avcodec_close(), and ff_slice_thread_init().