Commit Graph

6947 Commits

Author SHA1 Message Date
Martin Pulec
438dbfa465 CI: fixed debhelper-compat(=12) not found for SDL2
Fixed a fail in U20.04 (currently GH's ubuntu-latest) affecting
coverity-scan (continuous still using 18.04):

    https://github.com/CESNET/UltraGrid/actions/runs/3506409582

A dependency of libsdl2 debhelper-compat=12 is not available. apt
frontend can handle that somehow, but aptitude doesn't, so use apt to
install SDL2 dependencies (aptitude still used for mixer and ttf to
avoid installation of libsdl2 library itself).
2022-11-21 14:17:02 +01:00
Martin Pulec
6078d03277 crop: print correct help for cap. f.
Display '--capture-filter' in help, not '-p' if asked for capture filter
help.

+ info about cropping to bigger size
2022-11-21 14:17:02 +01:00
Martin Pulec
871012dcc8 use crop vo_pp also as capture filter 2022-11-21 14:17:02 +01:00
Martin Pulec
cf179fa870 crop vo postprocess: moved to C 2022-11-21 14:17:01 +01:00
Martin Pulec
b5cc0e9a1b removed some rang.hpp references 2022-11-21 14:17:01 +01:00
Martin Piatka
c3eff4fb9f GUI: ssrc_container: Zero initialize the new item
The remaining fields were set after the push_back(), but coverity
doesn't like that.
2022-11-21 13:26:40 +01:00
Martin Piatka
da228eea58 GUI: recv_loss: Guard against divide by zero 2022-11-21 13:26:40 +01:00
Martin Piatka
3c11b40eb8 GUI: rtcp RR widget: remove trailing '\n' in tooltip 2022-11-21 13:26:39 +01:00
Martin Pulec
fd8a6e977a GitHub CI [Linux]: use cmake for build/install instead of make
see also commit f7bf7e9f
2022-11-16 14:40:46 +01:00
Martin Pulec
76f713ca16 CI Win: improve potentially space-delim input read
Do not use the IFS magic to handle space-delimited libraries, use "while
read" instead. This should fix accidental fails as here:

   https://github.com/CESNET/UltraGrid/actions/runs/3477335229/jobs/5813393766
2022-11-16 14:03:51 +01:00
Martin Pulec
7786e44252 audio capture: removed no longer used help callback
Originally it was used to printout all modules' devices at once which is
no longer the case. Now only module names are printed with '-s help' and
individual modules need to be queried further, as it is usual otherwise
in UG.
2022-11-16 13:18:52 +01:00
Martin Pulec
842a86b82f CI: patch SVT-HEVC patch
again not working
2022-11-16 12:14:22 +01:00
Martin Pulec
4cba76e800 CI Linux: moved the code around a bit
It seems like that changing arbitrary packages installed (dependencies
for SDL) cause some FFmpeg dependencies to be rebuild (libvpx, SVT-*).

So revert back to depending on whole .github/scripts/Linux/prepare.sh
but move building/installation of AJA, live555 etc. to separate file
to reduce cached FFmpeg rebuilds at least a bit.

+ removed chmod 777 /usr/local
2022-11-16 11:15:43 +01:00
Martin Pulec
868ddab9be CI Linux: cache built SDL 2022-11-16 11:13:27 +01:00
Martin Pulec
34286fa123 configure: remove misleading message
avoid message:

    Package SDL2_mixer was not found in the pkg-config search path.
    Perhaps you should add the directory containing `SDL2_mixer.pc'
    to the PKG_CONFIG_PATH environment variable
    Package 'SDL2_mixer', required by 'virtual:world', not found

if sdl2_mixer is not present
2022-11-16 11:09:48 +01:00
Martin Pulec
42e5fd03e1 moved ref_counter to separate source
It is rarely used and we don't need to spoil c++ sources using misc.h
with <optional> header.
2022-11-16 09:07:15 +01:00
Martin Pulec
2cf167d57f added ULTRAGRID_ERRORS_FATAL environment variable
has same effect as `--param errors-fatal`

+ more verbose documentation of this in the `--param help`
2022-11-15 16:21:40 +01:00
Martin Pulec
9469d6352c document ULTRAGRID_VERBOSE + added some doxygen 2022-11-15 16:13:50 +01:00
Martin Pulec
c2437894fa GL: fixed irregular sized v210 display
fixed `-d gl` of `-t testcard:size=47x32:codec=v210` or `..size=48x32`

The problem was perhaps with truncation of a number slightly below
nearest integer. Result was a "broken" bar of a testcard (in midst it
was shifted by one horizontal pixel).

Quite a huge eps is needed in macOS - .49999 cut-off was not sufficient
for `size=$((48*53))x$((32*53))`.
2022-11-15 16:13:50 +01:00
Martin Pulec
5763273636 GL: improved v210 shader
- simplified comutations (n + .5) instead of (n + 1.) / 2.
- documentation
- renamed imageWidthOrig to imageWidthRaw - it was confusing because
  the originl version used size and sizeOrig, where sizeOrig is our
  imageWidth and size, which is now imageWidthRaw, was imageWidthOrig
  before
+ exit if (any) shader compilation fails and errors are treated as fatal
  (`--param errors-fatal`)
2022-11-15 16:12:45 +01:00
Martin Pulec
742b677da7 GL: fixed odd UYVY pixel width
fixed rendering `-t testcard:size=47x32:codec=UYVY`
2022-11-15 11:46:10 +01:00
Martin Pulec
0364f0253e GL: fixed displaying of R10k width % 64 != 0
R10k line is padded to 256 B (as DeckLinks requires) so widths not
divisible by 64 pixels were not displayed correctly.

Not sure if AJA holds also this convetion, it is not mentioned in docs
for NTV2_FBF_10BIT_DPX. However, SDI formats' line widths are generally
divisible by 64 pixels so it is not relevant there.

Steps to reproduce the problem were:

    uv -t testcard:size=48x32:codec=R10k -d gl
2022-11-14 16:44:16 +01:00
Martin Pulec
5433765b41 display FPS indicator bg color fix
Since display FPS indicator has set background color, using something
like "[Decklink display] " caused also the trailing space background to
be colored, which doesn't look nice.
2022-11-14 15:39:39 +01:00
Martin Pulec
91691bcfd5 vidcap: renamed vidcap_generic_fps
used better descriptive name
2022-11-14 14:55:51 +01:00
Martin Pulec
45b010f53f AppRun: print man page only if 1-2 param given
Do not interfere with UltraGrid -m parameter -- show man if only 1-2
parameters given (`uv -m 1500` doesn't make much sense for UG),
otherwise pass it to UltraGrid.

This allows using commands like `UltraGrid-continuous-x86_64.AppImage -m
1316 -t testcard -d gl` (`-m` MTU parameter at the first place).
2022-11-14 10:18:39 +01:00
Martin Pulec
c5395fe662 DeckLink drift fixer: set SoxR as default 2022-11-14 08:57:48 +01:00
Martin Pulec
4b0b79678c GL: do not fail if shader compile fails
It is possible that some old card do not compile all shaders, eg. in
Windows 10 HD Graphics 3000 doesn't compile v210_to_rgb_fp.

Instead of aborting (until last commit), just disable the codec and let
video decoder to decode it to some of other supported codecs.
2022-11-11 16:39:27 +01:00
Martin Pulec
b39ce112f0 glsl_compile_link: no abort if compile/link fails
Do not abort if compile/link fails but return 0. Some of callers already
expect returning 0 on error.

+ print the errors with ERROR severity to be more obvious in program output
2022-11-11 16:39:26 +01:00
Martin Pulec
abc8fe8c94 GL dxt1_yuv: small cleanup
use commonly used GLSL sampler name + rename program
2022-11-11 16:39:26 +01:00
Martin Pulec
d0dc2c0280 RTDXT: added for DXT1_YUV
Perhaps not much useful nowadays but at least for testing (and because
we have that codec in UG anyways ;)).
2022-11-11 16:39:24 +01:00
Martin Pulec
d72f3fe8ff DeckLink: BMD_CONFIG_SET_ACTION->BMD_CONFIG_SET
+ prepend '\t' to decklink display device (prettier)
2022-11-11 12:13:11 +01:00
Martin Pulec
144b3df56a GL: fixed displaying of odd number UYVY 2022-11-11 11:26:59 +01:00
Martin Pulec
a15533d44a updated bug reporting documentation 2022-11-11 11:26:58 +01:00
Martin Piatka
930b5097ac GUI: recv widgets: Force Fusion style on win & mac
Native mac progressbars don't display the text, while windows style
displays it next to the bar in an ugly way.
2022-11-10 16:15:31 +01:00
Martin Piatka
91c1b0818c GUI: Disable recv loss widget when preview is running 2022-11-10 16:15:31 +01:00
Martin Piatka
4335246369 GUI: rtcp RR: support multiple streams 2022-11-10 16:15:31 +01:00
Martin Piatka
cd6b302bea GUI: rtcp RR widget: move parsing inside the class 2022-11-10 16:15:31 +01:00
Martin Piatka
e97e74957f GUI: recv_loss: Factor report collection into own class 2022-11-10 16:15:30 +01:00
Martin Piatka
a9a95bf11e RTP callback: print number of packets since last RR 2022-11-10 14:51:31 +01:00
Martin Piatka
eba3128739 RTP: Store RR after calling callback
This makes the previous RR accessible in the callback
2022-11-10 14:51:31 +01:00
Martin Piatka
f952a66cff GUI: parse RR with new format 2022-11-10 14:51:31 +01:00
Martin Piatka
ff5d24e3b9 RTP callback: Print SSRC associated with RR 2022-11-10 14:51:30 +01:00
Martin Piatka
08e8f36ec1 GUI: recv loss: add tooltip 2022-11-10 14:51:30 +01:00
Martin Piatka
f3cfce7fd7 GUI: recv_loss: support multiple ssrcs 2022-11-10 14:51:30 +01:00
Martin Piatka
477413c13f GUI: Add recv loss indicator 2022-11-10 14:51:29 +01:00
Martin Piatka
3636c3e64c GUI: Move receiver report to preview bar 2022-11-10 12:04:43 +01:00
Martin Piatka
8ceb36c1e7 GUI: Add information bars under preview 2022-11-10 12:04:43 +01:00
Martin Piatka
5ce1cae445 GUI: Fix alignment for preview labels 2022-11-10 12:04:42 +01:00
Martin Piatka
94289f27f6 GUI: Hide only previewWidget when disabling preview 2022-11-10 12:04:42 +01:00
Martin Piatka
fd3d7f9dd9 string_view_utils: Add sv_is_prefix() 2022-11-10 12:04:42 +01:00