libavcodec/gif.c File Reference
#include "avcodec.h"
#include "bytestream.h"
#include "bitstream.h"
Go to the source code of this file.
|
Data Structures |
struct | rgb_triplet |
struct | GIFContext |
Defines |
#define | GIF_CHUNKS 100 |
#define | GIF_ADD_APP_HEADER |
Functions |
static void | gif_put_bits_rev (PutBitContext *s, int n, unsigned int value) |
static void | gif_flush_put_bits_rev (PutBitContext *s) |
static int | gif_image_write_header (uint8_t **bytestream, 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 (uint8_t **bytestream, int x1, int y1, int width, int height, const uint8_t *buf, int linesize, int pix_fmt) |
static int | gif_encode_init (AVCodecContext *avctx) |
static int | gif_encode_frame (AVCodecContext *avctx, unsigned char *outbuf, int buf_size, void *data) |
Variables |
static const rgb_triplet | gif_clut [216] |
AVCodec | gif_encoder |
Define Documentation
#define GIF_ADD_APP_HEADER |
Definition at line 53 of file gif.c.
Function Documentation
static int gif_encode_frame |
( |
AVCodecContext * |
avctx, |
|
|
unsigned char * |
outbuf, |
|
|
int |
buf_size, |
|
|
void * |
data | |
|
) |
| | [static] |
static void gif_flush_put_bits_rev |
( |
PutBitContext * |
s |
) |
[static] |
static int gif_image_write_header |
( |
uint8_t ** |
bytestream, |
|
|
int |
width, |
|
|
int |
height, |
|
|
int |
loop_count, |
|
|
uint32_t * |
palette | |
|
) |
| | [static] |
static int gif_image_write_image |
( |
uint8_t ** |
bytestream, |
|
|
int |
x1, |
|
|
int |
y1, |
|
|
int |
width, |
|
|
int |
height, |
|
|
const uint8_t * |
buf, |
|
|
int |
linesize, |
|
|
int |
pix_fmt | |
|
) |
| | [static] |
static void gif_put_bits_rev |
( |
PutBitContext * |
s, |
|
|
int |
n, |
|
|
unsigned int |
value | |
|
) |
| | [static] |
Variable Documentation
Definition at line 68 of file gif.c.
Initial value:
Definition at line 335 of file gif.c.