Commit Graph

4374 Commits

Author SHA1 Message Date
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
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
6bbe8c4228 removed color_out function 2022-08-10 08:14:07 +02:00
Martin Pulec
6802baef6e pbuf: get rid of rang 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
2dc9a3d214 GLFW: init module after GLFW
if glfwInit failed, module has not been unregistred
2022-08-10 08:14:00 +02:00
Martin Piatka
a1483444e5 gl: vdpau: make load frame a member func 2022-08-09 17:00:26 +02:00
Martin Piatka
29eec7f19e gl: Move vdpau functionality into separate file 2022-08-09 17:00:25 +02:00
Martin Piatka
19083593ab gl: vdpau: rename render_vdpau to vdpau_load_frame 2022-08-09 17:00:25 +02:00
Martin Piatka
0038eb5e8f gl: vdpau: check_mixer: pass state_vdpau as argument 2022-08-09 17:00:25 +02:00
Martin Piatka
89ad5b76f8 hwaccel: Fix extern "C" includes
hwaccel_vdpau.h was including hwaccel_libav_common.h with C linkage.
This causes the following include chain with c linkage which causes an
error:

hwaccel_vdpau.h -> hwaccel_libav_common.h -> types.h -> <string>
2022-08-09 17:00:19 +02:00
Martin Pulec
f11e91d268 video display: missing TERM_RESET 2022-08-09 16:03:19 +02:00
Martin Pulec
c7f33901d2 GL disp.: use different data type for R10k tex
Used GL_UNSIGNED_INT_2_10_10_10_REV instead of GL_UNSIGNED_INT_10_10_10_2
for R10k texture. The later has much better performance on AMD RX 580.
2022-08-09 15:17:09 +02:00
Martin Piatka
213ce5e20f output buffering: Disable buffering in GDB
Since the style reset escape codes are generally after the newline, the
otput of GDB would stay colored without this change
2022-08-09 11:48:58 +02:00