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 | GIFContext |
Defines |
#define | BITSTREAM_WRITER_LE |
#define | GIF_CHUNKS 100 |
Functions |
static int | gif_image_write_header (uint8_t **bytestream, int width, int height, uint32_t *palette) |
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 av_cold int | gif_encode_init (AVCodecContext *avctx) |
static int | gif_encode_frame (AVCodecContext *avctx, unsigned char *outbuf, int buf_size, void *data) |
Variables |
AVCodec | gif_encoder |
Define Documentation
#define BITSTREAM_WRITER_LE |
Definition at line 49 of file gif.c.
Function Documentation
static int gif_encode_frame |
( |
AVCodecContext * |
avctx, |
|
|
unsigned char * |
outbuf, |
|
|
int |
buf_size, |
|
|
void * |
data | |
|
) |
| | [static] |
static av_cold int gif_encode_init |
( |
AVCodecContext * |
avctx |
) |
[static] |
static int gif_image_write_header |
( |
uint8_t ** |
bytestream, |
|
|
int |
width, |
|
|
int |
height, |
|
|
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] |
Variable Documentation
Initial value:
{
"gif",
CODEC_TYPE_VIDEO,
CODEC_ID_GIF,
sizeof(GIFContext),
gif_encode_init,
gif_encode_frame,
NULL,
.pix_fmts= (enum PixelFormat[]){PIX_FMT_RGB8, PIX_FMT_BGR8, PIX_FMT_RGB4_BYTE, PIX_FMT_BGR4_BYTE, PIX_FMT_GRAY8, PIX_FMT_PAL8, PIX_FMT_NONE},
.long_name= NULL_IF_CONFIG_SMALL("GIF (Graphics Interchange Format)"),
}
Definition at line 169 of file gif.c.