FFmpeg
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
gif.c File Reference
#include "avcodec.h"
#include "bytestream.h"
#include "internal.h"
#include "lzw.h"
#include "put_bits.h"

Go to the source code of this file.

Data Structures

struct  GIFContext
 

Macros

#define BITSTREAM_WRITER_LE
 

Functions

static int gif_image_write_header (AVCodecContext *avctx, uint8_t **bytestream, uint32_t *palette)
 
static int gif_image_write_image (AVCodecContext *avctx, uint8_t **bytestream, uint8_t *end, const uint8_t *buf, int linesize)
 
static av_cold int gif_encode_init (AVCodecContext *avctx)
 
static int gif_encode_frame (AVCodecContext *avctx, AVPacket *pkt, const AVFrame *pict, int *got_packet)
 
static int gif_encode_close (AVCodecContext *avctx)
 

Variables

AVCodec ff_gif_encoder
 

Macro Definition Documentation

#define BITSTREAM_WRITER_LE

Definition at line 44 of file gif.c.

Function Documentation

static int gif_image_write_header ( AVCodecContext avctx,
uint8_t **  bytestream,
uint32_t *  palette 
)
static

Definition at line 55 of file gif.c.

Referenced by gif_encode_frame().

static int gif_image_write_image ( AVCodecContext avctx,
uint8_t **  bytestream,
uint8_t end,
const uint8_t buf,
int  linesize 
)
static

Definition at line 93 of file gif.c.

Referenced by gif_encode_frame().

static av_cold int gif_encode_init ( AVCodecContext avctx)
static

Definition at line 137 of file gif.c.

static int gif_encode_frame ( AVCodecContext avctx,
AVPacket pkt,
const AVFrame pict,
int *  got_packet 
)
static

Definition at line 157 of file gif.c.

static int gif_encode_close ( AVCodecContext avctx)
static

Definition at line 183 of file gif.c.

Variable Documentation

AVCodec ff_gif_encoder
Initial value:
= {
.name = "gif",
.priv_data_size = sizeof(GIFContext),
.encode2 = gif_encode_frame,
.pix_fmts = (const enum AVPixelFormat[]){
},
.long_name = NULL_IF_CONFIG_SMALL("GIF (Graphics Interchange Format)"),
}

Definition at line 192 of file gif.c.