Commit Graph

6684 Commits

Author SHA1 Message Date
Martin Pulec
2d69e343ac added vc_copylineV210toY416
+ fixed description of v210 codec in types.h
2022-10-17 15:11:08 +02:00
Martin Pulec
2b8ab0f82b vc_copylineV210toY216: fixes
- fixed wrong conversion to (Y416 instead of Y216)
- bad mask (0x3FU instead of 0x3FFU)
+ simplified
2022-10-17 15:11:07 +02:00
Martin Pulec
c132fcc9fe removed gettimeofday win32 replacement
The replacement was recently (since 6dfd098d) used even despite the
built-in has been implemented. The replacement was there because it
has supposedly better precision than the built-in. But since it is
no longer true (if it ever was), it is removed.

Note: there is also timespec_get (or UG wrapper get_time_in_ns) that can
be used in recent code instead of POSIX gettimeofday.
2022-10-13 12:15:40 +02:00
Martin Pulec
97d365af28 tv.h: replaced wrong ifdef
struct timeval definition is needed for the original functions
regardless timespec_get is present or not

On the other hand, do not include it with files compiled by MSVC
(prominently AJA).
2022-10-13 12:15:38 +02:00
Martin Pulec
344e49ff15 dshow: use generic FPS indicator 2022-10-13 11:31:04 +02:00
Martin Pulec
eae114cf6d color_out.cpp: missing include <memory> 2022-10-13 10:34:41 +02:00
Martin Pulec
e94edb767b CI: updated actions/{cache,checkout} to latest ver
https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/
2022-10-13 09:36:47 +02:00
Martin Pulec
05aea72a3c moved some functions from misc to text
moved text-related functions from utils/misc to utils/text
2022-10-13 09:16:16 +02:00
Martin Pulec
17056959f6 dummy: documentation
+ added indent_paragraph function
2022-10-13 09:16:07 +02:00
Martin Pulec
d254b22b1b main: parsing options simplified
moved some huge branches to function
2022-10-12 13:11:27 +02:00
Martin Pulec
e6f7af5b1b main: option parsing - simplify '-c'
Do not handle help, already handled in module and UG summary is no
longer displayed prior to it (see 9e39ce04).
2022-10-12 13:11:27 +02:00
Martin Pulec
b1537dd7c0 main.cpp: print configuration summary later
This allows showing modules help without the summary being needlessly shown.
2022-10-12 13:11:27 +02:00
Martin Pulec
0ccfba3f39 turn some initialization messages to debug
Those messages have nearly no information value (RTP session ID) or are
redundant (display/vidcap name; perhaps only to notice initialization
success). May be perhaps removed in future.
2022-10-12 13:11:26 +02:00
Martin Pulec
ef5d050b09 dummy: rewritten to C 2022-10-12 13:11:18 +02:00
Martin Pulec
7d62474c77 print_module_usage: align key to right
It perhaps looks better to avoid potentially huge spaces between option
and description.
2022-10-12 12:05:24 +02:00
Martin Pulec
3370489e50 dummy: use print_module_usage 2022-10-12 12:05:24 +02:00
Martin Pulec
42b3fc1558 common handling of modules printing usage
Return a macro ((void *) 1) from modules returning pointer to signalize
that help was printed (for correct UG return value). This replaces the
old behavior when module class specific value (eg. &display_init_noerr)
was returned.
2022-10-12 12:05:19 +02:00
Martin Pulec
e687bd35ac AppRun: added libva-wayland to preload
currently will not be used by CI because U18.04 doesn't link that
library
2022-10-11 16:22:54 +02:00
Martin Pulec
387276b304 GLFW: print error if init fails
register error calback prior to glfwInit
2022-10-11 15:04:45 +02:00
Martin Pulec
cd60f1828c audio: improved init prototype
- return int to signalize if error or help was displayed
- rename audio_cfg_init to audio_init
2022-10-11 15:04:45 +02:00
Martin Pulec
14a426742e configure: fixed v4l2 condition 2022-10-11 15:04:42 +02:00
Martin Pulec
8b8652886c gl_vdpau.cpp: include config.h
now HWACC_VDPAU is defined in config.h
2022-10-11 13:50:06 +02:00
Martin Pulec
1a17c84bfc configure GL: don't use vdpau hwacc if lavc disabled
Allow disabling libavcodec with --disable-libavcodec when vdpau packages
present in system.
2022-10-10 16:00:03 +02:00
Martin Pulec
446bdc6826 WAV reader: recognize also 'BW64' files
The specification of ITU-R BS.2088-1 (BW64) is identical to EBU
Tech 3306 RF64 v2.0, which points to the ITU-R standard.

EBU Tech 3306 v1.0/v1.1 (RF64) is superseded in favor of the ITU-R
standard. However, only interesting change for us is the change of
master chunk ID from RF64 to BW64.
2022-10-10 15:59:55 +02:00
Martin Pulec
447fd04a32 WAV reader: simplified read_wav_header
factored out code to separate functions
2022-10-10 12:00:49 +02:00
Martin Pulec
77bfb1398c WAV reader improvements
- use MOD_NAME
- use ug_strerror instead of non-thread-safe strerror
- updated copyright
2022-10-10 12:00:48 +02:00
Martin Pulec
860a2e664e WAV reader: improved RF64 support
correctly parse ds64 chunk content
2022-10-10 12:00:47 +02:00
Martin Pulec
387c6df816 WAV reader: basic support for RF64 files 2022-10-10 12:00:46 +02:00
Martin Pulec
a672e61311 audio testcard: moved to C 2022-10-10 12:00:42 +02:00
Martin Pulec
d18860105e WAV reader: fixed 2 errors
- if data chunk size is (-1) and thus data len is deduced from file
  size, fseek back was missing
- chunk name is generally not null-terminated, so "%4.4s" is needed for
  printout
2022-10-10 09:30:32 +02:00
Martin Pulec
ded12c2e7d audio testcard: WAV fopen should be binary 2022-10-10 09:30:32 +02:00
Martin Pulec
bc0ce5e439 audio testcard: WAV reading to separate func
refactorization only

+ revert a condition (use positive branch first)
2022-10-10 09:30:02 +02:00
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
8c1ed707d5 CI: remove non-free AJA handling
NTV2 SDK is now pulled from GitHub in .github/scripts/macOS/prepare.sh
2022-10-07 15:19:15 +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 Piatka
e5675805e3 configure.ac: gpustitch: Fix header check 2022-10-07 12:55:24 +02:00
Martin Piatka
e16ea03e5e configure.ac: Move gpustitch to CUDA section
This was broken, because FOUND_CUDA was used before it was defined
2022-10-07 12:55:21 +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