FFmpeg
Classes | Macros | Typedefs | Variables
gifdec.c File Reference

GIF demuxer. More...

#include "avformat.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/opt.h"
#include "internal.h"
#include "libavcodec/gif.h"

Classes

struct  GIFDemuxContext
 

Macros

#define GIF_DEFAULT_DELAY   10
 Major web browsers display gifs at ~10-15fps when rate is not explicitly set or have too low values. More...
 
#define GIF_MIN_DELAY   2
 By default delay values less than this threshold considered to be invalid.
 

Typedefs

typedef struct GIFDemuxContext GIFDemuxContext
 

Variables

AVInputFormat ff_gif_demuxer
 

Detailed Description

GIF demuxer.

Macro Definition Documentation

§ GIF_DEFAULT_DELAY

#define GIF_DEFAULT_DELAY   10

Major web browsers display gifs at ~10-15fps when rate is not explicitly set or have too low values.

We assume default rate to be 10. Default delay = 100hundredths of second / 10fps = 10hos per frame.

Variable Documentation

§ ff_gif_demuxer

AVInputFormat ff_gif_demuxer
Initial value:
= {
.name = "gif",
.long_name = NULL_IF_CONFIG_SMALL("CompuServe Graphics Interchange Format (GIF)"),
.priv_data_size = sizeof(GIFDemuxContext),
.read_probe = gif_probe,
.read_header = gif_read_header,
.read_packet = gif_read_packet,
.priv_class = &demuxer_class,
}
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
Definition: gifdec.c:33
#define AVFMT_GENERIC_INDEX
Use generic index building code.
Definition: avformat.h:470