Martin Pulec
787731fd96
DeckLink disp.: simplified parsing
...
rather hard-fail than silently continue (user may not see the message)
2022-10-26 09:20:50 +02:00
Martin Pulec
3036c48c8b
WAV reader: reflect CID 401447
...
+ rename function
+ documentation
2022-10-20 14:14:45 +02:00
Martin Pulec
55b3b87d1e
Simplified get_local_addresses
...
+ acknowledged authorship
+ avoid a compiler warning
2022-10-20 13:42:55 +02:00
Martin Pulec
f2a4de3dd8
indent_paragraph fix
...
Fixed not counting the start of the line after the wrap, as it can be
clearly seen on this string:
"X yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy zzzzzzzzzzzzzzz"
where should be every ' ' replaced by '\n' but the second wasn't.
2022-10-19 16:00:34 +02:00
Martin Piatka
9f3b891309
holepunch: pass addresses as buffers in config
2022-10-19 14:06:26 +02:00
Martin Piatka
d7495d070d
holepunch: Add log messages
...
see GH-260
2022-10-19 12:25:51 +02:00
Martin Pulec
1e50d51e11
replaced unqualified move with std::move
...
to avoid this clang warning: https://reviews.llvm.org/D119670
2022-10-18 09:21:50 +02:00
Martin Pulec
eae114cf6d
color_out.cpp: missing include <memory>
2022-10-13 10:34:41 +02:00
Martin Pulec
05aea72a3c
moved some functions from misc to text
...
moved text-related functions from utils/misc to utils/text
2022-10-13 09:16:16 +02:00
Martin Pulec
17056959f6
dummy: documentation
...
+ added indent_paragraph function
2022-10-13 09:16:07 +02:00
Martin Pulec
7d62474c77
print_module_usage: align key to right
...
It perhaps looks better to avoid potentially huge spaces between option
and description.
2022-10-12 12:05:24 +02:00
Martin Pulec
4cc08d18f2
unit_evaluate_dbl: check if a number was given
2022-10-05 16:24:25 +02:00
Martin Pulec
f7cc336cac
decklink disp.: implemented timeout
2022-10-05 16:24:24 +02:00
Martin Pulec
8f677978eb
unit_evaluate_dbl: accept also <1 SI suffixes
2022-10-05 16:24:24 +02:00
Martin Pulec
ca0ec1f2b6
print_module_usage fullhelp support
...
Added support for optional parameters that are shown only with
":fullhelp".
+ use it in Syphon
+ Doxygen documentation
2022-10-04 11:03:07 +02:00
Martin Pulec
e0816158cc
fixed another macOS warnings
2022-10-03 16:01:57 +02:00
Martin Pulec
8a69aa54fb
color_out_init: check if the output is terminal
...
In Windows, if output is not MSYS, check if output is a terminal and do
not relay on setWinTermAnsiColors() returning true.
+ check for MSYS terminal first (avoids attempt to set ansi color on
MSYS terminal)
refers to #256
2022-10-03 08:59:08 +02:00
Martin Piatka
7e27491a2b
logging: log_vprintf: prune ansi sequences when not interactive
...
Previously colored output using the inline TERM_* macros from color_out.h was
done only using the color_printf() function. Since there are now places
where they are used with log_msg(), we need to prune ansi codes here
too.
2022-09-27 14:12:18 +02:00
Martin Piatka
7b23d63a72
color_out: Add param log-nocolor to force disable ANSI codes
2022-09-27 13:26:53 +02:00
Martin Pulec
1271fcd004
color_out: added underline
2022-09-23 11:10:31 +02:00
Martin Piatka
6c71113a0c
profile_timer: Fix move constructor
2022-09-20 16:35:54 +02:00
Martin Pulec
d5728f5669
testcard uv_plane: set default level to 0.5
2022-09-19 14:34:24 +02:00
Martin Pulec
08aac6798d
testcard uv_plane: fixed compution of level
2022-09-19 14:34:08 +02:00
Martin Pulec
9036c99af2
fs.h: MAX_PATH_LENGTH clarification
...
- note that it already space for null byte
+ removed excess new-lines
2022-09-14 10:08:59 +02:00
Martin Pulec
d6d51df3a8
audio capture: color usage
...
+ created a generic function for usage printout
2022-09-13 16:36:34 +02:00
Martin Piatka
a273dbe754
utils/fs: Use MAX_PATH_SIZE
...
A platform dependent MAX_PATH_SIZE is already defined in fs.hpp. The
only difference is that it uses PATH_MAX instead of MAXPATHLEN, but
those should be equivalent anyways.
Fixes out-of-tree builds without HAVE_CONFIG_H
2022-09-13 13:54:23 +02:00
Martin Piatka
a3a6e5bd85
utils/fs: Add missing <cstring> include
2022-09-13 13:54:23 +02:00
Martin Pulec
8a851604a6
get_temp_dir: honor TMPDIR env
...
To be able to use writable tmp if default tmp (usually "/tmp") is not
usable (eg. read-only by firejail).
2022-09-12 16:44:05 +02:00
Martin Piatka
d31d330085
sv_parse_num: provide 'base' parameter only for integral types
...
gets rid of unused parameter warning for floating types
2022-08-31 15:16:58 +02:00
Martin Pulec
7737a4f878
replace some color_out macros with stream-oriented
...
For ostreams, the stream macros are prefered both over raw escape
sequence macros (guarantee style/color termination) and function-like
ones in form T<PROP>(), because it allows also different argument than
C string literal.
2022-08-24 16:12:36 +02:00
Martin Pulec
993765d024
color_out: added C++ stream friendly macros
...
These macros can wrap entity that is not a C string literal (eg. integer
constant, variable etc.).
2022-08-24 12:13:49 +02:00
Martin Pulec
b1f0e004f4
fixed new Coverity bugs
...
Fixed some of (easy) newly detected Coverity bugs. Those are mostly
innocent ones (performance) and not new (detected because of new release
of Coverity).
2022-08-22 09:57:16 +02:00
Martin Pulec
faa1afb720
added some missing includes
...
Added includes that are missing if config.h was not included.
2022-08-17 17:27:43 +02:00
Martin Pulec
e15e0f9cb9
color_out: removed isMsysPty from API
...
no longer used outside color_out.cpp
2022-08-17 17:24:35 +02:00
Martin Pulec
65557d112d
get rid of rang.hpp dependency through color_out.h
...
Removed indirect dependency on rang.hpp through color_out.h. Now only
remaining dependencies on rang.hpp are direct.
+ fixed escape sequence for foreground magenta
2022-08-17 17:24:34 +02:00
Martin Piatka
c63412767b
misc: tokenize(): Support for delimiter escaping
2022-08-16 09:56:32 +02:00
Martin Pulec
cb3618af85
video pattern generator: list only >8-bit pixfmts
...
List only higher bit-dept pixel formats instead of full to which also
8-bit codecs counted.
2022-08-15 16:23:11 +02:00
Martin Pulec
fc6087180a
image generator gradient: generate full depth as well
2022-08-15 16:06:23 +02:00
Martin Pulec
984bd9dfd6
image generator: help - note that gradient2 also has options
2022-08-15 15:21:40 +02:00
Martin Pulec
21129d7fcb
image generators: unified initialization
...
- either nothing or string passed to constructor
- disallowed omitting "blank" when color with "blank=<color>" given
2022-08-15 15:12:54 +02:00
Martin Pulec
edad146aeb
added testcard pattern uv_plane
2022-08-15 15:11:57 +02:00
Martin Pulec
6e3133a6e6
image generator: help updated
...
highlight pattern names + use new color API
2022-08-15 15:10:40 +02:00
Martin Pulec
fcd2522822
moved OPTIMIZED_FOR to utils/macros.h
...
It belongs rather there than to host.h where it was originally.
2022-08-12 12:22:22 +02:00
Martin Pulec
c485e7500c
added respawn parallel
...
For easier parallelism where input data can be split to independent
chunks processed in parallel.
2022-08-12 11:55:22 +02:00
Martin Pulec
04c2d245d0
fixed Win compile warnings (from CI)
2022-08-11 10:42:45 +02:00
Martin Pulec
95b851eecb
replaced \e with \033
...
'\e' is not standard C, see:
https://stackoverflow.com/questions/63255838/how-can-i-fix-warning-c4129-e-unrecognized-character-escape-sequence/63255920#63255920
2022-08-10 17:01:31 +02:00
Martin Pulec
894c61909a
Win: set HAVE_TIMESPEC_GET for MSVC stuff
2022-08-10 16:41:42 +02:00
Martin Pulec
6bbe8c4228
removed color_out function
2022-08-10 08:14:07 +02:00
Martin Pulec
812bcbfc78
logger: remove ANSI seqences if not terminal
...
This allows use of raw ANSI sequences instead of the rang stuff.
2022-08-10 08:14:07 +02:00
Martin Pulec
7719e8aa47
logger: get rid of rang references
2022-08-10 08:14:07 +02:00