Commit Graph

81 Commits

Author SHA1 Message Date
Martin Pulec
b688d0d41a macOS: init glut only when needed
Call macGlutInit just when GL context is requested. This slightly
improves a commit 887da0882. This causes that when macOS is headless
(eg. no logged user), glutInit (that will unconditionally fail) is
called no only if needed, not always.
2020-04-27 15:25:45 +02:00
Martin Pulec
887da08822 common_preinit: call glutInit in macOS
Call glutInit for macOS. This is rather a workaround to fix a problem
when running 'uv --capabilities' with RTDXT and Syphon. Initialization
of GLUT in Syphon then fails because glutInit is skipped since NSApp is
a non-NULL (from initialization of GL context). Further GLUT call then
fail.
2020-04-14 19:38:15 +02:00
Martin Pulec
0a2397444f Host: print_capabilities - preset count to 0
Preset count to 0 to prevent malfunctioning modules that doesn't set the
count (usually in case of error).
2020-02-19 16:32:15 +01:00
Martin Pulec
09f6bafc58 Coverity fixes 2019-11-22 13:54:51 +01:00
Martin Pulec
57be851c71 Again fixed repeatedly reported errors 2019-11-21 08:48:03 +01:00
Martin Pulec
110fc31ec6 Fixed again already fixed Coverity issues
Fixed thosed issued that were supposed to be fixed but Coverity
disagrees.
2019-11-20 15:54:03 +01:00
Martin Pulec
236f5b0589 Make: added target check and distcheck
+ added check for CppUnit
2019-11-19 08:22:50 +01:00
Martin Pulec
71efe75a3f dlclose opened libs 2019-11-19 08:22:50 +01:00
Martin Pulec
fa51f6e33c Fixed incorrectly fixed Coverity bugs 2019-11-12 22:34:18 +01:00
Martin Pulec
4c71573a89 Fixed first series of Coverity bugs 2019-11-09 17:20:37 +01:00
Martin Pulec
31d9809fcd Updated documentation
Updated authors, copyright to 3-clause BSD (where possible) and file-level Doxygen
2019-11-09 13:47:11 +01:00
Martin Pulec
447be38b31 Allow registration of should_exit observers
This should be more correct way than using the global should_exit
variable. Moreover, the observers like capturers doesn't need to
pool the should exit variable and can send signal themselves (that
may eg. trigger a CV).
2019-11-04 07:53:08 +01:00
Martin Pulec
a01ead9d19 RTP UDP: don't take SO_REUSEADDR/SO_REUSEPORT fatal
This may seldom occur in non-standard environment (eg. QEMU user mode
emulated ARM on x64) and its setting is not essential while UG may
normally proceed.
2019-09-11 15:46:17 +02:00
Martin Pulec
ad4665305b CoreAudio play.: use audio-disable-adaptive-buffer
Use common audio-disable-adaptive-buffer instead of
ca-disable-adaptive-buf which is marked as deprecated.
2019-08-30 15:23:31 +02:00
Martin Pulec
84dd2196ba JACK play.: updated
* use adaptive buffer by default
* reduce preset buffer length
* honor low-latency-audio
2019-08-28 15:15:38 +02:00
Martin Piatka
b68c28ee75 Capabilities: Report video display devices 2019-08-02 12:45:38 +02:00
Martin Piatka
439be0598b GUI: Use Audio capturers reported by capabilities 2019-08-01 12:53:03 +02:00
Martin Piatka
039f0951cb Capabilities: Report audio devices 2019-08-01 12:46:17 +02:00
Martin Piatka
c96a20dec8 Capabilities: Print supported audio compressions 2019-07-30 11:01:20 +02:00
Martin Pulec
352518a4f2 Added option to list available video codecs 2019-06-14 08:55:07 +02:00
Martin Pulec
863cf1111e Added option to list available pixfmts 2019-06-14 08:55:07 +02:00
Martin Pulec
65c75d2c9d Host: version red + a plus sign in devel version 2019-06-13 14:01:50 +02:00
Martin Pulec
c94064c4db Video decoder: do not exit on unknown vid mod
Do not fail on unknow video mode by default.

+ added function error() for these errors that may be treated as fatal
  or non-fatal
2019-06-07 15:17:27 +02:00
Martin Pulec
470628cb90 Added WASAPI playback 2019-04-24 14:46:20 +02:00
Martin Piatka
25e6f31662 video_display_info: probe: pass function ptr to deleter func 2019-03-15 13:00:59 +01:00
Martin Pulec
6981cefcd1 CoreAudio: capture 128 frames
Capture only 128 frames at once (implicit value was 512).

+ param to allow user to set it manually
2019-02-22 18:34:32 +01:00
Martin Pulec
0e783cfea4 Coreaudio play.: option to specify buffer size 2019-02-21 15:53:58 +01:00
Martin Pulec
50efa3f683 Host: print also build branch 2019-02-14 14:55:21 +01:00
Martin Piatka
5e9128e357 capabilities: change output format 2019-01-08 11:34:02 +01:00
Martin Pulec
921d094444 Debug: use the rang library for color output 2018-09-20 16:33:33 +02:00
Martin Pulec
28699bac9c Added rang library for color term output
+ use it for UG title
2018-09-20 16:33:33 +02:00
Lukas Rucka
d028b69503 Rename ultragrid modules to ultragrid_* instead of module_* 2018-09-12 23:29:08 +02:00
Martin Pulec
91cb232f24 ALSA play.: use audio-buffer-len option
To be consistent with Portaudio, replace "alsa-internal-buffer" with
"audio-buffer-len".
2018-07-16 11:53:28 +02:00
Martin Pulec
44f3a9cd16 Portaudio play.: Added latency tweaks
Honor "low-latency-audio" and add "audio-buffer-len" option.
2018-07-16 11:53:28 +02:00
Martin Pulec
4c25901834 Host: removed unused cuda_device
cuda_device was replaced by array cuda_devices.
2018-07-11 11:31:06 +02:00
Martin Pulec
1a7b34e7fc Print explicitly if none config flags given 2018-07-04 10:13:55 +02:00
Martin Pulec
9bd7ecc18b Added build date to version 2018-04-24 09:59:32 +02:00
Martin Pulec
a21157fad0 Configure: get rid of hard dependency on X11 2018-02-01 14:34:49 +01:00
Martin Pulec
bf7fb05184 Allow custom mainloop
Intended mainly for modules that need to run or be run from mainloop
(eg. Syphon client).
2017-06-21 10:12:14 +02:00
Martin Pulec
4a051e98dc Host: dlopen libX11.so.6 instead of libX11.so
Symlink libX11.so does not need to be present in system. However,
libX11.so.6 is very common (currently only?) SONAME.
2017-06-05 10:50:58 +02:00
Martin Pulec
ea3ad52755 Fixed GIT revision
Now print current commit hash in version string.

+ print configuration in -v option
2017-05-19 15:48:39 +02:00
Martin Pulec
feae858c65 Validate optional commandline parameters 2017-02-23 16:30:43 +01:00
Martin Pulec
ded740065c Added --param low-latency-audio
Currently modifies these values these values:
* audio pbuf delay - 32 ms -> 5 ms
* ALSA playback - minimal value
* ALSA audio buffer (internal in UG module) - 20 ms -> 5 ms
* audio mixer, internal audio buffer - 50 ms -> 5 ms
2017-02-22 16:16:07 +01:00
Martin Pulec
18154d3413 Moved some commandline parameters to --params
"ldgm-device" and "disable-keyboard-control" commandline parameters were
moved to --params. "window-title" can be as both, however as a
commandline argument it will be removed in future.
2017-02-20 11:27:30 +01:00
Martin Pulec
1c02c5e8b0 New way of documenting additional params (--param)
All parameters can now be listed with '--params help'.
2017-02-20 11:27:30 +01:00
Martin Pulec
78537aada6 Log: color output for MSW + small rewrite 2017-02-06 17:18:45 +01:00
Martin Pulec
8ebc74eaf9 Allow set AV delay from control socket 2017-01-25 11:02:55 +01:00
Martin Pulec
476d40d915 X11: use custom error handler 2016-10-10 20:44:37 +02:00
Martin Pulec
71009b5e31 Capabilities: improved waiting for video fmt 2016-10-10 20:44:37 +02:00
Martin Pulec
2d79d418ec Added param to specify buffering of output streams
+ parameters can be now delimited also by comma (in addition to colon)
2016-10-06 09:18:31 +02:00