Martin Piatka
ef0806da14
audio dithering: Fix some problems
...
* Replace bit shift with integer division - Shifting doesn't behave
nicely for negative numbers, for example -2 >> 8 equals -1. This
introduces distortion
* Use rounding from 0.5 up - Truncating introduces distortion, because
the interval of numbers that round to 0 is disproportionaly big (-1, 1).
* Replace random number generation with a faster algorithm
With all theese changes, the code is also a bit faster.
2022-02-09 12:04:05 +01:00
Martin Pulec
f59ca12da4
GitHub CI: take EWS from upstream
...
Our compatibility fixes were already merged so we can use the code from
upstream.
2022-02-09 10:02:48 +01:00
Martin Piatka
9adf805bc3
Update NEWS
2022-02-08 11:59:20 +01:00
Martin Pulec
3a0c77894c
audio testcard: compact includes
2022-02-08 08:37:32 +01:00
Martin Pulec
ecdbe056b5
audio testcard: dither when needed
...
Dither if the nominal frequency and sine frequency are coprimes.
2022-02-08 08:37:32 +01:00
Martin Pulec
505e648b8a
chage_bps2: small fixes
...
- if in/out bps matches, use memcpy
- static assert implementation-defined behavior we depend on
(right-shifting negative LHS)
2022-02-08 08:37:32 +01:00
Martin Pulec
5d1a5dc1ad
audio utils: option to disable dithering
...
In special cases (eg. 8-bit audio), user may want to opt out from
dithering because the artifacts may be more acceptable than the noise.
2022-02-08 08:37:32 +01:00
Martin Pulec
c9c1152dec
simplify flow in change_bps()
2022-02-08 08:37:29 +01:00
Martin Piatka
1a1a86d6e7
hd-rum-translator: conference mode now automatically sends back
2022-02-07 15:34:14 +01:00
Martin Piatka
3df08a20f2
net_udp: add udp_recvfrom_timeout()
2022-02-07 15:34:14 +01:00
Martin Piatka
49c1dc2ebd
utils/net: sockaddr_str separate funcs for addr and port
2022-02-07 15:34:14 +01:00
Martin Pulec
f11a3a981a
GL: option to disable 10-bit display
2022-02-04 16:36:52 +01:00
Martin Pulec
5b3fa7261d
Lavd: print output pixel format if there is no selection
...
Until now, it has been output only in get_format() callback but this
function isn't run by all decoders (eg. when there is no options to
select from).
2022-02-03 15:41:10 +01:00
Martin Pulec
15f49a2788
moved bootstrap_gpujpeg.sh to ext-deps
...
+ updated the script to work from any UG repo subdir (not only top level)
2022-02-03 15:41:10 +01:00
Martin Pulec
66140e1f3e
zfec configure+CI: use /usr/local/src
...
- install only zfec subdirectory, not whole repo
- macOS blocks creating files directly in /usr(/src)
2022-02-03 15:41:10 +01:00
Martin Pulec
05f7642823
configure.ac: zfec help string - missing DIR
2022-02-03 15:41:09 +01:00
Martin Pulec
7c613e380a
GitHub CI: install also zfec to /usr/src
...
Although nowadays rarely used, /usr/src is a convenient place for
system-wide sources (aka libraries), so use it. Also it also removes the
need for hard-coded path.
2022-02-03 15:41:09 +01:00
Martin Pulec
dea2c0a5aa
GitHub CI [Linux, Mac]: install Cineform normally
...
In order not to depend on hard-coded path.
2022-02-03 15:41:09 +01:00
Martin Pulec
035d13ece6
configure.ac: check also CineForm SDK pkgconf
...
But give it a low priority - the pkg configuration seems to be wrong -
-lCFHDCodecStatic is in LIBS but libCFHDCodec.a is actually generated.
2022-02-03 15:41:09 +01:00
Martin Pulec
b89a02bf4c
GitHub CI [Win]: Cineform compilation workaround
2022-02-03 15:41:09 +01:00
Martin Pulec
9b01fcd803
.github/scripts/macOS/prepare.sh: small updates
...
moved modules to separate functions
2022-02-03 15:41:08 +01:00
Martin Pulec
fb1bd77bfb
GitHub CI: download zfec/cineform directly from upstream
...
+ removed gpujpeg/cineform from monitored paths in workflow file
2022-02-03 15:41:08 +01:00
Martin Pulec
06dd9beca4
configure.ac: added alternative lookup path for zfec
2022-02-03 15:41:08 +01:00
Martin Pulec
8c0f779145
NDI: added fallback directory in Windows
...
If the environmnet variable NDI_RUNTIME_DIR_V5 is not defined from any
reason, try the location where NDI is usually installed
(C:\Program Files\NDI\NDI 5 Runtime\v5).
2022-02-03 15:41:08 +01:00
Martin Pulec
9c6009c263
updated make_man.sh: added UV_PATH env var
...
+ fixed bold output (was bash specific)
2022-02-03 15:41:07 +01:00
Martin Pulec
a81b5b83fd
AppRun: fixed shellcheck complains
2022-02-03 15:41:07 +01:00
Martin Pulec
c3320314b4
resampler: tunable quality
2022-02-03 15:41:05 +01:00
Martin Piatka
82a4b1abda
hd_rum_translator_state: Use default member initializer
...
Makes it harder to forget to initialize newly added members
2022-02-02 16:31:15 +01:00
Martin Piatka
117c1a2af7
Updated NEWS
2022-02-02 15:44:50 +01:00
Martin Piatka
26b0baf38b
hd-rum-translator: simplify port creation
2022-02-02 15:03:22 +01:00
Martin Piatka
5932bbfb7d
hd-rum-translator: Add profiling macros
2022-02-02 13:47:41 +01:00
Martin Piatka
668df44a8e
control_socket: Disallow "port n compress" messages
2022-02-02 13:47:39 +01:00
Martin Piatka
7957155115
hd_rum_translator: Allow changing port compression again
2022-02-02 13:47:39 +01:00
Martin Piatka
7460563e98
hd_rum_translator: Reuse frames for ports with same compression
2022-02-02 13:47:39 +01:00
Martin Piatka
263a3e945f
GitHub CI: Fix cron string
...
The order of values is minute, hour, day-of-month, month, day-of-week
2022-02-02 10:26:19 +01:00
Martin Pulec
b3262428f6
testcard2: ifdef code not used without TTF
2022-02-02 09:55:40 +01:00
Martin Pulec
ecc26b813a
GitHub CI ARM: run automatically 20th day of month
...
run only in main repo on schedule
2022-02-01 14:48:47 +01:00
Martin Pulec
23c4b87611
GitHub CI Coverity: run automatically 20th day of month
...
if coverity token is present
2022-02-01 14:45:45 +01:00
Martin Pulec
cec2f43b32
fixed some (mostly Windows) warnings
2022-02-01 14:12:56 +01:00
Martin Pulec
dbd7332b4c
rtp: remove a branch that is always used
2022-02-01 14:00:25 +01:00
Martin Pulec
aa2671a7fa
utils/thread.c: set thread name in W10
...
The header doesn't yet include the SetThreadDescription() definition but
it is in the UCRT library so ship own declaration of the function for
now.
2022-02-01 12:01:31 +01:00
Martin Pulec
9d6497d597
testcard2: reworked synchronization
...
- pass generated data with testcard_state2::data variable + notify with
CV to thread that it is available
- use dispose to "automatically" manage grabbed frames
2022-01-31 16:29:18 +01:00
Martin Pulec
f741615683
testcard2: improve rendering speed
...
+ fixed leaked text surface
2022-01-31 16:29:18 +01:00
Martin Pulec
a2274bd1af
GitHub CI: install EWS from GitHub
2022-01-31 16:29:18 +01:00
Martin Pulec
64b494aecc
Removed EWS from sources
...
Take it as a dependency
2022-01-31 16:29:17 +01:00
Martin Pulec
910bc642f8
Rpi callbacks moved to rpi4_out.cpp
...
av_frame_wrapper_recycle() and av_frame_wrapper_copy() moved from header
to rpi4_out.cpp.
2022-01-31 16:29:15 +01:00
Martin Piatka
148a93a51d
utils/net: Fix printing port as signed short
2022-01-28 15:16:05 +01:00
Martin Piatka
9892fb3e2e
video_codec: vc_copylineRGBtoUYVY_SSE: Fix invalid read
2022-01-28 15:16:04 +01:00
Martin Pulec
2cb2146c9e
DeckLink cap.: print device name more highlighted
2022-01-28 09:26:32 +01:00
Martin Pulec
fa2bea1fb5
DeckLink cap.: make help more dense
...
- do not print device modes + connections - usually not needed because
there is signal autodetection with recent DeckLink cards and user
usually knows the connection directly
- print available color space more dense
The outcome is that the output fits (usually) one screen while avoiding
unnecessary items (but print all possible connections).
2022-01-26 16:31:32 +01:00