| FFmpeg
    | 
#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 "codec_internal.h"#include "internal.h"Go to the source code of this file.
| Data Structures | |
| struct | AnsiContext | 
| Macros | |
| #define | ATTR_BOLD 0x01 | 
| Bold/Bright-foreground (mode 1)  More... | |
| #define | ATTR_FAINT 0x02 | 
| Faint (mode 2)  More... | |
| #define | ATTR_ITALICS 0x04 | 
| Italics (mode 3)  More... | |
| #define | ATTR_UNDERLINE 0x08 | 
| Underline (mode 4)  More... | |
| #define | ATTR_BLINK 0x10 | 
| Blink/Bright-background (mode 5)  More... | |
| #define | ATTR_REVERSE 0x40 | 
| Reverse (mode 7)  More... | |
| #define | ATTR_CONCEALED 0x80 | 
| Concealed (mode 8)  More... | |
| #define | DEFAULT_FG_COLOR 7 | 
| CGA color index.  More... | |
| #define | DEFAULT_BG_COLOR 0 | 
| #define | DEFAULT_SCREEN_MODE 3 | 
| 80x25  More... | |
| #define | FONT_WIDTH 8 | 
| Font width.  More... | |
| #define | MAX_NB_ARGS 4 | 
| #define | COLOR(x) ((x) * 40 + 55) | 
| #define | GRAY(x) ((x) * 10 + 8) | 
| Functions | |
| static av_cold int | decode_init (AVCodecContext *avctx) | 
| static void | set_palette (uint32_t *pal) | 
| static void | hscroll (AVCodecContext *avctx) | 
| static void | erase_line (AVCodecContext *avctx, int xoffset, int xlength) | 
| static void | erase_screen (AVCodecContext *avctx) | 
| static void | draw_char (AVCodecContext *avctx, int c) | 
| Draw character to screen.  More... | |
| static int | execute_code (AVCodecContext *avctx, int c) | 
| Execute ANSI escape code.  More... | |
| static int | decode_frame (AVCodecContext *avctx, AVFrame *rframe, int *got_frame, AVPacket *avpkt) | 
| static av_cold int | decode_close (AVCodecContext *avctx) | 
| Variables | |
| static const uint8_t | ansi_to_cga [16] | 
| map ansi color index to cga palette index  More... | |
| static const FFCodecDefault | ansi_defaults [] | 
| const FFCodec | ff_ansi_decoder | 
ASCII/ANSI art decoder
Definition in file ansi.c.
| #define COLOR | ( | x | ) | ((x) * 40 + 55) | 
| #define GRAY | ( | x | ) | ((x) * 10 + 8) | 
| 
 | static | 
| 
 | static | 
Definition at line 107 of file ansi.c.
Referenced by decode_frame(), and execute_code().
| 
 | static | 
Definition at line 122 of file ansi.c.
Referenced by decode_frame(), and draw_char().
| 
 | static | 
Definition at line 142 of file ansi.c.
Referenced by execute_code().
| 
 | static | 
Definition at line 151 of file ansi.c.
Referenced by decode_frame(), and execute_code().
| 
 | static | 
| 
 | static | 
Execute ANSI escape code.
Definition at line 190 of file ansi.c.
Referenced by decode_frame().
| 
 | static | 
| 
 | static | 
| 
 | static | 
map ansi color index to cga palette index
Definition at line 51 of file ansi.c.
Referenced by execute_code().
| 
 | static | 
| const FFCodec ff_ansi_decoder | 
 1.8.17
 1.8.17