Commit Graph

2810 Commits

Author SHA1 Message Date
Martin Pulec
bc606ed09e AJA cap.: check return vals of NTV2 funcs 2020-04-28 16:37:08 +02:00
Martin Pulec
b5d39d7ba7 AJA: amend 'failed' to error msg 2020-04-28 14:04:53 +02:00
Lukas Rucka
020cc636c2 FIX: Include MTU setting in full help 2020-04-28 13:30:08 +02:00
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
e759c8a510 AJA cap.: respect channel selection 2020-04-24 08:36:03 +02:00
Martin Pulec
6b12cd9adf AJA cap.: validate channel number 2020-04-23 16:05:38 +02:00
Martin Pulec
ea3a9deba5 Keycontrol: store tio state first
Previously the state was saved too late, eg. when display was libcaca
(over SDL) the saved state has been already modified.
2020-04-23 14:56:21 +02:00
Martin Pulec
779879611f AJA disp.: added no-setup[-route] opts 2020-04-23 11:24:16 +02:00
Martin Pulec
6d5f39708c AJA disp.: use configuration structure
This simplifies code a bit
2020-04-23 11:06:38 +02:00
Martin Pulec
ee60947572 AJA disp.: honor YUV option for HDMI 2020-04-23 10:23:11 +02:00
Martin Pulec
4a76fb0986 AJA disp.: use codec_t for mForceOutputColorSpace
Use codec_t for mForceOutputColorSpace instead of custom enum - this is
actually more readable.
2020-04-23 09:19:53 +02:00
Martin Pulec
d5ae9af195 AJA disp.: fixed when not enough CSCs
The code taken from SDK samples was not correct in UltraGrid - we cannot
declare framebuffer as not RGB provided that it is in a RGB (we do not
convert by ourselves). Thus the output is set to the same codec as the
framebuffer.
2020-04-23 09:14:18 +02:00
Martin Pulec
274fd38b0e Cineform comp.: copy metadata + mark compress_end 2020-04-22 22:32:00 +02:00
Martin Pulec
f1883a0070 Added vf_copy_metadata() 2020-04-22 22:32:00 +02:00
Martin Pulec
180aa49711 vf_merge_tiles: copy compress_start timestamp 2020-04-22 22:32:00 +02:00
Martin Pulec
4fc89a8063 Video dec.: print decompress duration 2020-04-22 15:05:58 +02:00
Martin Pulec
aef1ca16cd Moved executive code from asserts
In case someone defined NDEBUG, this particular code wouldn't compile.
2020-04-22 11:56:23 +02:00
Martin Pulec
ccf00cc201 Cmpto J2K: fixed decoding with non-stanadard pitch 2020-04-22 11:07:34 +02:00
Martin Pulec
9d40cc38dc Cmpto J2K dec.: simplified j2k_decompress_reconfigure() 2020-04-22 10:18:28 +02:00
Martin Pulec
4dbc261590 Cmpto J2K dec.: allow custom pitch for UYVY and RGB
Removed assertion to check standard pitch - non-standard ones should be
already supported. This allows decoding to framebuffers, where pitch
is not equal to line width, i. e. also for tiled video assembled to one
buffer.
2020-04-22 10:18:23 +02:00
Martin Pulec
414caef42f BMD common: use special val for BMD_OPT_KEEP
The unterlying type would be perhaps an int in Win for the enumerations
where this value will be used so using UINT32_MAX isn't appropriate.
2020-04-21 18:27:58 +02:00
Martin Pulec
8f24b666ec SDL1: register 'q' key for exit 2020-04-21 18:27:58 +02:00
Martin Pulec
07309035a5 Control: warn about unknown command 2020-04-21 18:27:57 +02:00
Martin Pulec
581d8a9309 RTSP capture: fixed a warning 2020-04-21 18:27:57 +02:00
Martin Pulec
363729fbcd Keycontrol: fixes
- fixed few warnings (UTF-8 code 0 UB, read fail)
- keycodes can be up to 64-bit (some places used int)
2020-04-21 18:27:57 +02:00
Martin Pulec
3f5e7b0a0a Do not rename main thread
Do not rename main thread since it renames a process as well and then it
doesn't respond to eg. killall as expected.

+ name the display thread (run if display worker doesn't require to be
  run in main thread)
2020-04-21 18:27:57 +02:00
Martin Pulec
dfb7fcaca1 AJA disp.: if HDMI is selected, set HDMI output
Use HDMI output - AJA default to DVI if HDMI EDID is not detected.

Forcing is currently commented out.
2020-04-21 18:27:10 +02:00
Martin Pulec
b8303b2f3e DeckLink disp.: use rather BMD_OPT_DEFAULT
BMD_OPT_KEEP is intended rather for explicit keep.
2020-04-21 16:46:17 +02:00
Martin Pulec
a85c406b77 Decklink disp.: do not set conversion implicitly
Even setting to 'none' is reported to fail in some setup.
2020-04-21 10:39:01 +02:00
Martin Pulec
db2150c2e3 Fixed commit f705331
Fixes crashes with multiple tiles.
2020-04-17 10:19:50 +02:00
Martin Pulec
ca27b000cc DeckLink disp.: accept multiple devices with positional parms (fix) 2020-04-17 10:11:07 +02:00
Martin Pulec
0dc517a054 DeckLink cap.: removed forgotten/replaced help line 2020-04-17 10:11:06 +02:00
Thomas Menari
92539b8a60 [decklink] fix 3D warning logic
This is a re-implementation of commit 57f215b554 to support the case that you
have a single device but multiple tiles, using 3D mode, as well as the case
where you have multiple non-3D devices and multiple tiles.
2020-04-16 11:18:06 -07: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
184c5acf91 Syphon: fixed probing
Syphon server discovery must be run from main event loop.
2020-04-14 17:51:53 +02:00
Martin Pulec
c60ed8a234 Syphon: show help immediately 2020-04-14 17:51:42 +02:00
Martin Pulec
df8494bcec Syphon cap.: updated to current API 2020-04-14 15:29:49 +02:00
Martin Pulec
c8ee45ce37 Syphon: probe individual servers 2020-04-14 15:26:13 +02:00
Martin Pulec
89b8a2c32f Syphon cap.: Warn if no servers were found 2020-04-14 13:12:07 +02:00
Martin Pulec
31d80b34b9 Video display: run mainloop only if needed
Do not run the display worker in the main thread if not needed.

This would allow to run a custom mainloop (eg. from Syphon) while being able
to run a display that doesn't need to be run in the main thread.
2020-04-14 10:52:54 +02:00
Martin Pulec
6524d798b3 aja_win32_utils.cpp: include correct config header 2020-04-09 08:29:16 +02:00
Martin Pulec
0adaf05400 macOS: request for camera/mic explicitly
This should fix a problem when UltraGrid is run from the GUI and user is
not asked for permission but UG is directly killed (in signed builds only).
2020-04-08 11:51:59 +02:00
Martin Pulec
2f538d8a87 config_win32.h: use for MinGW only
+ don't define strtok_r for now - this is useful when configure has not
  been run (eg. in plaform_pipe.cpp when compiling for GUI)
2020-04-08 07:51:05 +02:00
Martin Pulec
f8d756d165 Windows doesn't have SIGALRM 2020-04-07 11:18:28 +02:00
Martin Pulec
9f4032abe3 Main: only notify about potentilan hang
Some modules on some hardware need considerable time to finish
(SVT HEVC ~8s, AV1 >30s) so do not force quit after fixed amount
of time. Instead display only a warning and let use kill UG manually
if needed. Since previous commit, SIGINT causes usual termination.
2020-04-07 10:33:56 +02:00
Martin Pulec
f47dede849 Main: restore signals instead of ignoring 2020-04-07 10:33:56 +02:00
Martin Pulec
5d4f7b61f8 NDI: handle dummy NDIlib_frame_type_max 2020-04-07 10:14:07 +02:00
Martin Pulec
97bc0cbe4a Lavd: be more verbose when decoder was not found 2020-04-06 16:42:52 +02:00
Martin Pulec
5646e0dece Lavc: use closed GOP for SVT encoders
The HEVC/AV1 SVT encoders default to open GOP which is unsuitable for
UltraGrid - unable to refresh from the middle of the stream. Even
playback from the start won't work (because the first frame is
"consumed" by color space probe).
2020-04-06 16:24:23 +02:00
Martin Pulec
aa8e7c5f7d CoreAudio: share code for probe
Use the code from playback to avoid deprecated functions in capture.
2020-04-03 10:50:25 +02:00