Data Structures | Macros | Functions
frame_thread_encoder.c File Reference
#include <stdatomic.h>
#include "frame_thread_encoder.h"
#include "libavutil/fifo.h"
#include "libavutil/avassert.h"
#include "libavutil/imgutils.h"
#include "libavutil/opt.h"
#include "libavutil/thread.h"
#include "avcodec.h"
#include "internal.h"
#include "thread.h"

Go to the source code of this file.

Data Structures

struct  Task
struct  ThreadContext


#define MAX_THREADS   64


static void *attribute_align_arg worker (void *v)
int ff_frame_thread_encoder_init (AVCodecContext *avctx, AVDictionary *options)
 Initialize frame thread encoder. More...
void ff_frame_thread_encoder_free (AVCodecContext *avctx)
int ff_thread_video_encode_frame (AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet_ptr)

Macro Definition Documentation


#define MAX_THREADS   64

Definition at line 34 of file frame_thread_encoder.c.



Definition at line 35 of file frame_thread_encoder.c.

Function Documentation

◆ worker()

static void* attribute_align_arg worker ( void *  v)

Definition at line 63 of file frame_thread_encoder.c.

Referenced by ff_frame_thread_encoder_init().

◆ ff_frame_thread_encoder_init()

int ff_frame_thread_encoder_init ( AVCodecContext avctx,
AVDictionary options 

Initialize frame thread encoder.

hardware encoders are not supported

Definition at line 117 of file frame_thread_encoder.c.

Referenced by avcodec_open2().

◆ ff_frame_thread_encoder_free()

void ff_frame_thread_encoder_free ( AVCodecContext avctx)

Definition at line 244 of file frame_thread_encoder.c.

Referenced by avcodec_close(), and ff_frame_thread_encoder_init().

◆ ff_thread_video_encode_frame()

int ff_thread_video_encode_frame ( AVCodecContext avctx,
AVPacket pkt,
const AVFrame frame,
int got_packet_ptr 

Definition at line 283 of file frame_thread_encoder.c.

Referenced by avcodec_encode_video2().