Commit Graph

4547 Commits

Author SHA1 Message Date
Martin Pulec
ab152abb04 audio testcard: error on WAV reading error
If WAV is used, error if size is 0 - it doesn't make any case to
continue and it will fil on floating point exception, anyways.
2022-10-10 09:28:37 +02:00
Martin Pulec
e47a49a4c4 sdl_mixer: silence the output
Otherwise SDL mixer would play the sound directly to PC output (aside to
actually capturing). Perhaps `Mix_Volume(-1,0)` would be better option
(as it used to be within testcard) but it seems to no longer work (SDL2
mixer 2.6.2).
2022-10-07 16:59:15 +02:00
Martin Pulec
574b5fe192 sdl_mixer: added basic description to usage 2022-10-07 15:39:28 +02:00
Martin Pulec
580cf985b2 deltacast_common: deranged 2022-10-07 15:11:23 +02:00
Martin Pulec
4e42326b8e DELTACAST DVI: option to load custom EDID file
untested
2022-10-07 15:11:22 +02:00
Martin Pulec
3ff371ffc2 deltacast_dvi: options rename
- edid->preset
- preset->format

I need to make space for real edid file option.
2022-10-07 15:11:22 +02:00
Martin Pulec
26be7561a7 deltacast_dvi: all edid presets in help 2022-10-07 15:11:22 +02:00
Martin Pulec
b211ae87bc deltacast_dvi: pass edid= directly to VHD_PresetEEDID()
This allows using also other values like VHD_DV_EEDID_DVID_DUAL (== 4).
2022-10-07 15:11:22 +02:00
Martin Pulec
bd56c8079d deltacast_dvi: deranged 2022-10-07 15:11:22 +02:00
Martin Pulec
d8ce230304 Deltacast: VideoMaster 6.20 compat
But breaks compatibility with 6.19, 6.18 and earlier works (see note in
code).
2022-10-07 15:11:19 +02:00
Martin Pulec
fc5f4820b4 GL: allow writting gamma=1/2.2
gamma can now be a fraction
2022-10-05 16:52:24 +02:00
Martin Pulec
cb42bd94f3 GL: set gamma after toggling fullscreen
When switching to/from fullscreen, gamma setting is not preserved (at
least for mac).
2022-10-05 16:24:25 +02:00
Martin Pulec
6f6680fda2 3d-interlaced: fixed warning on non-SSE2 (eg. M1)
+ fail in init directly
2022-10-05 16:24:25 +02:00
Martin Pulec
4cc08d18f2 unit_evaluate_dbl: check if a number was given 2022-10-05 16:24:25 +02:00
Martin Pulec
fb13624d95 SDL2: implement timeout 2022-10-05 16:24:25 +02:00
Martin Pulec
cfc2bdca53 displays: if timeout > 0, act as nonblocking
For displays not implementing timeout, take timeout > 0 as nonblocking.
2022-10-05 16:24:25 +02:00
Martin Pulec
f7cc336cac decklink disp.: implemented timeout 2022-10-05 16:24:24 +02:00
Martin Pulec
b2aa48139c --param decoder-drop-policy - accept numbers
accept numeric timeout (in seconds)
2022-10-05 16:24:24 +02:00
Martin Pulec
8f677978eb unit_evaluate_dbl: accept also <1 SI suffixes 2022-10-05 16:24:24 +02:00
Martin Pulec
0c66f14cfd GL: implement timeout 2022-10-05 16:24:24 +02:00
Martin Pulec
00801fa3d4 video display: updated putf api - use timeout
Replace blocking/nonblock/discard flags with numerical timeout for
fine-grainer control of latency.

The original flags are kept as convenience macros so the API changes is
only small as long as non-block (default) or blocking is used.
2022-10-05 16:24:24 +02:00
Martin Pulec
c703df5773 Syphon: moved server invalidation to main thr 2022-10-04 11:03:10 +02:00
Martin Pulec
ca0ec1f2b6 print_module_usage fullhelp support
Added support for optional parameters that are shown only with
":fullhelp".

+ use it in Syphon
+ Doxygen documentation
2022-10-04 11:03:07 +02:00
Martin Pulec
1c9a88238f Syphon: don't use rang + use print_module_usage
+ added a TODO
2022-10-04 10:05:08 +02:00
Martin Pulec
6ff02e7e2e added audio_cap_jack_should_exit
Added audio_cap_jack_should_exit in order to prevent freeze if waiting
on semaphore but jack callbacks are not triggered (no data).
2022-10-03 16:41:16 +02:00
Martin Pulec
0f244bab93 Syphon: use generic FPS + MOD_NAME use 2022-10-03 16:12:48 +02:00
Martin Pulec
650f067963 Syphon: release server if no longer valid
refer to GH-259
2022-10-03 16:11:09 +02:00
Martin Pulec
e0816158cc fixed another macOS warnings 2022-10-03 16:01:57 +02:00
Martin Pulec
2066262f3a JACK: use platform_semaphore
POSIX semaphores are deprecated on macOS

+ keep error checking from JACK and moved it to platform_semaphore
+ reorder includes alphabetically
2022-10-03 16:01:53 +02:00
Martin Pulec
05749544d4 RTP UDP: ensure sockaddr_storage alignment
it is currently aligned so just ensure
2022-10-03 11:36:40 +02:00
Martin Pulec
8a69aa54fb color_out_init: check if the output is terminal
In Windows, if output is not MSYS, check if output is a terminal and do
not relay on setWinTermAnsiColors() returning true.

+ check for MSYS terminal first (avoids attempt to set ansi color on
  MSYS terminal)

refers to #256
2022-10-03 08:59:08 +02:00
Martin Pulec
ba3f885d0f Spout: set log level 2022-10-03 08:41:40 +02:00
Martin Piatka
a056b809cb OpenXR: Fix view locating 2022-09-29 16:43:40 +02:00
Martin Pulec
ac4924cb75 dump display: removed display_dump_run + audio clb
removed unused callbacks
2022-09-27 15:52:32 +02:00
Martin Pulec
93cba6daa4 dump display: to C and simplified 2022-09-27 15:52:32 +02:00
Martin Pulec
d7c880490d SDL2: removed custom FPS indicator and use generic 2022-09-27 15:52:32 +02:00
Martin Pulec
c40705ff86 video capture FPS ind.: provide name by module
see previous commit description
2022-09-27 15:52:32 +02:00
Martin Pulec
02e52afa7b video display FPS ind.: provide name by module
Use name (MOD_NAME) provided by module rather than name given from
command-line. Those 2 may not match - in command-line it is
case-insensitive so ("gl" or even "gL" would be printed inestead of
expected "GL"). Also there may be input/output module of the same name
(eg. decklink) for which we may want to distinguish.
2022-09-27 15:52:28 +02:00
Martin Piatka
7e27491a2b logging: log_vprintf: prune ansi sequences when not interactive
Previously colored output using the inline TERM_* macros from color_out.h was
done only using the color_printf() function. Since there are now places
where they are used with log_msg(), we need to prune ansi codes here
too.
2022-09-27 14:12:18 +02:00
Martin Piatka
7b23d63a72 color_out: Add param log-nocolor to force disable ANSI codes 2022-09-27 13:26:53 +02:00
Martin Pulec
a3c3e339a4 NDI: don't require mainloop + removed run
run callback is empty so remove it and obviously we don't need the
mainloop then
2022-09-26 13:35:54 +02:00
Martin Pulec
9b67fe30af RTP callback: report RR values to console 2022-09-26 13:35:54 +02:00
Martin Pulec
bd53ae9ac9 DeckLink disp.: timecode improvements
- use 16 bytes to be safe (compiler incorrectly warns)
- allocate temporary variable on heap
- improved asserts for assumed numeric ranges (counting with leap
  seconds)
2022-09-26 13:35:43 +02:00
Martin Pulec
2e5dc112df blackmagic_common.cpp: missing return 2022-09-26 11:51:18 +02:00
Martin Pulec
8cb5108137 av_log_ug_callback: filter out MJPEG APP complains 2022-09-23 15:20:11 +02:00
Martin Pulec
bc2d5c75da uv_set_av_logging: option for default logging
Added option to set default FFmpeg log handler (in case of error or we don't
want filtering).
2022-09-23 15:20:09 +02:00
Martin Pulec
fc2a9d21c8 lavc log level in FFmpeg semantics
Do not expect the value in UG semantics unless explicitly told so.
2022-09-23 15:18:04 +02:00
Martin Pulec
c502ff23d1 lavcd: use UltraGrid logger 2022-09-23 15:17:59 +02:00
Martin Pulec
771637a91e added log_vprintf 2022-09-23 15:01:20 +02:00
Martin Pulec
2a019b1ffa file cap.: JPEG file loop workaround
avformat_seek_file doesn't work for single JPEG because ing2dec
implements the loop internally and avformat_seek_ffile calls
img_read_seek that doesn't do the job.
2022-09-23 15:01:15 +02:00