121 if ((ret =
flush(s, 0, pkt->
pts)) < 0)
144 #define OFFSET(x) offsetof(WebpContext, x)
145 #define ENC AV_OPT_FLAG_ENCODING_PARAM
147 {
"loop",
"Number of times to loop the output: 0 - infinite loop",
OFFSET(
loop),
161 .extensions =
"webp",
167 .priv_class = &webp_muxer_class,
void avio_wl16(AVIOContext *s, unsigned int val)
void av_free_packet(AVPacket *pkt)
Free a packet.
#define LIBAVUTIL_VERSION_INT
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)
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 duration
Duration of this packet in AVStream->time_base units, 0 if unknown.
#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. ...
AVCodecContext * codec
Codec context associated with this stream.
unsigned int nb_streams
Number of elements in AVFormatContext.streams.
int width
picture width / height.
static int write_trailer(AVFormatContext *s1)
static int webp_write_header(AVFormatContext *s)
static const AVClass webp_muxer_class
AVIOContext * pb
I/O context.
void avio_w8(AVIOContext *s, int b)
int av_copy_packet(AVPacket *dst, const AVPacket *src)
Copy packet, including contents.
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)
static int webp_write_trailer(AVFormatContext *s)
This structure stores compressed data.
static int write_packet(AVFormatContext *s1, AVPacket *pkt)
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.