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

◆ LibWebPContext

Definition at line 29 of file libwebpenc.c.

Function Documentation

◆ libwebp_encode_init()

static av_cold int libwebp_encode_init ( AVCodecContext avctx)
static

Definition at line 31 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 36 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

◆ class_name

class_name = "libwebp"
private

Definition at line 90 of file libwebpenc.c.

◆ item_name

item_name = av_default_item_name
private

Definition at line 91 of file libwebpenc.c.

◆ option

option = options
private

Definition at line 92 of file libwebpenc.c.

◆ version

version = LIBAVUTIL_VERSION_INT
private

Definition at line 93 of file libwebpenc.c.

◆ @111

const { ... }

◆ ff_libwebp_encoder

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,
.wrapper_name = "libwebp",
}

Definition at line 96 of file libwebpenc.c.

AVPixelFormat
AVPixelFormat
Pixel format.
Definition: pixfmt.h:64
init
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
libwebp_defaults
static const AVCodecDefault libwebp_defaults[]
Definition: libwebpenc_common.h:78
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:275
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
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:188
AV_PIX_FMT_RGB32
#define AV_PIX_FMT_RGB32
Definition: pixfmt.h:360
libwebp_encode_frame
static int libwebp_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet)
Definition: libwebpenc.c:36
AV_CODEC_ID_WEBP
@ AV_CODEC_ID_WEBP
Definition: avcodec.h:390
libwebp_encode_init
static av_cold int libwebp_encode_init(AVCodecContext *avctx)
Definition: libwebpenc.c:31
libwebp_encode_close
static int libwebp_encode_close(AVCodecContext *avctx)
Definition: libwebpenc.c:81
AV_PIX_FMT_NONE
@ AV_PIX_FMT_NONE
Definition: pixfmt.h:65
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
LibWebPContext
LibWebPContextCommon LibWebPContext
Definition: libwebpenc.c:29