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) |
|
◆ BITSTREAM_WRITER_LE
#define BITSTREAM_WRITER_LE |
Definition at line 31 of file gif.c.
◆ OFFSET
◆ FLAGS
◆ anonymous enum
Enumerator |
---|
GF_OFFSETTING | |
GF_TRANSDIFF | |
Definition at line 56 of file gif.c.
◆ pick_palette_entry()
◆ gif_image_write_image()
◆ gif_encode_init()
◆ get_palette_transparency_index()
static int get_palette_transparency_index |
( |
const uint32_t * |
palette | ) |
|
|
static |
◆ gif_encode_frame()
◆ gif_encode_close()
◆ gif_options
Initial value:
Definition at line 334 of file gif.c.
◆ gif_class
Initial value:= {
.class_name = "GIF encoder",
}
#define LIBAVUTIL_VERSION_INT
const char * av_default_item_name(void *ptr)
Return the context name.
static const AVOption gif_options[]
Definition at line 341 of file gif.c.
◆ ff_gif_encoder
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.