FFmpeg
Functions | Variables
rawenc.c File Reference
#include "avcodec.h"
#include "encode.h"
#include "raw.h"
#include "internal.h"
#include "libavutil/pixdesc.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/imgutils.h"
#include "libavutil/internal.h"

Go to the source code of this file.

Functions

static av_cold int raw_encode_init (AVCodecContext *avctx)
 
static int raw_encode (AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet)
 

Variables

const AVCodec ff_rawvideo_encoder
 

Detailed Description

Raw Video Encoder

Definition in file rawenc.c.

Function Documentation

◆ raw_encode_init()

static av_cold int raw_encode_init ( AVCodecContext avctx)
static

Definition at line 36 of file rawenc.c.

◆ raw_encode()

static int raw_encode ( AVCodecContext avctx,
AVPacket pkt,
const AVFrame frame,
int got_packet 
)
static

Definition at line 48 of file rawenc.c.

Variable Documentation

◆ ff_rawvideo_encoder

const AVCodec ff_rawvideo_encoder
Initial value:
= {
.name = "rawvideo",
.long_name = NULL_IF_CONFIG_SMALL("raw video"),
.init = raw_encode_init,
.encode2 = raw_encode,
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
}

Definition at line 83 of file rawenc.c.

FF_CODEC_CAP_INIT_THREADSAFE
#define FF_CODEC_CAP_INIT_THREADSAFE
The codec does not modify any global variables in the init function, allowing to call the init functi...
Definition: internal.h:42
AV_CODEC_ID_RAWVIDEO
@ AV_CODEC_ID_RAWVIDEO
Definition: codec_id.h:63
raw_encode_init
static av_cold int raw_encode_init(AVCodecContext *avctx)
Definition: rawenc.c:36
raw_encode
static int raw_encode(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet)
Definition: rawenc.c:48
AV_CODEC_CAP_FRAME_THREADS
#define AV_CODEC_CAP_FRAME_THREADS
Codec supports frame-level multithreading.
Definition: codec.h:113
AV_CODEC_CAP_DR1
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
Definition: codec.h:52
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:117
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201