libavformat/gif.c File Reference

#include "avformat.h"
#include "libavcodec/bitstream.h"

Go to the source code of this file.

Data Structures

struct  rgb_triplet
struct  GIFContext


#define GIF_CHUNKS   100


static int gif_image_write_header (ByteIOContext *pb, int width, int height, int loop_count, uint32_t *palette)
static unsigned char gif_clut_index (uint8_t r, uint8_t g, uint8_t b)
static int gif_image_write_image (ByteIOContext *pb, int x1, int y1, int width, int height, const uint8_t *buf, int linesize, int pix_fmt)
static int gif_write_header (AVFormatContext *s)
static int gif_write_video (AVFormatContext *s, AVCodecContext *enc, const uint8_t *buf, int size)
static int gif_write_packet (AVFormatContext *s, AVPacket *pkt)
static int gif_write_trailer (AVFormatContext *s)


static const rgb_triplet gif_clut [216]
AVOutputFormat gif_muxer

Define Documentation


Definition at line 46 of file gif.c.


Definition at line 55 of file gif.c.

#define GIF_CHUNKS   100

Definition at line 51 of file gif.c.

Function Documentation

static unsigned char gif_clut_index ( uint8_t  r,
uint8_t  g,
uint8_t  b 
) [inline, static]

Definition at line 176 of file gif.c.

static int gif_image_write_header ( ByteIOContext pb,
int  width,
int  height,
int  loop_count,
uint32_t *  palette 
) [static]

Definition at line 110 of file gif.c.

static int gif_image_write_image ( ByteIOContext pb,
int  x1,
int  y1,
int  width,
int  height,
const uint8_t *  buf,
int  linesize,
int  pix_fmt 
) [static]

Definition at line 182 of file gif.c.

static int gif_write_header ( AVFormatContext s  )  [static]

Definition at line 252 of file gif.c.

static int gif_write_packet ( AVFormatContext s,
AVPacket pkt 
) [static]

Definition at line 329 of file gif.c.

static int gif_write_trailer ( AVFormatContext s  )  [static]

Definition at line 338 of file gif.c.

static int gif_write_video ( AVFormatContext s,
AVCodecContext enc,
const uint8_t *  buf,
int  size 
) [static]

Definition at line 294 of file gif.c.

Referenced by gif_write_packet().

Variable Documentation

const rgb_triplet gif_clut[216] [static]

Definition at line 70 of file gif.c.

Initial value:

Definition at line 347 of file gif.c.

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