FFmpeg
Classes | Macros | Typedefs | Variables
flashsv2enc.c File Reference

Flash Screen Video Version 2 encoder. More...

#include <stdio.h>
#include <stdlib.h>
#include <zlib.h>
#include "libavutil/imgutils.h"
#include "avcodec.h"
#include "internal.h"
#include "put_bits.h"
#include "bytestream.h"

Classes

struct  Block
 
struct  Palette
 
struct  FlashSV2Context
 

Macros

#define HAS_IFRAME_IMAGE   0x02
 
#define HAS_PALLET_INFO   0x01
 
#define COLORSPACE_BGR   0x00
 
#define COLORSPACE_15_7   0x10
 
#define HAS_DIFF_BLOCKS   0x04
 
#define ZLIB_PRIME_COMPRESS_CURRENT   0x02
 
#define ZLIB_PRIME_COMPRESS_PREVIOUS   0x01
 
#define FLASHSV2_DUMB
 
#define ABSDIFF(a, b)   (abs((int)(a)-(int)(b)))
 

Typedefs

typedef struct Block Block
 
typedef struct Palette Palette
 
typedef struct FlashSV2Context FlashSV2Context
 

Variables

AVCodec ff_flashsv2_encoder
 

Detailed Description

Flash Screen Video Version 2 encoder.

Author
Joshua Warner

Variable Documentation

§ ff_flashsv2_encoder

AVCodec ff_flashsv2_encoder
Initial value:
= {
.name = "flashsv2",
.long_name = NULL_IF_CONFIG_SMALL("Flash Screen Video Version 2"),
.type = AVMEDIA_TYPE_VIDEO,
.id = AV_CODEC_ID_FLASHSV2,
.priv_data_size = sizeof(FlashSV2Context),
.init = flashsv2_encode_init,
.encode2 = flashsv2_encode_frame,
.close = flashsv2_encode_end,
.pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_BGR24, AV_PIX_FMT_NONE },
}
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
Definition: flashsv2enc.c:86
packed RGB 8:8:8, 24bpp, BGRBGR...
Definition: pixfmt.h:65
AVPixelFormat
Pixel format.
Definition: pixfmt.h:60