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

WebP encoder using libwebp (WebPAnimEncoder API) More...

#include "libavutil/buffer.h"
#include "libavutil/mem.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 48 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 66 of file libwebpenc_animencoder.c.

◆ libwebp_anim_encode_close()

static int libwebp_anim_encode_close ( AVCodecContext * avctx)
static

Definition at line 152 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 |
.color_ranges = AVCOL_RANGE_MPEG,
.p.priv_class = &ff_libwebpenc_class,
.p.wrapper_name = "libwebp",
.priv_data_size = sizeof(LibWebPAnimContext),
}
static const FFCodecDefault defaults[]
Definition amfenc_av1.c:723
#define CODEC_PIXFMTS_ARRAY(array)
#define FF_CODEC_CAP_NOT_INIT_THREADSAFE
The codec is not known to be init-threadsafe (i.e.
#define FF_CODEC_ENCODE_CB(func)
#define CODEC_LONG_NAME(str)
int(* init)(AVBSFContext *ctx)
Definition dts2pts.c:608
#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_DELAY
Encoder or decoder requires flushing with NULL input at the end in order to give the complete and cor...
Definition codec.h:79
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
Definition codec.h:49
@ AV_CODEC_ID_WEBP
Definition codec_id.h:221
@ AVMEDIA_TYPE_VIDEO
Definition avutil.h:200
static int libwebp_anim_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet)
static int libwebp_anim_encode_close(AVCodecContext *avctx)
static av_cold int libwebp_anim_encode_init(AVCodecContext *avctx)
const AVClass ff_libwebpenc_class
enum AVPixelFormat ff_libwebpenc_pix_fmts[]
const FFCodecDefault ff_libwebp_defaults[]
@ AVCOL_RANGE_MPEG
Narrow or limited range content.
Definition pixfmt.h:766

Definition at line 163 of file libwebpenc_animencoder.c.