FFmpeg
Data Structures | Functions | Variables
libwebpenc_animencoder.c File Reference
#include "config.h"
#include "codec_internal.h"
#include "encode.h"
#include "libwebpenc_common.h"
#include <webp/mux.h>

Go to the source code of this file.

Data Structures

struct  LibWebPAnimContext
 

Functions

static av_cold int libwebp_anim_encode_init (AVCodecContext *avctx)
 
static int libwebp_anim_encode_frame (AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet)
 
static int libwebp_anim_encode_close (AVCodecContext *avctx)
 

Variables

const FFCodec ff_libwebp_anim_encoder
 

Detailed Description

WebP encoder using libwebp (WebPAnimEncoder API)

Definition in file libwebpenc_animencoder.c.

Function Documentation

◆ libwebp_anim_encode_init()

static av_cold int libwebp_anim_encode_init ( AVCodecContext avctx)
static

Definition at line 41 of file libwebpenc_animencoder.c.

◆ libwebp_anim_encode_frame()

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

Definition at line 59 of file libwebpenc_animencoder.c.

◆ libwebp_anim_encode_close()

static int libwebp_anim_encode_close ( AVCodecContext avctx)
static

Definition at line 123 of file libwebpenc_animencoder.c.

Variable Documentation

◆ ff_libwebp_anim_encoder

const FFCodec ff_libwebp_anim_encoder
Initial value:
= {
.p.name = "libwebp_anim",
CODEC_LONG_NAME("libwebp WebP image"),
.p.type = AVMEDIA_TYPE_VIDEO,
.p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_DELAY,
.p.pix_fmts = ff_libwebpenc_pix_fmts,
.p.priv_class = &ff_libwebpenc_class,
.p.wrapper_name = "libwebp",
.priv_data_size = sizeof(LibWebPAnimContext),
}

Definition at line 132 of file libwebpenc_animencoder.c.

FF_CODEC_CAP_NOT_INIT_THREADSAFE
#define FF_CODEC_CAP_NOT_INIT_THREADSAFE
The codec is not known to be init-threadsafe (i.e.
Definition: codec_internal.h:34
libwebp_anim_encode_init
static av_cold int libwebp_anim_encode_init(AVCodecContext *avctx)
Definition: libwebpenc_animencoder.c:41
FF_CODEC_ENCODE_CB
#define FF_CODEC_ENCODE_CB(func)
Definition: codec_internal.h:307
init
int(* init)(AVBSFContext *ctx)
Definition: dts2pts_bsf.c:363
libwebp_anim_encode_close
static int libwebp_anim_encode_close(AVCodecContext *avctx)
Definition: libwebpenc_animencoder.c:123
CODEC_LONG_NAME
#define CODEC_LONG_NAME(str)
Definition: codec_internal.h:264
ff_libwebp_defaults
const FFCodecDefault ff_libwebp_defaults[]
Definition: libwebpenc_common.c:30
LibWebPAnimContext
Definition: libwebpenc_animencoder.c:34
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
defaults
static const FFCodecDefault defaults[]
Definition: amfenc_h264.c:362
AV_CODEC_ID_WEBP
@ AV_CODEC_ID_WEBP
Definition: codec_id.h:224
AV_CODEC_CAP_DELAY
#define AV_CODEC_CAP_DELAY
Encoder or decoder requires flushing with NULL input at the end in order to give the complete and cor...
Definition: codec.h:82
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
ff_libwebpenc_pix_fmts
enum AVPixelFormat ff_libwebpenc_pix_fmts[]
Definition: libwebpenc_common.c:61
libwebp_anim_encode_frame
static int libwebp_anim_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet)
Definition: libwebpenc_animencoder.c:59
ff_libwebpenc_class
const AVClass ff_libwebpenc_class
Definition: libwebpenc_common.c:54