Commit Graph

4677 Commits

Author SHA1 Message Date
Martin Pulec
bbdc0efb0c moved DeckLink drift related code to sep. file. 2022-10-26 09:20:50 +02:00
Martin Pulec
befb613532 DeckLink disp.: AudioDriftFixer - del default dct.
Removed default destructor - the values were hardcoded anyways, so use
brace-or-equals initializers directly.
2022-10-26 09:20:50 +02:00
Martin Pulec
787731fd96 DeckLink disp.: simplified parsing
rather hard-fail than silently continue (user may not see the message)
2022-10-26 09:20:50 +02:00
Martin Pulec
a6235673d5 DeckLink disp.: don't measure dur. of (audio) putf
Frame scheduling is clearly non-blocking but even the sync calls are
non-blocking - for video, next video frame is replaced, for audio, the
samples are written to ring buffer (with possible overflow). So the
numbers are almost everytime near zero.
2022-10-26 09:20:50 +02:00
Martin Pulec
45c33130ba moved DecklinkAudioSummary calls to AudioDriftFixer 2022-10-26 09:20:49 +02:00
Martin Pulec
8039506d72 DeckLink disp.: simplify _init
this reverts the corresponding changes in db20fa3
2022-10-26 09:20:49 +02:00
Martin Pulec
44c77fa88e fixed log levels
reverted some increased verbosity from merge
2022-10-26 09:20:49 +02:00
Martin Pulec
179c3f6b88 readded SpeexDSP resampler 2022-10-26 09:20:45 +02:00
Martin Pulec
1de6e15f83 sox_resampler: reinit on channel count change 2022-10-25 16:28:22 +02:00
Martin Pulec
897538e48d sox_resampler: added missing deleter 2022-10-25 16:28:22 +02:00
Martin Pulec
20c2d8540c audio_frame2_resampler: hide implementation
use pimpl pattern
2022-10-25 16:26:11 +02:00
Martin Pulec
a5c059da60 moved audio resampler to separate file 2022-10-25 15:51:03 +02:00
Martin Pulec
d19135f979 soxr_resampler: reflect bps change
If bps is changed, the resampler must be rebuilt.
2022-10-25 15:51:03 +02:00
Martin Pulec
bb9fb011da audio resampler: separate impl from iface
made API for resamplers (mainly to readd speex)
2022-10-25 15:51:01 +02:00
Martin Pulec
f224e62872 DeckLink disp.: disable resampler by default 2022-10-25 15:50:11 +02:00
Martin Pulec
226d828d4a fixed warnings when Soxr not available 2022-10-25 15:50:11 +02:00
Martin Pulec
1122cfe410 removed unused code after merge 2022-10-25 15:50:08 +02:00
Martin Pulec
ca5dd15587 audio_decoders: fixed removed codition with merge 2022-10-25 15:48:45 +02:00
Martin Pulec
14bff97622 Merge branch 'aw-sohonet-wip-deck-drift' 2022-10-25 15:47:31 +02:00
Martin Pulec
168f282536 main: do not show help on '-d gl:help'
Processing arguments actually "wipes" help from argv (optarg is split by
'\0' to a driver name and its arguments). Thus evaluate help before option
parsing.
2022-10-24 15:06:53 +02:00
Martin Pulec
21b8e2e40f control socket: moved a init msg to control_start
When in control_init, it has been displayed eg. even on '-d gl:help'
while it was not accurate since the control_thread was newer run,
anyways.
2022-10-24 08:09:08 +02:00
Martin Pulec
2f03636d02 NDI disp.: added norgb option
Some NDI receivers do not support RGB (including NDI Studio Monitor).

GH issue #250
2022-10-21 16:05:19 +02:00
Martin Pulec
2db2a73803 resize cap. f.: replace opencv.hpp -> imgproc.hpp
Replaced generic opencv.hpp with imgproc.hpp - the former one includes
dependencies on headers that may not be available (at least U18.04 has
this header in -core but references also non-core components).
2022-10-21 12:18:58 +02:00
Martin Pulec
0b157dae41 control socket: removed a duplicite function
already defined in utils/net.c
2022-10-21 09:07:42 +02:00
Martin Pulec
fa6ff516cd wav_reader: check read ds64 - check overflow 2022-10-21 08:24:21 +02:00
Martin Pulec
a005e9169e 3d-interlaced vo_postprocess fixed
fixed 6f6680fd & CID 401454
2022-10-21 08:18:39 +02:00
Martin Pulec
48ddd23ae1 blackmagic_common.cpp profiles: fixed notification
CID 401453
2022-10-21 08:18:39 +02:00
Martin Pulec
7dcfdbf02d supress CID 401451 2022-10-21 08:18:39 +02:00
Martin Pulec
1ad25a6a9f video testcard: comment out broken code
CID 401450
2022-10-21 08:18:39 +02:00
Martin Pulec
09713f102a WAV reader: removed dead code
CIDs 401449, 401452
2022-10-21 08:18:39 +02:00
Martin Pulec
7c068254a9 wav_reader read_ds64: better error handling
+ allow non-empty tables in ds64 (chunk size can be >28)
2022-10-21 08:18:33 +02:00
Martin Pulec
b534d547bc process_data_chunk: refactorized 2022-10-20 14:26:12 +02:00
Martin Pulec
3036c48c8b WAV reader: reflect CID 401447
+ rename function
+ documentation
2022-10-20 14:14:45 +02:00
Martin Pulec
2f127247c9 dummy display: fixed CID 401446 2022-10-20 14:04:01 +02:00
Martin Pulec
3d149fd1b4 DeckLink cap.: fixed Cov. bugs CID 30144{3,4,5} 2022-10-20 14:03:40 +02:00
Martin Pulec
55b3b87d1e Simplified get_local_addresses
+ acknowledged authorship
+ avoid a compiler warning
2022-10-20 13:42:55 +02:00
Martin Pulec
1e2d089a14 DShow: change log_levels + identify failed device
Now the error message is not spatially coupled with device identifier
(probe prints error but the modes are output after that).
2022-10-19 16:00:35 +02:00
Martin Pulec
c171ef448e DShow: use data from probe for help 2022-10-19 16:00:35 +02:00
Martin Pulec
48537db09f screen_win: run new process after mod reg
+ improved request for install message to be more clear
2022-10-19 16:00:35 +02:00
Martin Pulec
62595dce97 screen_win: do not store lib pointer
Use common unregister in both normal unprivileged unregister and an
elevated one.
2022-10-19 16:00:35 +02:00
Martin Pulec
2a8cb6b006 DShow: removed rang references 2022-10-19 16:00:34 +02:00
Martin Pulec
4d5747aa76 DShow: use logger 2022-10-19 16:00:34 +02:00
Martin Pulec
069869efcb screen_win: use generic FPS indicator
doesn't have own
2022-10-19 16:00:34 +02:00
Martin Pulec
db75326b32 screen_win: opt to filter unregister 2022-10-19 16:00:34 +02:00
Martin Pulec
f2a4de3dd8 indent_paragraph fix
Fixed not counting the start of the line after the wrap, as it can be
clearly seen on this string:

"X yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy zzzzzzzzzzzzzzz"

where should be every ' ' replaced by '\n' but the second wasn't.
2022-10-19 16:00:34 +02:00
Martin Pulec
055194c6d5 screen_win: request registration of DShow module
Try to install the DShow module with elevated privileges (doesn't work
with normal on most Windows instances, perhaps given by settings).

If the elevated registration succeeds, do not unregister that (otherwise
next time user would need to confirm that again).
2022-10-19 16:00:34 +02:00
Martin Pulec
24647eeffc screen_win: refactor
+ free loaded library in case of error
+ report also different errors than E_ACCESSDENIED (and print that the
  error was access denied if so)
2022-10-19 16:00:34 +02:00
Martin Pulec
507b48c061 screen_win: use system screen-capture-recorder
Use system-registered screen-capture-recorder if available.

THe current way (if screen-capture-recorder is not installed) relies on
pushing a DLL into system but in current W10 (21H2) version, this is
prohibited to a normal user.
2022-10-19 16:00:34 +02:00
Martin Pulec
49e4de595d DShow probe: set card_id early to vidcap_type
To avoid having blank device ID if device name read fails.
2022-10-19 16:00:34 +02:00
Martin Pulec
3bee13fdb5 replaced unqualified move with std::move
to avoid this clang warning: https://reviews.llvm.org/D119670
2022-10-19 16:00:31 +02:00