Commit Graph

6392 Commits

Author SHA1 Message Date
Martin Piatka
68cf3f697b video_capture: Remove duplicit vidcap_params definition
The struct vidcap_params is already defined in video_capture_params.cpp
2022-08-17 16:10:48 +02:00
Martin Piatka
8f297e6bc2 screen_win: Fix crash on startup
The crash was caused by null parent module in the vidcap_params created
by vidcap_screen_win_init().
2022-08-17 16:10:48 +02:00
Martin Piatka
dd9a53cfd7 ipc_frame_unix: Fix on windows
04c2d245 changed the datatype to the SOCKET type used by the winsock
library. This type is however unsigned, which broke conditions that
assumed invalid socket to be < 0.
2022-08-16 15:13:39 +02:00
Martin Piatka
f6100f1f66 GUI: workaround qmake not knowing about c++17 2022-08-16 10:32:55 +02:00
Martin Piatka
66a7a3058a GUI: settings: replace QRandomGenerator by std random 2022-08-16 10:32:55 +02:00
Martin Piatka
95d064d41a GUI: Use random key for preview sockets 2022-08-16 10:32:55 +02:00
Martin Piatka
80a2540c8b GUI: previewWidget: take key as string_view 2022-08-16 10:31:50 +02:00
Martin Piatka
7509ec4c9a GUI: settings: generate a random string as preview key 2022-08-16 10:31:50 +02:00
Martin Piatka
9f21eba57d GUI: Bump C++ version to c++17 2022-08-16 10:00:00 +02:00
Martin Piatka
291483c156 preview: "key" parameter to support multiple instances
... without specifying full path
2022-08-16 09:59:59 +02:00
Martin Piatka
27af581e1d capture preview: Fix hang on exit if socket doesn't exist 2022-08-16 09:56:33 +02:00
Martin Piatka
00390f8a7c unix_sock: Allow escaping of ':' in config 2022-08-16 09:56:33 +02:00
Martin Piatka
3257e5a036 capture preview: Allow escaping of ':' in config 2022-08-16 09:56:32 +02:00
Martin Piatka
c63412767b misc: tokenize(): Support for delimiter escaping 2022-08-16 09:56:32 +02:00
Martin Pulec
1615a0402c testcard: no err to -t testcard:pattern=gradient2:help 2022-08-15 16:25:30 +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
9f926828af added vc_copylineY416toRG48 2022-08-15 13:19:47 +02:00
Martin Pulec
9195808232 video_codec.c: avoid multiple evaluation in macro
Avoid multiple evaluation of expressions in macro expansions.
2022-08-15 11:11:48 +02:00
Martin Pulec
bb91dc8567 GLFW Wayland crash workaround
Fixes a crash using Wayland GLFW version, starting fullscreen and
returning to windowed mode. It may be rather a GLFW bug.

Steps to reproduce -- start `uv -t testcard -d gl:fs` and press 'F'
(fullscreen). Needs Wayland GLFW build (as in current Arch Linux).
2022-08-15 09:30:40 +02:00
Martin Pulec
6e793ba8e1 GL disp.: refresh rate deduction to separate func
This task is a bit complex so it is pointless to do it multiple times.
Also it was very hard to comprehend as used as one-liner in determined
branch.
2022-08-15 09:02:25 +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
227488af99 DeckLink: convert R10k from/to limited range
BMD uses limited range for R10k codec (in opposite to UltraGrid), thus
input/output conversion is deployed.
2022-08-12 12:04:10 +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
7c28c15073 DeckLink disp.: display_decklink_putf reindent 2022-08-12 11:49:01 +02:00
Martin Pulec
16ce6b638a DeckLink disp.: handle PUTF_NONBLOCK and PUTF_DISCARD 2022-08-12 11:48:57 +02:00
Martin Pulec
c18e2b4d75 DeckLink cap.: small refactor 2022-08-12 09:50:50 +02:00
Martin Pulec
443d6aacf2 blackmagic_common.h->hpp: contains only C++ funcs
The header contains only C++ linked functions thus mark it as such.
2022-08-11 17:17:24 +02:00
Martin Pulec
dc196ff55a GL: fixed R10k shifts
Rlo and Glo (shifted right) had incorrect shifts.

+ use delimiter in bit mask (readibility)
+ make all constants unsigned (already implicitly cast but to make it
  clear)
2022-08-11 17:15:51 +02:00
Martin Pulec
0d793a0836 matrix.c: avioid multiple evaluation
same as previous commit
2022-08-11 12:10:56 +02:00
Martin Pulec
0b9abe7233 from_lavc_vid_conv.c: avoid multiple evaluation
Needless multiple evaluation of expression may occur in macro expansion.
2022-08-11 12:10:56 +02:00
Martin Pulec
71551253cc from_lavc_vid_conv.c: fixed yuv8p_to_rgb 2022-08-11 12:10:56 +02:00
Martin Pulec
6b28716d30 replaced MIN/MAX with CLAMP 2022-08-11 12:10:56 +02:00
Martin Pulec
04c2d245d0 fixed Win compile warnings (from CI) 2022-08-11 10:42:45 +02:00
Martin Pulec
f5114ab793 GitHub CI: ensure resize is enabled 2022-08-11 09:52:39 +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
276933dea6 ximea: fixed output 2022-08-10 16:46:38 +02:00
Martin Pulec
894c61909a Win: set HAVE_TIMESPEC_GET for MSVC stuff 2022-08-10 16:41:42 +02:00
Martin Pulec
383a00844f DEBUG_TIMER: use time_ns_t 2022-08-10 13:45:07 +02:00
Martin Pulec
cf58ff3948 added missing includes 2022-08-10 13:45:07 +02:00
Martin Pulec
f24b237ef1 tv.h: added macros cast to double 2022-08-10 13:45:07 +02:00
Martin Pulec
39338a2e50 GL: fixed swapped R/B channels in byte_swap_r10k 2022-08-10 13:45:04 +02:00
Martin Pulec
128150288b logger: removed preinit
no longer needed to initialize rang here
2022-08-10 10:00:07 +02:00
Martin Pulec
555935afa1 vidcap_decklink_grab: simplified
- do the RGBA conversion only once (not in all branches)
- exit early if some tile was not captured
2022-08-10 09:58:42 +02:00
Martin Pulec
720009aea4 GitHub CI Linux: disable GL suppoort for GPUJPEG
This support is currnetly unused by UltraGrid and adds libOpenGL.so.o
GPUJPEG dependency:

https://cmake.org/cmake/help/v3.22/module/FindOpenGL.html#linux-specific

Since we don't need this, it is best to disable GPUJPEG OpenGL support.
2022-08-10 08:14:08 +02:00
Martin Pulec
6bbe8c4228 removed color_out function 2022-08-10 08:14:07 +02:00