libavformat/gif.c File Reference
#include "avformat.h"
#include "libavutil/log.h"
#include "libavutil/opt.h"
#include "libavcodec/put_bits.h"
Go to the source code of this file.
|
Data Structures |
struct | rgb_triplet |
struct | GIFContext |
Defines |
#define | BITSTREAM_WRITER_LE |
#define | GIF_CHUNKS 100 |
#define | GIF_ADD_APP_HEADER |
#define | OFFSET(x) offsetof(GIFContext, x) |
#define | ENC AV_OPT_FLAG_ENCODING_PARAM |
Functions |
static int | gif_image_write_header (AVIOContext *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 (AVIOContext *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) |
Variables |
static const rgb_triplet | gif_clut [216] |
static const AVOption | options [] |
static const AVClass | gif_muxer_class |
AVOutputFormat | ff_gif_muxer |
Define Documentation
#define BITSTREAM_WRITER_LE |
Definition at line 48 of file gif.c.
#define ENC AV_OPT_FLAG_ENCODING_PARAM |
#define GIF_ADD_APP_HEADER |
Definition at line 59 of file gif.c.
Function Documentation
static int gif_image_write_header |
( |
AVIOContext * |
pb, |
|
|
int |
width, |
|
|
int |
height, |
|
|
int |
loop_count, |
|
|
uint32_t * |
palette | |
|
) |
| | [static] |
Variable Documentation
Initial value:
{
.name = "gif",
.long_name = NULL_IF_CONFIG_SMALL("GIF Animation"),
.mime_type = "image/gif",
.extensions = "gif",
.priv_data_size = sizeof(GIFContext),
.audio_codec = AV_CODEC_ID_NONE,
.video_codec = AV_CODEC_ID_RAWVIDEO,
.write_header = gif_write_header,
.write_packet = gif_write_packet,
.write_trailer = gif_write_trailer,
.priv_class = &gif_muxer_class,
}
Definition at line 369 of file gif.c.
Definition at line 81 of file gif.c.
Initial value:
Definition at line 362 of file gif.c.
Initial value:
Definition at line 356 of file gif.c.