FFmpeg
Typedefs | Functions | Variables
libwebpenc.c File Reference
#include "encode.h"
#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

const AVCodec ff_libwebp_encoder
 

Detailed Description

WebP encoder using libwebp (WebPEncode API)

Definition in file libwebpenc.c.

Typedef Documentation

◆ LibWebPContext

Definition at line 30 of file libwebpenc.c.

Function Documentation

◆ libwebp_encode_init()

static av_cold int libwebp_encode_init ( AVCodecContext avctx)
static

Definition at line 32 of file libwebpenc.c.

◆ libwebp_encode_frame()

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

Definition at line 37 of file libwebpenc.c.

◆ libwebp_encode_close()

static int libwebp_encode_close ( AVCodecContext avctx)
static

Definition at line 81 of file libwebpenc.c.

Variable Documentation

◆ ff_libwebp_encoder

const AVCodec ff_libwebp_encoder
Initial value:
= {
.name = "libwebp",
.long_name = NULL_IF_CONFIG_SMALL("libwebp WebP image"),
.capabilities = AV_CODEC_CAP_DR1,
.priv_class = &ff_libwebpenc_class,
.priv_data_size = sizeof(LibWebPContext),
.wrapper_name = "libwebp",
}

Definition at line 89 of file libwebpenc.c.

init
static int init
Definition: av_tx.c:47
defaults
static const AVCodecDefault defaults[]
Definition: amfenc_h264.c:361
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
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
libwebp_encode_frame
static int libwebp_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet)
Definition: libwebpenc.c:37
AV_CODEC_ID_WEBP
@ AV_CODEC_ID_WEBP
Definition: codec_id.h:222
libwebp_encode_init
static av_cold int libwebp_encode_init(AVCodecContext *avctx)
Definition: libwebpenc.c:32
libwebp_encode_close
static int libwebp_encode_close(AVCodecContext *avctx)
Definition: libwebpenc.c:81
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
LibWebPContext
LibWebPContextCommon LibWebPContext
Definition: libwebpenc.c:30
ff_libwebpenc_class
const AVClass ff_libwebpenc_class
Definition: libwebpenc_common.c:54
ff_libwebp_defaults
const AVCodecDefault ff_libwebp_defaults[]
Definition: libwebpenc_common.c:30