#include "avcodec.h"
#include "bytestream.h"
#include "internal.h"
#include "lzw.h"
#include "put_bits.h"
Go to the source code of this file.
Data Structures | |
struct | GIFContext |
Defines | |
#define | BITSTREAM_WRITER_LE |
Functions | |
static int | gif_image_write_header (AVCodecContext *avctx, uint8_t **bytestream, uint32_t *palette) |
static int | gif_image_write_image (AVCodecContext *avctx, uint8_t **bytestream, uint8_t *end, const uint8_t *buf, int linesize) |
static av_cold int | gif_encode_init (AVCodecContext *avctx) |
static int | gif_encode_frame (AVCodecContext *avctx, AVPacket *pkt, const AVFrame *pict, int *got_packet) |
static int | gif_encode_close (AVCodecContext *avctx) |
Variables | |
AVCodec | ff_gif_encoder |
static int gif_encode_close | ( | AVCodecContext * | avctx | ) | [static] |
static int gif_encode_frame | ( | AVCodecContext * | avctx, | |
AVPacket * | pkt, | |||
const AVFrame * | pict, | |||
int * | got_packet | |||
) | [static] |
static av_cold int gif_encode_init | ( | AVCodecContext * | avctx | ) | [static] |
static int gif_image_write_header | ( | AVCodecContext * | avctx, | |
uint8_t ** | bytestream, | |||
uint32_t * | palette | |||
) | [static] |
Initial value:
{ .name = "gif", .type = AVMEDIA_TYPE_VIDEO, .id = AV_CODEC_ID_GIF, .priv_data_size = sizeof(GIFContext), .init = gif_encode_init, .encode2 = gif_encode_frame, .close = gif_encode_close, .pix_fmts = (const 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)"), }