Commit Graph

206 Commits

Author SHA1 Message Date
Martin Pulec
81bb2d7397 Image pattern generator: simplified a bit 2021-11-12 09:54:46 +01:00
Martin Pulec
e2bedca34d Image pattern generator: fixed gradient2
- "gradient" is prefix of "gradient2" and the first was checked earlier
  thus gradient2 was never selected
- incorrect check for boundaries with min instead of max
2021-11-12 09:38:15 +01:00
Martin Pulec
1b3b27eb7c Updated copyright dates for modified files 2021-11-08 15:43:14 +01:00
Martin Pulec
3c8c126ce9 nat.c: fixed uninitialized var (Coverity) 2021-10-27 14:35:07 +02:00
Martin Pulec
04734e0ebc Define ug_strerror for thread-safe strerror abstraction 2021-10-26 10:49:07 +02:00
Martin Pulec
698ab75308 NAT PMP: updated timeout handling
- chech return value of getnatpmprequesttimeout()
- break the loop after 5 seconds (to avoid infinite loop)
2021-10-18 08:53:12 +02:00
Martin Pulec
a2593b0a8a SMPTE bars: fixed column count
Smpte bars doesn't have the eight colum as EBU has.

Moreover the pattern is not complete - the bottom third contains
different data - mention this in help + todo.
2021-10-14 10:52:49 +02:00
Martin Pulec
19e4110e6b Image pattern generator: use enum to indicate bit depth 2021-10-14 10:52:48 +02:00
Martin Pulec
cfe793a23b Image pattern generator: adapt EBU bars gen also for SMPTE 2021-10-14 10:52:48 +02:00
Martin Pulec
2b47dd4acd Image pattern generator: added EBU bars 2021-10-14 10:52:48 +02:00
Martin Pulec
3e6e100849 unit_evaluate(_dbl): accept also negative values 2021-10-05 10:15:58 +02:00
Martin Pulec
ba5763ef1a NAT: don't show NAT traversal hint for priv addr
Do not show hint to use NAT traversal if user uses private or loopback
address as a peer address.

This avoids misleading displaying in otherwise legitimate cases -
transmissions over loopback or behind NAT but just inside LAN.
2021-10-04 11:24:15 +02:00
Martin Pulec
c4807ccd7b fs.{cpp,h}: fixed copyright date 2021-09-30 15:13:59 +02:00
Martin Beľa
6df2bdd2b5 Enable querying location of executable
-add function get_exec_path and C++ wrapper around it
2021-09-25 10:13:14 +02:00
Martin Pulec
5b1084e8b8 video_pattern_generator.cpp: noise - make it uniformly distributed 2021-09-14 08:40:00 +02:00
Martin Pulec
a3f33b75d0 SDP: removed no longer valid TODO 2021-09-09 14:20:42 +02:00
Martin Pulec
e6eb54cb08 SDP: use standard pthreads for EWS 2021-09-09 14:20:41 +02:00
Martin Pulec
924150a777 SDP: fixed HTTP server init/exit
Exitting is done with ptread_cancel() since EWS' serverStop() doesn't look
to stop the thread (it supposes that close() of the socket causes
interrupting accept() of the same socket, which isn't true in U21.04
and it is a hack anyway).
2021-09-09 14:20:40 +02:00
Martin Pulec
c35083fa91 Suppress clang warnings 2021-09-08 08:25:10 +02:00
Martin Pulec
f57fe9fba3 Rename PT_H264 to PT_DynRTP_Type96
The name was a bit misleading - H.264 may be mapped to any of dynamic
packet types (96-127). Neither the reverse mapping doesn't hold.
2021-08-24 18:56:03 +02:00
Martin Pulec
be1b46bf21 Cineform compress help improvements
- removed duplicate records
- print default values for thread count and pool size
2021-08-09 16:00:00 +02:00
Martin Pulec
0b668e9a05 Lavc: run the UG conversions in parallel
+ create helper for that
+ macro for default color shifts
2021-08-09 14:07:26 +02:00
Martin Pulec
6ad5c5adf2 File cap: options for queue len and thread type/count 2021-07-21 14:59:46 +02:00
Martin Pulec
06255cf41f Server: print client identifier 2021-06-29 16:19:04 +02:00
Martin Pulec
b023e8e608 Added server/client mode
Allows NAT traversal when server (sender) is outside the NAT.
2021-06-29 08:59:29 +02:00
Martin Pulec
6ac6715da5 Small cross-compile fixes
- $GENICAM_GENTL64_PATH may be defined in Linux but the path inside the
dir is then invalid when cross-compiling for Windows
- rang.hpp included transitively from video_frame_pool.cpp needs _WIN32_WINNT
at least to _WIN32_WINNT_VISTA prior including other headers - it is
defined in config_win32.h
2021-06-24 16:42:58 +02:00
Martin Pulec
b23736770b Added image_pattern_raw
Added raw image data generator that user can use to provide raw image
data that won't be color-converted. This could be useful eg. for testing
out-of-range YUV values.
2021-06-16 12:27:14 +02:00
Martin Piatka
eab94c12c0 Remove some unused includes
Removes some unused includes reported by include-what-you-use
2021-06-08 15:22:25 +02:00
Martin Pulec
c0a17534cc Fixed newly detected Coverity issues 2021-05-20 11:04:52 +02:00
Martin Pulec
4ab7aaf643 Audio buffer: fixed minor leak 2021-05-17 13:27:06 +02:00
Martin Pulec
c13a84cd66 Another Windows fixes
UNIQUE_NAME is defined somewhere in MinGW headers.
2021-05-13 09:08:27 +02:00
Martin Pulec
4d259fa15d NAT: increase preallocation time to 30 s
If the realloc fails, next attempt is in 5 seconds which is the same
as the preallocation time which may cause an interrupt.
2021-05-08 16:07:03 +02:00
Martin Pulec
af05b44fcf Separated pattern generator from testcard
Note: currently depends on testcard_common so it was moved as a core
object.
2021-05-05 09:00:58 +02:00
Martin Pulec
4aaec8f7f0 Fixed some Coverity warnings 2021-02-23 15:00:58 +01:00
Martin Pulec
4643b36b98 Do not ship NAT PMP - use system library 2021-02-15 08:19:12 +01:00
Martin Piatka
a2903813d5 Added cuda RGB, RGBA, UYVY pixel conversions 2021-02-11 16:18:15 +01:00
Martin Pulec
143456770b Video frame: copy whole frame metadata in some places 2021-01-12 15:42:33 +01:00
Martin Pulec
17d2109f95 Video frame pool: moved implementation from header
Possible when it is no longer a template.
2021-01-08 15:51:24 +01:00
Martin Pulec
dcdd7d1a9a Video frame pool: allocator as a parameter 2021-01-08 15:51:21 +01:00
Martin Pulec
9e67b0904d Video frame pool: added get_pod_frame 2021-01-08 15:50:06 +01:00
Martin Pulec
d23ce9aa0d NAT: fixed a crash
Fixed a crash when empty/dummy state was returned
2020-12-10 23:54:37 +01:00
Martin Pulec
95056b6ca8 Hint when private outbound addr detected 2020-12-01 15:09:53 +01:00
Martin Pulec
90a1543ad2 NAT: allow renewal interval specification 2020-12-01 14:12:30 +01:00
Martin Pulec
762b34eb33 NAT: added auto-renewal 2020-12-01 14:01:44 +01:00
Martin Pulec
801f4f1332 NAT PMP - updated debug messages 2020-12-01 08:27:06 +01:00
Martin Pulec
24ca1513ae NAT: allow method selection 2020-12-01 08:26:39 +01:00
Martin Pulec
1798011661 PCP: use sockaddr_in instead of sockaddr_storage
We currently use IPv4 only. But there was some odd behavior that it
didn't work with sockaddr_in (pcp_new_flow() didn't allocate the
stream, no output was print). Now it seems to work OK but look at it
again if there will be some problem.
2020-11-30 16:31:25 +01:00
Martin Pulec
8f09b9d227 Added PCP NAT traversal 2020-11-30 16:31:25 +01:00
Martin Pulec
c50a0384ea URL encode according to RFC 3986
+ option for HTML 5 encoding
2020-11-26 09:30:18 +01:00
Martin Pulec
5565c569e4 SPOUT: escape potentially harmful symbols for probe
Escape potentially harmful symbols for probe (eg. space would make
problems when passed to GUI).
2020-11-25 16:27:55 +01:00