Commit Graph

10611 Commits

Author SHA1 Message Date
Martin Pulec
f043f10a9e fix data/scripts/macos_bundle_libs.sh
the former failed on Mac OS X 10.11 with:
`sed: 1: "/LC_RPATH/,+2p": expected context address`.

The '+2' address seem to be GNU extension, although supported by current
macOSes (and busybox).

see also
<https://stackoverflow.com/questions/26124650/sed-use-expected-context-address>
2025-05-20 11:07:51 +02:00
Martin Pulec
663f5d8a81 vdisp/gl: fix wrong pointer passed with help
Fixes the commit 9c597ae1 (yesterday) - after the move, the ptr must
have been replaced for tok, otherwise passing 2 or more options to gl,
like `-d gl:fs:cursor`, causes segfault.
2025-05-20 10:29:53 +02:00
Martin Pulec
c54e9d4d59 vdisp/sdl3: fixed running with size=
When pixel format changes - which is almost always if CS doesn't match
the splashscreen and some conversion is needed, the cs_data member needs
to be updated to contain curremt conversion data).
2025-05-19 15:13:42 +02:00
Martin Pulec
1fb1fbe877 vdisp/sdl2,sdl3: accept mode name for size
_but_ size= doesn't seem to work with sdl3 for YCbCr formats (does for RGB)
2025-05-19 15:13:42 +02:00
Martin Pulec
10db49b68b vdisp/sdl2,sdl3: fix typo in "size" (was "siz")
+ remove trailing '=' - although it works, IS_KEY_PREFIX is meant to be
called without it
2025-05-19 15:12:37 +02:00
Martin Pulec
0953b8cf76 vdisp/gl: accept also mode names for size= 2025-05-19 15:01:33 +02:00
Martin Pulec
9c597ae19d vdisp/gl: gl_show_help only if :[full]help
Be more restrictive when parsing the help option - do not print the
master help eg. on size=help.
2025-05-19 15:01:33 +02:00
Martin Pulec
32bdfed7f0 get_video_desc_from: accept <W>x<H>[@<FPS>[<suff>]]
accept the syntax in format <W>x<H>[@<FPS>[<suff>]]

this requires also some changes in parse_fmt, namely:
1. parse the suffix
2. parse fps with strtod - this format should allow 1920x1080@59.94i
3. related with the point 2. - do not adjust 59->59.94 if the above
format used - compared to BMD modes like Hi59, there the 59.94 mode
should be written in full (so 1920x1080@23 will be 23 FPS, indeed)
2025-05-19 15:01:33 +02:00
Martin Pulec
dcbdc046f0 video.cpp: IWYU 2025-05-19 15:01:33 +02:00
Martin Pulec
f708ce71bc get_video_desc_from_string: hint for fullhelp 2025-05-19 15:01:32 +02:00
Martin Pulec
5fc338cffb get_video_desc_from_string: interl. unless progr.
all interlacing modes are actually interlaced except PROGRESSIVE
2025-05-19 15:01:15 +02:00
Martin Pulec
b79ea0678a configure.ac: set sdl_version after sdl checked
For actual sdl check, the emptiness of sdl_version is evaluated. But later
it is useful to have it =0 for numeric comparisons (2c577ace) so set it
in after sdl check. The depending modules can use $sdl variable later.
2025-05-07 13:50:49 +02:00
Martin Pulec
af2981758b coreaudio: add alloc assertions 2025-05-07 10:13:06 +02:00
Martin Pulec
5a32d7c601 deltacast_common.hpp: fix inverted condition
today's change; just a warning fix
2025-05-06 15:42:36 +02:00
Martin Pulec
454eb7bf6a deltacast: warn if compiling with VideoMaster 6.20
It can be alos 6.19, for which this won't compile, -DVHD_IS_6_20 can be
used to silence the warn for 6.20.
2025-05-06 12:30:42 +02:00
Martin Pulec
2db3abf8f9 vdisp/decklink: do not set pfpr=false
Do not set bmdDeckLinkConfigOutput1080pAsPsF ('pfpr') to false by
default. Most likely not needed and user may configure the device by
itself according to the needs.
2025-05-06 12:28:30 +02:00
Martin Pulec
319cfdeef6 decklink: deprecate PsF in/out options
Since now the options can be specified generically by FourCC 'cfpr' (capture) and 'pfpr'
(display), there is no need to have this explicitly.

Also it doesn't seem to be much useful (at least with the PsF stream from
XDCAM, the stream is detected to be interlaced, not progressive, even
though decklink reports BMDDeckLinkSupportsAutoSwitchingPPsFOnInput=yes).
2025-05-06 12:28:30 +02:00
Martin Pulec
26031495f4 macos_bundle_libs.sh: skip scripts for dylibbundle
do not run dylibbundler on shell scripts
2025-05-06 12:27:58 +02:00
Martin Pulec
0bc1215c7f acap/coreaudio: fix outputting empty frames
a race condition

Prior to e511f898 (2024-11-14) and still in the stable branch, it
produces:
[Audio decompress] 2 empty channel(s) returned!
2025-05-05 13:54:00 +02:00
Martin Pulec
19f19c300a from_lavc_vid_conv: fix -Wcast-align (clang) 2025-05-05 12:59:36 +02:00
Martin Pulec
a044f90793 fix some warnings (gcc 15.1.1)
(the problem with color_printf was passing unsigned char literal as the
char* parameter of color_printf)
2025-05-05 12:37:07 +02:00
Martin Pulec
c712a3b356 blackmagic_common: remove cstdbool
unnneeded as bool has been a fundamental type in C++ always, triggers
a warning
2025-05-05 12:24:33 +02:00
Martin Pulec
33b222c34c from_lavc_vid_conv: CS warn only once 2025-04-30 16:08:23 +02:00
Martin Pulec
9b31e8c6af -l help - proper regex
While the pattern is specified as a regex, use correct syntax for
the numbers.
2025-04-30 15:38:10 +02:00
Martin Pulec
d9cd9aedaa vo_postprocess: IWYU 2025-04-30 13:29:38 +02:00
Martin Pulec
d5a42c5d0c vcap,vdisp/deltacast: add ch_layout option
For cards with bidirectional channels, it allow setting RX/TX layout
(actually the ratio of RX/TX channel count, not arbitrary selection).
2025-04-30 10:52:04 +02:00
Martin Pulec
b80facecd2 deltacast_common: print bidir ch support 2025-04-30 10:50:13 +02:00
Martin Pulec
858453d765 vcap/deltacast_dvi: accept fullhelp
+ improved cfg handling
2025-04-30 10:50:12 +02:00
Martin Pulec
f423d75b4a vcap,vdisp/deltacast: print option help 2025-04-30 10:50:10 +02:00
Martin Pulec
5343f81935 deltacast (all): print avail devs more reasonably
Print separate seaction with deveices in :help as it is common in other
modules (eg. decklink). Previously, this was written as a part of the
option describing "device:", but it doesn't seem appropriate.

+ 2 tab indent for (optional) device channel listing (parent 1 tab)
2025-04-30 10:49:29 +02:00
Martin Pulec
579f94d394 vdisp/deltacast: initial support for channel spec 2025-04-30 10:49:27 +02:00
Martin Pulec
c44d3030ae vcap,vdisp/deltacast: VHD_OpenStreamHandle once
in multiple branches, the call of VHD_OpenStreamHandle differs only by
the ProcessingMode function parameter -> simplify
2025-04-30 10:45:49 +02:00
Martin Pulec
db93394a09 vdisp/deltacast: reconfigure: avoid goto 2025-04-30 10:45:49 +02:00
Martin Pulec
96084447b5 vcap/deltacast: request channel idx + 1 RX channels
For bidirectional cards (eg. deltacast hd elp-d 80), the channels can be
configured in a layout that lower indices are assigned to RX and higher
to TX (so 0-8 lower-indexed pins are RX and the rest is TX).

So if using RX channel=2 (zero-indexed), at least 3 RX channels need
to be taken in order for the 3rd channel to be RX.
2025-04-30 10:45:49 +02:00
Martin Pulec
96e0ae2ef1 vcap/deltacast: attempt to fix/improve quad-chan
- if quad channel not enabled, do not disable bypass relay on channel
other than selected
- assume that quad-channel starts from channel=0 (== channel is not
explicitly specified)
- delta_set_nb_channels called with 4 rx channels, not one (as in
Sample_RX4K.cpp)
2025-04-30 10:45:48 +02:00
Martin Pulec
222fdbd608 vdisp/deltacast: avoid gotos 2025-04-30 10:45:46 +02:00
Martin Pulec
7235cac197 vdisp/deltacast: destroy only what initalized
do not rely to much on state_deltacast::initialized

+ do not leak pthread_mutex_t
2025-04-30 10:44:51 +02:00
Martin Pulec
8d2dcf7831 vdisp/deltacast: add fullhelp (print channels) 2025-04-30 10:44:46 +02:00
Martin Pulec
c6494f43f6 vdisp/deltacast: parse_fmt: prefix+accept empty
- accept options by prefix (currently just one - "device")
- accept `-d deltacast` - it used to work in original code but since
some time ago, the empty option string is passed, not NULL (which
originally worked)
2025-04-30 10:39:27 +02:00
Martin Pulec
105270aaac vdisp/deltacast: opt parsing to parse_fmt 2025-04-30 10:39:27 +02:00
Martin Pulec
2ba741b232 vcap/deltacast: if parse_fmt fails, call _done
s->frame needs to be also deallocated
2025-04-30 10:39:27 +02:00
Martin Pulec
4381d382ae vdisp/deltacast: IWYU 2025-04-30 10:39:27 +02:00
Martin Pulec
8c81a3687b vcap,vdisp/deltacast: add SDK reference 2025-04-30 10:39:27 +02:00
Martin Pulec
eed4f25ed8 vcap/deltacast: support also different channel than the 1st 2025-04-30 10:39:25 +02:00
Martin Pulec
1e2d092d62 vcap/deltacast: avoid goto 2025-04-30 10:27:43 +02:00
Martin Pulec
e03fa9f815 vcap/deltacast: parse_fmt: small updates
- use MSG()
- print incorrect codec entered
- print usage if unknown opt passed
2025-04-30 10:27:38 +02:00
Martin Pulec
3f57f9feea vcap/deltacast: move opt parsing to parse_fmt 2025-04-30 09:52:05 +02:00
Martin Pulec
54ddd869af vcap/deltacast_dvi: move ch to stream t to fn
moved to common function to be used otherwise

Also increase the maximal index from 3 to 7.
2025-04-30 09:52:05 +02:00
Martin Pulec
59aefbc78d vcap/deltacast: accept option prefixes 2025-04-30 09:52:05 +02:00
Martin Pulec
181cd8db33 vcap/deltacast: add fullhelp to print avail channels 2025-04-30 09:52:04 +02:00