![]() |
UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
|

Go to the source code of this file.
Functions | |
| unsigned char * | base64_decode (const char *in, unsigned int *length) |
| bool | draw_line (char *buf, int pitch, const char *text, uint32_t color, bool solid) |
| size_t | urldecode (char *out, size_t max_len, const char *in) |
| size_t | urlencode (char *out, size_t max_len, const char *in, int(*eval_pass)(int c), bool space_plus_replace) |
| int | urlencode_html5_eval (int c) |
| int | urlencode_rfc3986_eval (int c) |
| char * | wrap_paragraph (char *text) |
Definition in file text.h.
| unsigned char * base64_decode | ( | const char * | in, |
| unsigned int * | length ) |
C-adapted version of https://stackoverflow.com/a/34571089
As the output is a generic binary string, it is not NULL-terminated.
Caller is obliged to free the returned string.
Definition at line 168 of file text.c.
References val.
Referenced by get_nals().
| bool draw_line | ( | char * | buf, |
| int | pitch, | ||
| const char * | text, | ||
| uint32_t | color, | ||
| bool | solid ) |
draws a line with built-in bitmap 12x7 bitmap font separated by 1 px space, RGBA
< adding 1 pix space between letters
Definition at line 271 of file text.c.
References draw_line_init(), FONT_COUNT, FONT_H, FONT_W, and offset.
Referenced by image_pattern_bars::fill(), and image_pattern_text::fill().

| size_t urldecode | ( | char * | out, |
| size_t | max_len, | ||
| const char * | in ) |
URL decodes input string (replaces all "%XX" sequences with ASCII representation of 0xXX)
| in | input |
| out | output array |
| max_len | maximal lenght to be written (including terminating NUL) |
Definition at line 129 of file text.c.
Referenced by vidcap_spout_init().

| size_t urlencode | ( | char * | out, |
| size_t | max_len, | ||
| const char * | in, | ||
| int(* | eval_pass )(int c), | ||
| bool | space_plus_replace ) |
Replaces all occurences where eval() evaluates to true with %-encoding
| in | input |
| out | output array |
| max_len | maximal lenght to be written (including terminating NUL) |
| eval_pass | predictor if an input character should be kept (functions from ctype.h may be used) |
| space_plus_replace | replace spaces (' ') with ASCII plus sign - should be true for HTML5 URL encoding, false for RFC 3986 |
Definition at line 81 of file text.c.
References len.
Referenced by vidcap_spout_probe().
| int urlencode_html5_eval | ( | int | c | ) |
| int urlencode_rfc3986_eval | ( | int | c | ) |
Definition at line 59 of file text.c.
Referenced by vidcap_spout_probe().
| char * wrap_paragraph | ( | char * | text | ) |
Indents paragraph (possibly with ANSI colors) to (currently only) the width of 80. Inplace (just replaces spaces with newlines).
Definition at line 204 of file text.c.
References prune_ansi_sequences_inplace_cstr().
Referenced by df_usage(), display_dummy_init(), init(), playback_usage(), set_pixfmt_conv_policy(), show_help(), show_help(), text_init(), usage(), usage(), usage(), and vidcap_screen_linux_init().
