GIF encoder.
More...
#include "libavutil/opt.h"
#include "libavutil/imgutils.h"
#include "avcodec.h"
#include "bytestream.h"
#include "internal.h"
#include "lzw.h"
#include "gif.h"
#include "put_bits.h"
Go to the source code of this file.
|
static int | pick_palette_entry (const uint8_t *buf, int linesize, int w, int h) |
|
static int | gif_image_write_image (AVCodecContext *avctx, uint8_t **bytestream, uint8_t *end, const uint32_t *palette, const uint8_t *buf, const int linesize, AVPacket *pkt) |
|
static av_cold int | gif_encode_init (AVCodecContext *avctx) |
|
static int | get_palette_transparency_index (const uint32_t *palette) |
|
static int | gif_encode_frame (AVCodecContext *avctx, AVPacket *pkt, const AVFrame *pict, int *got_packet) |
|
static int | gif_encode_close (AVCodecContext *avctx) |
|
#define BITSTREAM_WRITER_LE |
Definition at line 31 of file gif.c.
Enumerator |
---|
GF_OFFSETTING |
|
GF_TRANSDIFF |
|
Definition at line 56 of file gif.c.
static int pick_palette_entry |
( |
const uint8_t * |
buf, |
|
|
int |
linesize, |
|
|
int |
w, |
|
|
int |
h |
|
) |
| |
|
static |
static int get_palette_transparency_index |
( |
const uint32_t * |
palette | ) |
|
|
static |
Initial value:
Definition at line 334 of file gif.c.
Initial value:= {
.class_name = "GIF encoder",
}
#define LIBAVUTIL_VERSION_INT
static const AVOption gif_options[]
Definition at line 341 of file gif.c.
Initial value:= {
.name = "gif",
},
}
static av_cold int init(AVCodecContext *avctx)
static int gif_encode_close(AVCodecContext *avctx)
static const AVClass gif_class
packed RGB 1:2:1, 8bpp, (msb)1B 2G 1R(lsb)
8 bits with AV_PIX_FMT_RGB32 palette
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
packed RGB 1:2:1, 8bpp, (msb)1R 2G 1B(lsb)
packed RGB 3:3:2, 8bpp, (msb)2B 3G 3R(lsb)
static int gif_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *pict, int *got_packet)
static enum AVPixelFormat pix_fmts[]
packed RGB 3:3:2, 8bpp, (msb)2R 3G 3B(lsb)
static av_cold int gif_encode_init(AVCodecContext *avctx)
AVPixelFormat
Pixel format.
Definition at line 348 of file gif.c.