Functions | |
void | vbi_draw_vt_page_region (vbi_page *pg, vbi_pixfmt fmt, void *canvas, int rowstride, int column, int row, int width, int height, int reveal, int flash_on) |
_vbi_inline void | vbi_draw_vt_page (vbi_page *pg, vbi_pixfmt fmt, void *canvas, int reveal, int flash_on) |
void | vbi_draw_cc_page_region (vbi_page *pg, vbi_pixfmt fmt, void *canvas, int rowstride, int column, int row, int width, int height) |
_vbi_inline void | vbi_draw_cc_page (vbi_page *pg, vbi_pixfmt fmt, void *canvas) |
void | vbi_get_max_rendered_size (int *w, int *h) |
void | vbi_get_vt_cell_size (int *w, int *h) |
int | vbi_print_page_region (vbi_page *pg, char *buf, int size, const char *format, vbi_bool table, vbi_bool ltr, int column, int row, int width, int height) |
_vbi_inline int | vbi_print_page (vbi_page *pg, char *buf, int size, const char *format, vbi_bool table, vbi_bool ltr) |
void | vbi_set_brightness (vbi_decoder *vbi, int brightness) |
void | vbi_set_contrast (vbi_decoder *vbi, int contrast) |
void vbi_draw_vt_page_region | ( | vbi_page * | pg, | |
vbi_pixfmt | fmt, | |||
void * | canvas, | |||
int | rowstride, | |||
int | column, | |||
int | row, | |||
int | width, | |||
int | height, | |||
int | reveal, | |||
int | flash_on | |||
) |
pg | Source page. | |
fmt | Target format. For now only VBI_PIXFMT_RGBA32_LE (vbi_rgba) and VBI_PIXFMT_PAL8 (1-byte palette indices) are permitted. | |
canvas | Pointer to destination image (depending on the format, either an array of vbi_rgba or uint8_t), this must be at least rowstride * height * 10 bytes large. | |
rowstride | canvas byte distance from line to line. If this is -1, pg->columns * 12 * sizeof(vbi_rgba) bytes will be assumed. | |
column | First source column, 0 ... pg->columns - 1. | |
row | First source row, 0 ... pg->rows - 1. | |
width | Number of columns to draw, 1 ... pg->columns. | |
height | Number of rows to draw, 1 ... pg->rows. | |
reveal | If FALSE, draw characters flagged 'concealed' (see vbi_char) as space (U+0020). | |
flash_on | If FALSE, draw characters flagged 'blink' (see vbi_char) as space (U+0020). |
_vbi_inline void vbi_draw_vt_page | ( | vbi_page * | pg, | |
vbi_pixfmt | fmt, | |||
void * | canvas, | |||
int | reveal, | |||
int | flash_on | |||
) |
pg | Source page. | |
fmt | Target format. For now only VBI_PIXFMT_RGBA32_LE (vbi_rgba) permitted. | |
canvas | Pointer to destination image (currently an array of vbi_rgba). This must be at least pg->columns * pg->rows * 12 * 10 * pixels large, without padding between lines. | |
reveal | If FALSE, draw characters flagged 'concealed' (see vbi_char) as space (U+0020). | |
flash_on | If FALSE, draw characters flagged 'blink' (see vbi_char) as space (U+0020). |
void vbi_draw_cc_page_region | ( | vbi_page * | pg, | |
vbi_pixfmt | fmt, | |||
void * | canvas, | |||
int | rowstride, | |||
int | column, | |||
int | row, | |||
int | width, | |||
int | height | |||
) |
pg | Source vbi_page, see vbi_fetch_cc_page(). | |
fmt | Target format. For now only VBI_PIXFMT_RGBA32_LE (vbi_rgba) permitted. | |
canvas | Pointer to destination image (currently an array of vbi_rgba), this must be at least rowstride * height * 26 bytes large. | |
rowstride | canvas byte distance from line to line. If this is -1, pg->columns * 16 * sizeof(vbi_rgba) bytes will be assumed. | |
column | First source column, 0 ... pg->columns - 1. | |
row | First source row, 0 ... pg->rows - 1. | |
width | Number of columns to draw, 1 ... pg->columns. | |
height | Number of rows to draw, 1 ... pg->rows. |
_vbi_inline void vbi_draw_cc_page | ( | vbi_page * | pg, | |
vbi_pixfmt | fmt, | |||
void * | canvas | |||
) |
pg | Source page. | |
fmt | Target format. For now only VBI_PIXFMT_RGBA32_LE (vbi_rgba) permitted. | |
canvas | Pointer to destination image (currently an array of vbi_rgba). This must be at least pg->columns * pg->rows * 16 * 26 * pixels large, without padding between lines. |
void vbi_get_max_rendered_size | ( | int * | w, | |
int * | h | |||
) |
w | ||
h |
void vbi_get_vt_cell_size | ( | int * | w, | |
int * | h | |||
) |
int vbi_print_page_region | ( | vbi_page * | pg, | |
char * | buf, | |||
int | size, | |||
const char * | format, | |||
vbi_bool | table, | |||
vbi_bool | rtl, | |||
int | column, | |||
int | row, | |||
int | width, | |||
int | height | |||
) |
pg | Source page. | |
buf | Memory location to hold the output. | |
size | Size of the buffer in bytes. The function fails when the data exceeds the buffer capacity. | |
format | Character set name for iconv() conversion, for example "ISO-8859-1". | |
table | Scan page in table mode, printing all characters within the source rectangle including runs of spaces at the start and end of rows. When FALSE , scan all characters from column, row to column + width - 1, row + height - 1 and all intermediate rows to their full pg->columns width. In this mode runs of spaces at the start and end of rows are collapsed into single spaces, blank lines are suppressed. | |
rtl | Currently ignored. | |
column | First source column, 0 ... pg->columns - 1. | |
row | First source row, 0 ... pg->rows - 1. | |
width | Number of columns to print, 1 ... pg->columns. | |
height | Number of rows to print, 1 ... pg->rows. |
_vbi_inline int vbi_print_page | ( | vbi_page * | pg, | |
char * | buf, | |||
int | size, | |||
const char * | format, | |||
vbi_bool | table, | |||
vbi_bool | ltr | |||
) |
pg | Source page. | |
buf | Memory location to hold the output. | |
size | Size of the buffer in bytes. The function fails when the data exceeds the buffer capacity. | |
format | Character set name for iconv() conversion, for example "ISO-8859-1". | |
table | When FALSE , runs of spaces at the start and end of rows will be collapsed into single spaces, blank lines are suppressed. | |
ltr | Currently ignored, please set to TRUE . |
void vbi_set_brightness | ( | vbi_decoder * | vbi, | |
int | brightness | |||
) |
vbi | Initialized vbi decoding context. | |
brightness | 0 dark ... 255 bright, default 128. |
void vbi_set_contrast | ( | vbi_decoder * | vbi, | |
int | contrast | |||
) |
vbi | Initialized vbi decoding context. | |
contrast | -128 inverse ... 0 none ... 127 maximum, default 64. |