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

ASCII/ANSI art decoder. More...

#include "libavutil/common.h"
#include "libavutil/frame.h"
#include "libavutil/lfg.h"
#include "libavutil/xga_font_data.h"
#include "avcodec.h"
#include "cga_data.h"
#include "internal.h"

Classes

struct  AnsiContext
 

Macros

#define ATTR_BOLD   0x01
 Bold/Bright-foreground (mode 1)
 
#define ATTR_FAINT   0x02
 Faint (mode 2)
 
#define ATTR_UNDERLINE   0x08
 Underline (mode 4)
 
#define ATTR_BLINK   0x10
 Blink/Bright-background (mode 5)
 
#define ATTR_REVERSE   0x40
 Reverse (mode 7)
 
#define ATTR_CONCEALED   0x80
 Concealed (mode 8)
 
#define DEFAULT_FG_COLOR   7
 CGA color index.
 
#define DEFAULT_BG_COLOR   0
 
#define DEFAULT_SCREEN_MODE   3
 80x25
 
#define FONT_WIDTH   8
 Font width.
 
#define MAX_NB_ARGS   4
 
#define COLOR(x)   ((x) * 40 + 55)
 
#define GRAY(x)   ((x) * 10 + 8)
 

Typedefs

typedef struct AnsiContext AnsiContext
 

Variables

AVCodec ff_ansi_decoder
 

Detailed Description

ASCII/ANSI art decoder.

Variable Documentation

§ ff_ansi_decoder

AVCodec ff_ansi_decoder
Initial value:
= {
.name = "ansi",
.long_name = NULL_IF_CONFIG_SMALL("ASCII/ANSI art"),
.type = AVMEDIA_TYPE_VIDEO,
.id = AV_CODEC_ID_ANSI,
.priv_data_size = sizeof(AnsiContext),
.init = decode_init,
.close = decode_close,
.decode = decode_frame,
.capabilities = AV_CODEC_CAP_DR1,
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
}
#define FF_CODEC_CAP_INIT_THREADSAFE
The codec does not modify any global variables in the init function, allowing to call the init functi...
Definition: internal.h:40
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
Definition: ansi.c:53
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:959