FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
libwebpenc_animencoder.c File Reference

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

#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
 
}; 
 
AVCodec ff_libwebp_anim_encoder
 

Detailed Description

WebP encoder using libwebp (WebPAnimEncoder API)

Definition in file libwebpenc_animencoder.c.

Function Documentation

static av_cold int libwebp_anim_encode_init ( AVCodecContext avctx)
static

Definition at line 39 of file libwebpenc_animencoder.c.

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.

static int libwebp_anim_encode_close ( AVCodecContext avctx)
static

Definition at line 118 of file libwebpenc_animencoder.c.

Variable Documentation

class_name = "libwebp_anim"

Definition at line 128 of file libwebpenc_animencoder.c.

item_name = av_default_item_name

Definition at line 129 of file libwebpenc_animencoder.c.

option = options

Definition at line 130 of file libwebpenc_animencoder.c.

Definition at line 131 of file libwebpenc_animencoder.c.

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",
}
static int libwebp_anim_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet)
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
#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: avcodec.h:993
planar YUV 4:2:0, 20bpp, (1 Cr & Cb sample per 2x2 Y & A samples)
Definition: pixfmt.h:101
static av_cold int libwebp_anim_encode_init(AVCodecContext *avctx)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
static const AVCodecDefault libwebp_defaults[]
#define AV_PIX_FMT_RGB32
Definition: pixfmt.h:352
static enum AVPixelFormat pix_fmts[]
Definition: libkvazaar.c:266
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
Definition: pixfmt.h:66
static int libwebp_anim_encode_close(AVCodecContext *avctx)
AVPixelFormat
Pixel format.
Definition: pixfmt.h:64

Definition at line 134 of file libwebpenc_animencoder.c.