#include "libavutil/imgutils.h"
#include "libavutil/opt.h"
#include "avcodec.h"
#include "bytestream.h"
#include "internal.h"
#include "lzw.h"
#include "gif.h"
Go to the source code of this file.
|
static void | gif_read_palette (GifState *s, uint32_t *pal, int nb) |
|
static void | gif_fill (AVFrame *picture, uint32_t color) |
|
static void | gif_fill_rect (AVFrame *picture, uint32_t color, int l, int t, int w, int h) |
|
static void | gif_copy_img_rect (const uint32_t *src, uint32_t *dst, int linesize, int l, int t, int w, int h) |
|
static int | gif_read_image (GifState *s, AVFrame *frame) |
|
static int | gif_read_extension (GifState *s) |
|
static int | gif_read_header1 (GifState *s) |
|
static int | gif_parse_next_image (GifState *s, AVFrame *frame) |
|
static av_cold int | gif_decode_init (AVCodecContext *avctx) |
|
static int | gif_decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) |
|
static av_cold int | gif_decode_close (AVCodecContext *avctx) |
|
#define GIF_TRANSPARENT_COLOR 0x00ffffff |
static void gif_read_palette |
( |
GifState * |
s, |
|
|
uint32_t * |
pal, |
|
|
int |
nb |
|
) |
| |
|
static |
static void gif_fill |
( |
AVFrame * |
picture, |
|
|
uint32_t |
color |
|
) |
| |
|
static |
static void gif_fill_rect |
( |
AVFrame * |
picture, |
|
|
uint32_t |
color, |
|
|
int |
l, |
|
|
int |
t, |
|
|
int |
w, |
|
|
int |
h |
|
) |
| |
|
static |
static void gif_copy_img_rect |
( |
const uint32_t * |
src, |
|
|
uint32_t * |
dst, |
|
|
int |
linesize, |
|
|
int |
l, |
|
|
int |
t, |
|
|
int |
w, |
|
|
int |
h |
|
) |
| |
|
static |
static int gif_read_extension |
( |
GifState * |
s | ) |
|
|
static |
static int gif_read_header1 |
( |
GifState * |
s | ) |
|
|
static |
Initial value:= {
{ "trans_color", "color value (ARGB) that is used instead of transparent color",
}
#define GIF_TRANSPARENT_COLOR
#define AV_OPT_FLAG_VIDEO_PARAM
#define AV_OPT_FLAG_DECODING_PARAM
a generic parameter which can be set by the user for demuxing or decoding
Definition at line 532 of file gifdec.c.
Initial value:= {
.class_name = "gif decoder",
}
#define LIBAVUTIL_VERSION_INT
static const AVOption options[]
Definition at line 540 of file gifdec.c.
Initial value:= {
.name = "gif",
}
static av_cold int init(AVCodecContext *avctx)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static int gif_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
static av_cold int gif_decode_close(AVCodecContext *avctx)
static int decode(AVCodecContext *avctx, void *data, int *got_sub, AVPacket *avpkt)
static av_cold int gif_decode_init(AVCodecContext *avctx)
static const AVClass decoder_class
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition at line 548 of file gifdec.c.