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

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

#include "libwebpenc_common.h"

Go to the source code of this file.

Typedefs

typedef LibWebPContextCommon LibWebPContext
 

Functions

static av_cold int libwebp_encode_init (AVCodecContext *avctx)
 
static int libwebp_encode_frame (AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet)
 
static int libwebp_encode_close (AVCodecContext *avctx)
 

Variables

class {
      class_name = "libwebp"
 
      item_name = av_default_item_name
 
      option = options
 
      version = LIBAVUTIL_VERSION_INT
 
}; 
 
AVCodec ff_libwebp_encoder
 

Detailed Description

WebP encoder using libwebp (WebPEncode API)

Definition in file libwebpenc.c.

Typedef Documentation

Definition at line 29 of file libwebpenc.c.

Function Documentation

static av_cold int libwebp_encode_init ( AVCodecContext avctx)
static

Definition at line 31 of file libwebpenc.c.

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

Definition at line 36 of file libwebpenc.c.

static int libwebp_encode_close ( AVCodecContext avctx)
static

Definition at line 81 of file libwebpenc.c.

Variable Documentation

class_name = "libwebp"

Definition at line 90 of file libwebpenc.c.

item_name = av_default_item_name

Definition at line 91 of file libwebpenc.c.

option = options

Definition at line 92 of file libwebpenc.c.

Definition at line 93 of file libwebpenc.c.

const { ... }
AVCodec ff_libwebp_encoder
Initial value:
= {
.name = "libwebp",
.long_name = NULL_IF_CONFIG_SMALL("libwebp WebP image"),
.priv_data_size = sizeof(LibWebPContext),
.pix_fmts = (const enum AVPixelFormat[]) {
},
.priv_class = &class,
.defaults = libwebp_defaults,
}
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
static int libwebp_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet)
Definition: libwebpenc.c:36
static int libwebp_encode_close(AVCodecContext *avctx)
Definition: libwebpenc.c:81
planar YUV 4:2:0, 20bpp, (1 Cr & Cb sample per 2x2 Y & A samples)
Definition: pixfmt.h:97
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
LibWebPContextCommon LibWebPContext
Definition: libwebpenc.c:29
static const AVCodecDefault libwebp_defaults[]
static av_cold int libwebp_encode_init(AVCodecContext *avctx)
Definition: libwebpenc.c:31
#define AV_PIX_FMT_RGB32
Definition: pixfmt.h:342
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:62
AVPixelFormat
Pixel format.
Definition: pixfmt.h:60

Definition at line 96 of file libwebpenc.c.