Animated WebP demuxer.
More...
Go to the source code of this file.
Animated WebP demuxer.
Definition in file webp_anim_dec.c.
◆ VP8X_FLAG_ANIMATION
| #define VP8X_FLAG_ANIMATION 0x02 |
◆ VP8X_FLAG_XMP_METADATA
| #define VP8X_FLAG_XMP_METADATA 0x04 |
◆ VP8X_FLAG_EXIF_METADATA
| #define VP8X_FLAG_EXIF_METADATA 0x08 |
◆ VP8X_FLAG_ALPHA
| #define VP8X_FLAG_ALPHA 0x10 |
◆ VP8X_FLAG_ICC
| #define VP8X_FLAG_ICC 0x20 |
◆ WEBP_DEFAULT_DELAY
| #define WEBP_DEFAULT_DELAY 100 |
Major web browsers display WebPs at ~10-15fps when rate is not explicitly set or have too low values.
We assume default rate to be 10. Default delay = 1000 microseconds / 10fps = 100 milliseconds per frame.
Definition at line 82 of file webp_anim_dec.c.
◆ WEBP_MIN_DELAY
| #define WEBP_MIN_DELAY 10 |
By default delay values less than this threshold considered to be invalid.
Definition at line 86 of file webp_anim_dec.c.
◆ webp_anim_probe()
◆ webp_anim_read_header()
◆ webp_anim_read_packet()
◆ options
Initial value:= {
}
#define AV_OPT_FLAG_DECODING_PARAM
A generic parameter which can be set by the user for demuxing or decoding.
@ AV_OPT_TYPE_INT
Underlying C type is int.
@ AV_OPT_TYPE_BOOL
Underlying C type is int.
#define WEBP_DEFAULT_DELAY
Major web browsers display WebPs at ~10-15fps when rate is not explicitly set or have too low values.
#define WEBP_MIN_DELAY
By default delay values less than this threshold considered to be invalid.
Definition at line 349 of file webp_anim_dec.c.
◆ demuxer_class
Initial value:= {
.class_name = "Animated WebP demuxer",
}
const char * av_default_item_name(void *ptr)
Return the context name.
#define LIBAVUTIL_VERSION_INT
@ AV_CLASS_CATEGORY_DEMUXER
Definition at line 358 of file webp_anim_dec.c.
◆ ff_webp_anim_demuxer
Initial value:= {
.p.name = "webp_anim",
}
static const AVClass demuxer_class
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
static int read_probe(const AVProbeData *p)
static int read_header(FFV1Context *f, RangeCoder *c)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
static int webp_anim_probe(const AVProbeData *p)
static int webp_anim_read_header(AVFormatContext *s)
static int webp_anim_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition at line 366 of file webp_anim_dec.c.