There doesn't seem to be any significant advantage of using the
readerwriterqueue so replace it with a generic UG one.
If needed, this change can be easily reverted (the API is similar).
- accept bg/fg options without need to alter (default) text
- print error on wrong option
- use #CC00CC (pink) - although looking less decent, the subsampling
artifacts should be more observalble with this color
By incorporating Coverity complains, return value from fread was
incorrectly evaluated - returned nmemb=1 of size instead of size in
bytes. Reversed the order for convenience (to show actual number of
bytes, not only that 0 members were read).
The out of bound access in previous commit was silently suppressed
because the exception was passed and catch(...) didn't print anything.
- init is now noexcept
- while still letting catch(...) without err msg, because when int is
thrown, it is expected that thrower has already printed a cause (or
help), catch std::exception
In Windows, uv.exe is directly in top-level directory, not in "bin"
subdirectory. Thus, cut "bin" suffix only if there is any.
This fixes Vulkan shaders not being found - eg. "C:\UltraGrid\uv.exe"
resulted in shaders being searched in "C:\shaders"
(UltraGrid/../shaders).
+ use logger where there hasn't been
The messages are not particulary useful and produce higher number of
lines on init so it would be better to use debug level.
The previous value 16 was too much fast (one iteration lasted only 16
frames) which was even unsuitable for latency evaluation for higher
latency compressions.
With the value 1, the latency can be directy read from difference of
luma on subsequent lines.
- moved macros to utils/macros.h (not config_common.h that is not going
to be included) and include in config_common.h the macros.h file
instead (later it should be removed)
- avoid dependency of color_out.o on host.o if build outside UG (easiest
for now)
- compile tools with '-g' (obviously for better debuggability)
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.