65 if (pkt->
size < skip + 4)
68 flags |= pkt->
data[skip + 4 + 4];
159 if ((ret =
flush(s, 0, pkt->
pts)) < 0)
193 #define OFFSET(x) offsetof(WebpContext, x)
194 #define ENC AV_OPT_FLAG_ENCODING_PARAM
196 {
"loop",
"Number of times to loop the output: 0 - infinite loop",
OFFSET(
loop),
210 .extensions =
"webp",
216 .priv_class = &webp_muxer_class,
static void write_packet(OutputFile *of, AVPacket *pkt, OutputStream *ost, int unqueue)
void avio_wl16(AVIOContext *s, unsigned int val)
#define LIBAVUTIL_VERSION_INT
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
int64_t avio_seek(AVIOContext *s, int64_t offset, int whence)
fseek() equivalent for AVIOContext.
const char * class_name
The name of the class; usually it is the same name as the context structure type to which the AVClass...
void avio_wl32(AVIOContext *s, unsigned int val)
int64_t duration
Duration of this packet in AVStream->time_base units, 0 if unknown.
AVStream ** streams
A list of all streams in the file.
static av_always_inline int64_t avio_tell(AVIOContext *s)
ftell() equivalent for AVIOContext.
void avio_write(AVIOContext *s, const unsigned char *buf, int size)
int av_packet_ref(AVPacket *dst, const AVPacket *src)
Setup a new reference to the data described by a given packet.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
static const AVOption options[]
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
int using_webp_anim_encoder
unsigned int nb_streams
Number of elements in AVFormatContext.streams.
static int write_trailer(AVFormatContext *s1)
static int webp_write_header(AVFormatContext *s)
static int is_animated_webp_packet(AVPacket *pkt)
static const AVClass webp_muxer_class
AVIOContext * pb
I/O context.
void avio_w8(AVIOContext *s, int b)
void av_packet_unref(AVPacket *pkt)
Wipe the packet.
Describe the class of an AVClass context structure.
void avio_wl24(AVIOContext *s, unsigned int val)
static int flush(AVFormatContext *s, int trailer, int64_t pts)
static int64_t pts
Global timestamp for the audio frames.
static int webp_write_packet(AVFormatContext *s, AVPacket *pkt)
AVOutputFormat ff_webp_muxer
void * priv_data
Format private data.
static void write_header(FFV1Context *f)
AVCodecParameters * codecpar
static int webp_write_trailer(AVFormatContext *s)
uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_RL32
This structure stores compressed data.
int64_t pts
Presentation timestamp in AVStream->time_base units; the time at which the decompressed packet will b...
#define AV_NOPTS_VALUE
Undefined timestamp value.