FFmpeg
Loading...
Searching...
No Matches
rawenc.c File Reference

Raw Video Encoder. More...

#include "avcodec.h"
#include "codec_internal.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 FFCodec 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 37 of file rawenc.c.

◆ raw_encode()

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

Definition at line 49 of file rawenc.c.

Variable Documentation

◆ ff_rawvideo_encoder

const FFCodec ff_rawvideo_encoder
Initial value:
= {
.p.name = "rawvideo",
CODEC_LONG_NAME("raw video"),
.p.type = AVMEDIA_TYPE_VIDEO,
.init = raw_encode_init,
}
#define FF_CODEC_ENCODE_CB(func)
#define CODEC_LONG_NAME(str)
#define AV_CODEC_CAP_ENCODER_REORDERED_OPAQUE
This encoder can reorder user opaque values from input AVFrames and return them with corresponding ou...
Definition codec.h:147
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
Definition codec.h:49
#define AV_CODEC_CAP_FRAME_THREADS
Codec supports frame-level multithreading.
Definition codec.h:98
@ AV_CODEC_ID_RAWVIDEO
Definition codec_id.h:63
@ AVMEDIA_TYPE_VIDEO
Definition avutil.h:200
static int raw_encode(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet)
Definition rawenc.c:49
static av_cold int raw_encode_init(AVCodecContext *avctx)
Definition rawenc.c:37

Definition at line 84 of file rawenc.c.