libavformat/gifdec.c File Reference

#include "avformat.h"

Go to the source code of this file.

Data Structures

struct  GifState

Defines

#define MAXBITS   12
#define SIZTABLE   (1<<MAXBITS)
#define GCE_DISPOSAL_NONE   0
#define GCE_DISPOSAL_INPLACE   1
#define GCE_DISPOSAL_BACKGROUND   2
#define GCE_DISPOSAL_RESTORE   3

Functions

static int gif_video_probe (AVProbeData *pd)
static void GLZWDecodeInit (GifState *s, int csize)
static int GetCode (GifState *s)
static int GLZWDecode (GifState *s, uint8_t *buf, int len)
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 int gif_read_header (AVFormatContext *s1, AVFormatParameters *ap)
static int gif_read_packet (AVFormatContext *s1, AVPacket *pkt)
static int gif_read_close (AVFormatContext *s1)

Variables

static const uint8_t gif87a_sig [6] = "GIF87a"
static const uint8_t gif89a_sig [6] = "GIF89a"
static const uint16_t mask [17]
AVInputFormat gif_demuxer


Define Documentation

#define GCE_DISPOSAL_BACKGROUND   2

Definition at line 30 of file gifdec.c.

#define GCE_DISPOSAL_INPLACE   1

Definition at line 29 of file gifdec.c.

#define GCE_DISPOSAL_NONE   0

Definition at line 28 of file gifdec.c.

#define GCE_DISPOSAL_RESTORE   3

Definition at line 31 of file gifdec.c.

#define MAXBITS   12

Definition at line 25 of file gifdec.c.

Referenced by GLZWDecode().

#define SIZTABLE   (1<<MAXBITS)

Definition at line 26 of file gifdec.c.


Function Documentation

static int GetCode ( GifState s  )  [inline, static]

Definition at line 167 of file gifdec.c.

Referenced by gif_read_image(), and GLZWDecode().

static int gif_parse_next_image ( GifState s  )  [static]

Definition at line 490 of file gifdec.c.

static int gif_read_close ( AVFormatContext s1  )  [static]

Definition at line 577 of file gifdec.c.

static int gif_read_extension ( GifState s  )  [static]

Definition at line 401 of file gifdec.c.

static int gif_read_header ( AVFormatContext s1,
AVFormatParameters ap 
) [static]

Definition at line 525 of file gifdec.c.

static int gif_read_header1 ( GifState s  )  [static]

Definition at line 447 of file gifdec.c.

static int gif_read_image ( GifState s  )  [static]

Definition at line 278 of file gifdec.c.

static int gif_read_packet ( AVFormatContext s1,
AVPacket pkt 
) [static]

Definition at line 558 of file gifdec.c.

static int gif_video_probe ( AVProbeData pd  )  [static]

Definition at line 93 of file gifdec.c.

static int GLZWDecode ( GifState s,
uint8_t buf,
int  len 
) [static]

Definition at line 201 of file gifdec.c.

Referenced by gif_read_image().

static void GLZWDecodeInit ( GifState s,
int  csize 
) [static]

Definition at line 145 of file gifdec.c.

Referenced by gif_read_image().


Variable Documentation

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

Definition at line 78 of file gifdec.c.

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

Definition at line 79 of file gifdec.c.

Initial value:

Definition at line 584 of file gifdec.c.

const uint16_t mask[17] [static]

Initial value:

{
    0x0000, 0x0001, 0x0003, 0x0007,
    0x000F, 0x001F, 0x003F, 0x007F,
    0x00FF, 0x01FF, 0x03FF, 0x07FF,
    0x0FFF, 0x1FFF, 0x3FFF, 0x7FFF, 0xFFFF
}

Definition at line 81 of file gifdec.c.


Generated on Thu Apr 2 07:16:12 2009 for ffmpeg by  doxygen 1.5.6