Martin Pulec
3639d00dbf
replaced not thread-safe *rand48 functions
...
Use rand_s() in Windows and random() in POSIX systems.
2023-08-02 10:07:19 +02:00
Martin Pulec
a4d88298f7
win: common err to string func
2023-02-27 09:49:20 +01:00
Martin Pulec
717b575d87
qsort_s comparator compat macro
...
comparators can be defined utilizing the macro to avoid fiddling with
ifdefs
+ use it in lavc conversions
2023-02-21 10:46:47 +01:00
Martin Pulec
0aaf9fff99
qsort_s compat: relax requirement to include first
...
If includer defines __STDC_WANT_LIB_EXT1__ to 1, it is no longer needed
to include this header first.
2023-02-10 15:13:17 +01:00
Martin Pulec
62f143f939
config_common.h: removed macros.h include
2022-11-22 14:50:19 +01:00
Martin Pulec
c132fcc9fe
removed gettimeofday win32 replacement
...
The replacement was recently (since 6dfd098d ) used even despite the
built-in has been implemented. The replacement was there because it
has supposedly better precision than the built-in. But since it is
no longer true (if it ever was), it is removed.
Note: there is also timespec_get (or UG wrapper get_time_in_ns) that can
be used in recent code instead of POSIX gettimeofday.
2022-10-13 12:15:40 +02:00
Martin Pulec
2066262f3a
JACK: use platform_semaphore
...
POSIX semaphores are deprecated on macOS
+ keep error checking from JACK and moved it to platform_semaphore
+ reorder includes alphabetically
2022-10-03 16:01:53 +02:00
Martin Pulec
888dbe14d5
removed platform_spin
...
There is perhaps no need to use spin lock - pthread mutexes have low
overhead if no contention takes place, anyway.
+ replaced platform_spin with pthread_mutex in resource manager
+ document why resource manager is needed
2022-04-01 10:28:55 +02:00
Martin Pulec
f84c5ec859
VideoToolbox: offer also P210
...
If decoding to swformat fails, try to use also P210 depending. It is
used if >8 bits video is present, otherwise UYVY is preferred.
2022-03-30 16:51:35 +02:00
Martin Pulec
90686125c9
gettimeofday win32 compat: use timespec_get
2022-03-18 08:52:32 +01:00
Martin Pulec
89a4050c76
lib_common: move dlopen etc compat to separate src
...
It is a bit needless to compile the dlerror() commat in a huge number of
sources including that file. Moreover, the compat functions are not
direcly linked to modules' infrastructure in UG, which was piggy-backed
to.
2022-03-11 10:48:49 +01:00
Martin Pulec
1b3b27eb7c
Updated copyright dates for modified files
2021-11-08 15:43:14 +01:00
Martin Pulec
3cc5281a40
Compile usleep only if not found
...
Do not use always our usleep implementation on MSW - MSYS2/CLANG64 has
its own implementation.
2021-09-06 13:32:06 +02:00
Martin Pulec
4cc3e442b1
Added strdupa compat
2021-08-05 09:28:52 +02:00
Martin Pulec
34c8055dc8
Small include changes
...
To allow some files compile outside UltraGrid (without config.h) for
standalone convert.
2021-06-14 16:57:14 +02:00
Martin Pulec
376e3e4bcf
gettimeofday_replacement: improved computitation
...
* simplified + keep computation in long long
* overflow check with DEBUG
2021-05-28 08:52:00 +02:00
Martin Pulec
4aaec8f7f0
Fixed some Coverity warnings
2021-02-23 15:00:58 +01:00
Martin Pulec
51f2bda963
Plaform pipe: fixed getsockopt len
2020-11-24 15:47:18 +01:00
Martin Pulec
efd2c70235
Platform pipe: use plain pipe if TCP compat fails
...
Use plain pipe if the TCP compat fails in Linux. This fixes a problem
when there is unavailable loopback connection (eg. running in a separate
network namespace with unassigned loopback address).
2020-11-10 14:04:28 +01:00
Martin Pulec
4554f956ef
Platform pipe: add timeouts
...
Do not hang if anything goes wrong (eg. loopback doesn't connect).
2020-11-10 12:53:29 +01:00
Martin Pulec
37f55d45f3
Platform_pipe: call WSAStartup/WSACleanup explicitly
...
Not all pipes are destroyed upon common_cleanup call (which calls
WSACleanup).
2020-01-21 10:29:10 +01:00
Martin Pulec
49c00c1304
Fixed usleep compat
...
Currently it was not compiled at all because of incorrect guard macro
(HAVE_WIN32 instead of WIN32) and thus a MinGW implementation was used.
However, the compat function may still be used eg. when we will build
with VS.
2019-11-20 15:54:45 +01:00
Martin Pulec
fa7ecd4048
Win32 alarm compat
2019-11-20 07:40:11 +01:00
Martin Pulec
31d9809fcd
Updated documentation
...
Updated authors, copyright to 3-clause BSD (where possible) and file-level Doxygen
2019-11-09 13:47:11 +01:00
Martin Pulec
c0677ab2e7
Fixed Windows crash
...
+ be more verbose about errors
2019-11-09 13:46:52 +01:00
Martin Pulec
a7e7eb4e2e
time_since_epoch_in_ms: fixed types for 32-bit arch
2019-09-11 15:46:18 +02:00
Martin Pulec
86874cb8a9
SDP: support for MSW
2018-10-18 16:27:42 +02:00
Martin Pulec
dfcd5a1084
Platform pipe: tiny change
2018-04-24 09:59:32 +02:00
Martin Pulec
6a1ee06b48
Fixed another Coverity bugs
2017-03-22 13:44:17 +01:00
Martin Pulec
8b4679710d
Import: correctly close socket on error
...
+ use CLOSESOCKET macro instead of close
+ moved CLOSESOCKET macro to config_unix.h and config_win32.h
2017-03-17 15:39:04 +01:00
Martin Pulec
dea75d100d
Readded compatibility with macOS 10.11 and earlier
...
CLOCK_REALTIME is available only since macOS 10.12 and was used just in
the platform_time.c file (under macOS).
2016-10-13 14:10:34 +02:00
Martin Pulec
9d4c7aae2d
Removed some compat function
...
For compatibility with macOS Sierra which has conflicting version of
these.
2016-10-12 16:41:18 +02:00
Martin Pulec
892883df02
Fixed some Coverity bugs
2016-06-28 17:33:24 +02:00
Martin Pulec
6e14f02535
Added time func for millisecs from epoch
2016-03-10 13:28:03 +01:00
Martin Pulec
83c9421b4a
Fixed some Coverity issues
2015-10-19 11:31:10 +02:00
Martin Pulec
3683438e6a
Use pipe supplement over loopback
...
There isn't pipe() command on MSW, so use this version to supplement it.
2015-07-13 10:06:58 +02:00
Martin Pulec
f5ebc40e02
MinGW compatibility fixes
2014-04-04 17:15:05 +02:00
Martin Pulec
af15bf84bd
Fixed some additional compiler warnings (GCC)
2013-07-11 13:40:15 +02:00
Martin Pulec
b311366ed1
Allow remote control of compression
2013-05-28 15:48:49 +02:00
Martin Pulec
9acd1d86bc
Enable runtime reconfiguration of FEC
2013-05-28 15:48:49 +02:00
Martin Pulec
4131c4b131
Merge branch 'master' into trunk
...
Conflicts:
configure.ac
src/audio/audio.c
src/rtp/decoders.c
src/video_codec.c
src/video_compress.c
src/video_compress/fastdxt.c
src/video_decompress.c
src/video_decompress/dxt_glsl.c
2013-01-15 10:05:56 +01:00
Martin Pulec
66cb5ee9da
Some Windows compatibility tweaks
2012-10-24 11:09:08 +02:00
Navsteva
6dfd098d2f
Support fow Windows
...
* DeckLink
* OpenGL
* FastDXT
2012-10-23 11:42:49 +02:00
Martin Pulec
4073cb1c27
added usleep for Win32
2012-10-15 14:56:20 +02:00
Martin Pulec
4bcb0d8ae1
added video export
2012-09-27 16:17:19 +02:00
Martin Pulec
bb5b84d9ea
Restructuralize directory structure
...
* content of ultragrid/ subdirector moved to root
2012-07-02 18:24:25 +02:00