Libav
Data Structures | Macros | Functions | Variables
gifdec.c File Reference
#include "libavutil/imgutils.h"
#include "avcodec.h"
#include "bytestream.h"
#include "internal.h"
#include "lzw.h"

Go to the source code of this file.

Data Structures

struct  GifState

Macros

#define GCE_DISPOSAL_NONE   0
#define GCE_DISPOSAL_INPLACE   1
#define GCE_DISPOSAL_BACKGROUND   2
#define GCE_DISPOSAL_RESTORE   3

Functions

static int gif_read_image (GifState *s, AVFrame *frame)
static int gif_read_extension (GifState *s)
static int gif_read_header1 (GifState *s)
static int gif_parse_next_image (GifState *s, AVFrame *frame)
static av_cold int gif_decode_init (AVCodecContext *avctx)
static int gif_decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
static av_cold int gif_decode_close (AVCodecContext *avctx)

Variables

static const uint8_t gif87a_sig [6] = "GIF87a"
static const uint8_t gif89a_sig [6] = "GIF89a"
AVCodec ff_gif_decoder

Macro Definition Documentation

#define GCE_DISPOSAL_NONE   0

Definition at line 29 of file gifdec.c.

#define GCE_DISPOSAL_INPLACE   1

Definition at line 30 of file gifdec.c.

#define GCE_DISPOSAL_BACKGROUND   2

Definition at line 31 of file gifdec.c.

#define GCE_DISPOSAL_RESTORE   3

Definition at line 32 of file gifdec.c.

Function Documentation

static int gif_read_image ( GifState s,
AVFrame frame 
)
static

Definition at line 62 of file gifdec.c.

Referenced by gif_parse_next_image().

static int gif_read_extension ( GifState s)
static

Definition at line 159 of file gifdec.c.

Referenced by gif_parse_next_image().

static int gif_read_header1 ( GifState s)
static

Definition at line 203 of file gifdec.c.

Referenced by gif_decode_frame().

static int gif_parse_next_image ( GifState s,
AVFrame frame 
)
static

Definition at line 248 of file gifdec.c.

Referenced by gif_decode_frame().

static av_cold int gif_decode_init ( AVCodecContext avctx)
static

Definition at line 273 of file gifdec.c.

static int gif_decode_frame ( AVCodecContext avctx,
void data,
int *  got_frame,
AVPacket avpkt 
)
static

Definition at line 283 of file gifdec.c.

static av_cold int gif_decode_close ( AVCodecContext avctx)
static

Definition at line 314 of file gifdec.c.

Variable Documentation

const uint8_t gif87a_sig[6] = "GIF87a"
static

Definition at line 59 of file gifdec.c.

Referenced by gif_read_header1().

const uint8_t gif89a_sig[6] = "GIF89a"
static

Definition at line 60 of file gifdec.c.

Referenced by gif_read_header1().

AVCodec ff_gif_decoder
Initial value:
{
.name = "gif",
.long_name = NULL_IF_CONFIG_SMALL("GIF (Graphics Interchange Format)"),
.priv_data_size = sizeof(GifState),
.capabilities = CODEC_CAP_DR1,
}

Definition at line 322 of file gifdec.c.