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
Martin Pulec
d84b375165
color_out: removed color_stderr
2022-08-10 08:14:06 +02:00
Martin Pulec
92bc623fff
color_out: added a C++ API
...
Added some basic C++ API removing the need to use rang.
2022-08-08 16:09:58 +02:00
Martin Pulec
26a739dc6b
testcard gray: preinit frames
...
Generating frames on-fly is a bit slow.
2022-08-05 16:11:46 +02:00
Martin Pulec
e1a490b334
testcard: added gray pattern
2022-08-05 09:43:22 +02:00
Martin Pulec
76e6a824c9
still_image_video_pattern_generator: use vector
...
use vector instead of unique ptrs for still_image_video_pattern_generator and image_pattern.
2022-08-04 15:33:00 +02:00
Martin Pulec
85111a96c2
restructuralize video_pattern_generactor a bit
...
Currently only still image patterns are used, but it can be also
something else so factor out it to separate class.
2022-08-04 15:00:44 +02:00
Martin Pulec
b9ea5ec9a9
testcard: encapsulate frame sequence to video_pattern_generator
...
Get every frame from video_pattern_generator, i. e. every frame, not
only first one.
This will allow more complex pattern than just sliding over one picture.
2022-08-04 14:32:40 +02:00