FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
webpenc.c File Reference
#include "libavutil/intreadwrite.h"
#include "libavutil/opt.h"
#include "avformat.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  WebpContext
 

Macros

#define OFFSET(x)   offsetof(WebpContext, x)
 
#define ENC   AV_OPT_FLAG_ENCODING_PARAM
 

Functions

static int webp_write_header (AVFormatContext *s)
 
static int is_animated_webp_packet (AVPacket *pkt)
 
static int flush (AVFormatContext *s, int trailer, int64_t pts)
 
static int webp_write_packet (AVFormatContext *s, AVPacket *pkt)
 
static int webp_write_trailer (AVFormatContext *s)
 

Variables

static const AVOption options []
 
static const AVClass webp_muxer_class
 
AVOutputFormat ff_webp_muxer
 

Macro Definition Documentation

#define OFFSET (   x)    offsetof(WebpContext, x)

Definition at line 193 of file webpenc.c.

#define ENC   AV_OPT_FLAG_ENCODING_PARAM

Definition at line 194 of file webpenc.c.

Function Documentation

static int webp_write_header ( AVFormatContext s)
static

Definition at line 36 of file webpenc.c.

static int is_animated_webp_packet ( AVPacket pkt)
static

Definition at line 54 of file webpenc.c.

Referenced by webp_write_packet().

static int flush ( AVFormatContext s,
int  trailer,
int64_t  pts 
)
static

Definition at line 77 of file webpenc.c.

Referenced by webp_write_packet(), and webp_write_trailer().

static int webp_write_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 149 of file webpenc.c.

static int webp_write_trailer ( AVFormatContext s)
static

Definition at line 168 of file webpenc.c.

Variable Documentation

const AVOption options[]
static
Initial value:
= {
{ "loop", "Number of times to loop the output: 0 - infinite loop", OFFSET(loop),
AV_OPT_TYPE_INT, { .i64 = 1 }, 0, 65535, ENC },
{ NULL },
}
#define NULL
Definition: coverity.c:32
static int loop
Definition: ffplay.c:336
#define OFFSET(x)
Definition: webpenc.c:193
#define ENC
Definition: webpenc.c:194

Definition at line 195 of file webpenc.c.

const AVClass webp_muxer_class
static
Initial value:
= {
.class_name = "WebP muxer",
.item_name = av_default_item_name,
.option = options,
}
#define LIBAVUTIL_VERSION_INT
Definition: version.h:85
const char * av_default_item_name(void *ptr)
Return the context name.
Definition: log.c:191
static const AVOption options[]
Definition: webpenc.c:195

Definition at line 201 of file webpenc.c.

AVOutputFormat ff_webp_muxer
Initial value:
= {
.name = "webp",
.long_name = NULL_IF_CONFIG_SMALL("WebP"),
.extensions = "webp",
.priv_data_size = sizeof(WebpContext),
.video_codec = AV_CODEC_ID_WEBP,
.priv_class = &webp_muxer_class,
}
static void write_packet(OutputFile *of, AVPacket *pkt, OutputStream *ost, int unqueue)
Definition: ffmpeg.c:679
static int flags
Definition: log.c:55
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
static int write_trailer(AVFormatContext *s1)
Definition: v4l2enc.c:94
static int webp_write_header(AVFormatContext *s)
Definition: webpenc.c:36
static const AVClass webp_muxer_class
Definition: webpenc.c:201
static int webp_write_packet(AVFormatContext *s, AVPacket *pkt)
Definition: webpenc.c:149
#define AVFMT_VARIABLE_FPS
Format allows variable fps.
Definition: avformat.h:472
static void write_header(FFV1Context *f)
Definition: ffv1enc.c:337
static int webp_write_trailer(AVFormatContext *s)
Definition: webpenc.c:168

Definition at line 207 of file webpenc.c.