FFmpeg
Data Structures | Functions | Variables
libwebpenc_animencoder.c File Reference
#include "config.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

class {
      class_name = "libwebp_anim"
 
      item_name = av_default_item_name
 
      option = options
 
      version = LIBAVUTIL_VERSION_INT
 
}; 
 
const AVCodec 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 39 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 57 of file libwebpenc_animencoder.c.

◆ libwebp_anim_encode_close()

static int libwebp_anim_encode_close ( AVCodecContext avctx)
static

Definition at line 118 of file libwebpenc_animencoder.c.

Variable Documentation

◆ class_name

class_name = "libwebp_anim"
private

Definition at line 128 of file libwebpenc_animencoder.c.

◆ item_name

item_name = av_default_item_name
private

Definition at line 129 of file libwebpenc_animencoder.c.

◆ option

option = options
private

Definition at line 130 of file libwebpenc_animencoder.c.

◆ version

version = LIBAVUTIL_VERSION_INT
private

Definition at line 131 of file libwebpenc_animencoder.c.

◆ @91

const { ... }

◆ ff_libwebp_anim_encoder

const AVCodec ff_libwebp_anim_encoder
Initial value:
= {
.name = "libwebp_anim",
.long_name = NULL_IF_CONFIG_SMALL("libwebp WebP image"),
.priv_data_size = sizeof(LibWebPAnimContext),
.capabilities = AV_CODEC_CAP_DELAY,
.pix_fmts = (const enum AVPixelFormat[]) {
},
.priv_class = &class,
.defaults = libwebp_defaults,
.wrapper_name = "libwebp",
}

Definition at line 134 of file libwebpenc_animencoder.c.

AVPixelFormat
AVPixelFormat
Pixel format.
Definition: pixfmt.h:64
init
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:31
libwebp_defaults
static const AVCodecDefault libwebp_defaults[]
Definition: libwebpenc_common.h:78
libwebp_anim_encode_init
static av_cold int libwebp_anim_encode_init(AVCodecContext *avctx)
Definition: libwebpenc_animencoder.c:39
AV_PIX_FMT_YUVA420P
@ AV_PIX_FMT_YUVA420P
planar YUV 4:2:0, 20bpp, (1 Cr & Cb sample per 2x2 Y & A samples)
Definition: pixfmt.h:101
pix_fmts
static enum AVPixelFormat pix_fmts[]
Definition: libkvazaar.c:289
AV_PIX_FMT_YUV420P
@ AV_PIX_FMT_YUV420P
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
Definition: pixfmt.h:66
libwebp_anim_encode_close
static int libwebp_anim_encode_close(AVCodecContext *avctx)
Definition: libwebpenc_animencoder.c:118
LibWebPAnimContext
Definition: libwebpenc_animencoder.c:32
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
AV_PIX_FMT_RGB32
#define AV_PIX_FMT_RGB32
Definition: pixfmt.h:362
AV_CODEC_ID_WEBP
@ AV_CODEC_ID_WEBP
Definition: codec_id.h:221
AV_PIX_FMT_NONE
@ AV_PIX_FMT_NONE
Definition: pixfmt.h:65
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:77
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
libwebp_anim_encode_frame
static int libwebp_anim_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet)
Definition: libwebpenc_animencoder.c:57