Commit Graph

181 Commits

Author SHA1 Message Date
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
Martin Pulec
f364cc0a8c Added NAT PMP 2020-11-23 09:12:43 +01:00
Martin Pulec
49dd332639 SDP: Set correct IP version
+ some documentation
2020-11-11 15:56:23 +01:00
Martin Piatka
4dcf316276 Add simple profiler
Only built when -DBUILD_PROFILED is defined. To enable profiling set
output file name using the UG_PROFILE enviroment variable. The profiler
will then output a file which contains profiling data viewable in
Chromium (chrome://tracing). Use the macro PROFILE_FUNC at the start of
c++ functions  you want to include in the profiling
2020-09-30 12:55:15 +02:00
Martin Pulec
81fabcb61b Implement vo_postprocess filter chain
Currently it is intended rather only for simple filters that do not change
format much (especially tiling mode). When combining filters that change
video properties some issues may occur.
2020-08-13 15:22:41 +02:00
Martin Pulec
aaa7356baf SDP: added autorun option 2020-06-14 14:25:47 +02:00
Martin Pulec
6e25b47a69 SDP: support for undefined IP version 2020-06-12 14:52:36 +02:00
Martin Pulec
0c0996b1d0 get_local_addresses: AF may be also different than AF_INET/AF_INET6 2020-06-12 14:47:11 +02:00
Martin Pulec
7a68e8722d SDP/HTTP: provide security.txt and robots.txt 2020-06-12 11:40:23 +02:00
Martin Pulec
c47eef2d19 Removed sdp_global variable 2020-06-11 14:49:49 +02:00
Martin Pulec
b67a4a3994 SDP: updates
- option to specify file (or disable)
- always use the generated SDP (do not read any file)
- return the SDP on every HTTP request
2020-06-11 10:25:01 +02:00
Martin Pulec
e81ea542f6 Win: fixed warnings 2020-06-09 15:26:42 +02:00
Martin Pulec
e6720365f3 Win compilation fix 2020-05-22 12:03:32 +02:00
Martin Pulec
9950cfdfe1 Use maybe_unused attribute only for C++17 2020-05-21 09:00:41 +02:00
Martin Pulec
3bae0c8f16 JPEG reader: updated hint text 2020-05-15 15:21:23 +02:00
Martin Pulec
746e39dc07 PAM: updates 2020-05-15 09:17:39 +02:00
Martin Pulec
948d22bfa8 Logo cap. f.: separate PAM reading to header
+ added simple writer that may be useful
2020-05-13 13:22:21 +02:00
Martin Pulec
1a5b40b2e5 Video frame pool: added C API 2020-05-05 11:19:31 +02:00
Martin Pulec
319661fdbb Video frame pool: added helper function + default parm 2020-05-05 11:19:25 +02:00
Martin Pulec
180aa49711 vf_merge_tiles: copy compress_start timestamp 2020-04-22 22:32:00 +02:00
Martin Pulec
24a2645aba AJA: prepare for CI build 2020-02-11 15:44:19 +01:00
Martin Pulec
78b0630e5f XIMEA: configure fix, Coverity+clang-tidy warnings
- paths were not deduced when GENICAM_GENTL64_PATH was set
2019-12-02 16:47:30 +01:00
Martin Pulec
92a58c3f8c Indicate to compiler that color_out and log_msg are printf-alike
+ include config_* headers in some sources that don't (and include
  debug.h which now needs the ATTRIBUTE macro)
2019-11-21 16:51:03 +01:00
Martin Pulec
5f0ce56dc2 Color_out: flush output
Prevent interleaving formatting ESC sequences with different streams
when not flushed.
2019-11-21 13:48:06 +01:00
Martin Pulec
fa7ecd4048 Win32 alarm compat 2019-11-20 07:40:11 +01:00
Martin Pulec
7f17d8734c Fixed another Coverity bugs 2019-11-19 08:22:50 +01:00