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
 

Typedefs

typedef struct GifState GifState
 

Functions

static int gif_read_image (GifState *s)
 
static int gif_read_extension (GifState *s)
 
static int gif_read_header1 (GifState *s)
 
static int gif_parse_next_image (GifState *s)
 
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_BACKGROUND   2

Definition at line 33 of file gifdec.c.

#define GCE_DISPOSAL_INPLACE   1

Definition at line 32 of file gifdec.c.

#define GCE_DISPOSAL_NONE   0

Definition at line 31 of file gifdec.c.

#define GCE_DISPOSAL_RESTORE   3

Definition at line 34 of file gifdec.c.

Typedef Documentation

typedef struct GifState GifState

Function Documentation

static av_cold int gif_decode_close ( AVCodecContext avctx)
static

Definition at line 320 of file gifdec.c.

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

Definition at line 285 of file gifdec.c.

static av_cold int gif_decode_init ( AVCodecContext avctx)
static

Definition at line 272 of file gifdec.c.

static int gif_parse_next_image ( GifState s)
static

Definition at line 248 of file gifdec.c.

Referenced by gif_decode_frame().

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_read_image ( GifState s)
static

Definition at line 66 of file gifdec.c.

Referenced by gif_parse_next_image().

Variable Documentation

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

Definition at line 330 of file gifdec.c.

const uint8_t gif87a_sig[6] = "GIF87a"
static

Definition at line 63 of file gifdec.c.

Referenced by gif_read_header1().

const uint8_t gif89a_sig[6] = "GIF89a"
static

Definition at line 64 of file gifdec.c.

Referenced by gif_read_header1().