libavcodec/gifdec.c File Reference

#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, const uint8_t *buf, int buf_size)
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 gif_decoder


Define Documentation

#define GCE_DISPOSAL_BACKGROUND   2

Definition at line 31 of file gifdec.c.

#define GCE_DISPOSAL_INPLACE   1

Definition at line 30 of file gifdec.c.

#define GCE_DISPOSAL_NONE   0

Definition at line 29 of file gifdec.c.

#define GCE_DISPOSAL_RESTORE   3

Definition at line 32 of file gifdec.c.


Function Documentation

static av_cold int gif_decode_close ( AVCodecContext avctx  )  [static]

Definition at line 317 of file gifdec.c.

static int gif_decode_frame ( AVCodecContext avctx,
void *  data,
int *  data_size,
const uint8_t *  buf,
int  buf_size 
) [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 158 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 64 of file gifdec.c.

Referenced by gif_parse_next_image().


Variable Documentation

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

Definition at line 61 of file gifdec.c.

Referenced by gif_read_header1().

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

Definition at line 62 of file gifdec.c.

Referenced by gif_read_header1().

Initial value:

 {
    "gif",
    CODEC_TYPE_VIDEO,
    CODEC_ID_GIF,
    sizeof(GifState),
    gif_decode_init,
    NULL,
    gif_decode_close,
    gif_decode_frame,
    .long_name = NULL_IF_CONFIG_SMALL("GIF (Graphics Interchange Format)"),
}

Definition at line 327 of file gifdec.c.


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