libavcodec/gifdec.c File Reference

#include "libavutil/imgutils.h"
#include "avcodec.h"
#include "bytestream.h"
#include "lzw.h"

Go to the source code of this file.

Data Structures

struct  GifState

Defines

#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)
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 *data_size, 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


Define Documentation

#define GCE_DISPOSAL_BACKGROUND   2

Definition at line 32 of file gifdec.c.

#define GCE_DISPOSAL_INPLACE   1

Definition at line 31 of file gifdec.c.

#define GCE_DISPOSAL_NONE   0

Definition at line 30 of file gifdec.c.

#define GCE_DISPOSAL_RESTORE   3

Definition at line 33 of file gifdec.c.


Function Documentation

static av_cold int gif_decode_close ( AVCodecContext avctx  )  [static]

Definition at line 318 of file gifdec.c.

static int gif_decode_frame ( AVCodecContext avctx,
void *  data,
int *  data_size,
AVPacket avpkt 
) [static]

Definition at line 284 of file gifdec.c.

static av_cold int gif_decode_init ( AVCodecContext avctx  )  [static]

Definition at line 271 of file gifdec.c.

static int gif_parse_next_image ( GifState s  )  [static]

Definition at line 247 of file gifdec.c.

Referenced by gif_decode_frame().

static int gif_read_extension ( GifState s  )  [static]

Definition at line 158 of file gifdec.c.

Referenced by gif_parse_next_image().

static int gif_read_header1 ( GifState s  )  [static]

Definition at line 202 of file gifdec.c.

Referenced by gif_decode_frame().

static int gif_read_image ( GifState s  )  [static]

Definition at line 65 of file gifdec.c.

Referenced by gif_parse_next_image().


Variable Documentation

Initial value:

 {
    .name           = "gif",
    .type           = AVMEDIA_TYPE_VIDEO,
    .id             = CODEC_ID_GIF,
    .priv_data_size = sizeof(GifState),
    .init           = gif_decode_init,
    .close          = gif_decode_close,
    .decode         = gif_decode_frame,
    .capabilities   = CODEC_CAP_DR1,
    .long_name = NULL_IF_CONFIG_SMALL("GIF (Graphics Interchange Format)"),
}

Definition at line 328 of file gifdec.c.

const uint8_t gif87a_sig[6] = "GIF87a" [static]

Definition at line 62 of file gifdec.c.

Referenced by gif_read_header1().

const uint8_t gif89a_sig[6] = "GIF89a" [static]

Definition at line 63 of file gifdec.c.

Referenced by gif_read_header1().


Generated on Fri Oct 26 02:43:47 2012 for FFmpeg by  doxygen 1.5.8