libansilove

Library for converting ANSI, ASCII, and other formats to PNG
Log | Files | Refs | README | LICENSE

commit 5f1d185526c178eb64228db81cddc0725b9bfa40
parent 8d8b02b52ec8f77ced70afbd4ab6861e9b67b272
Author: Frederic Cambus <fred@statdns.com>
Date:   Mon, 31 Dec 2018 11:15:39 +0100

Document the ansilove_ctx and ansilove_options structures

Diffstat:
Mlibansilove.3 | 32++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+), 0 deletions(-)

diff --git a/libansilove.3 b/libansilove.3 @@ -39,6 +39,38 @@ images, supporting ANSI (.ANS), PCBoard (.PCB), Binary (.BIN), Artworx It creates size optimized 4-bit PNG files and supports 80x25 and 80x50 PC fonts (including all the 14 MS-DOS charsets), Amiga fonts, and iCE colors. +.Pp +All library functions take a context, defined as an +.Em ansilove_ctx +structure in +.Pa include/ansilove.h : +.Bd -literal +struct ansilove_ctx { + uint8_t *buffer; + size_t maplen; + size_t length; + struct ansilove_png png; + uint8_t error; +}; +.Ed +.Pp +Options are passed to the different loaders using the +.Em ansilove_options +structure in +.Pa include/ansilove.h : +.Bd -literal +struct ansilove_options { + bool diz; + bool dos; + bool icecolors; + bool truecolor; + int16_t columns; + uint8_t font; + uint8_t bits; + uint8_t mode; + uint8_t scale_factor; +}; +.Ed .Sh AUTHORS .An -nosplit .Nm