Commit Graph

7965 Commits

Author SHA1 Message Date
Martin Piatka
ab031aaa84 acap/aes67: Fix CID897412 2025-11-25 12:04:10 +01:00
Martin Pulec
ff62efd4ed main,audio: utilize PTHREAD_NULL
to simplify (no need for separate bool)

In main, there were additional conditions to join - perhaps unneeded
(legacy?) -> removed. If it causes problems, it can be readded.
2025-11-21 15:46:37 +01:00
Martin Pulec
bf949d50b6 fix other pthread_t arithmetic comparison
should use `pthread_equal(thread_id, PTHREAD_NULL)`, see the commit HEAD~3
2025-11-21 14:41:25 +01:00
Martin Pulec
b1ec27dba8 audio_export_destroy: early return
just a refactor
2025-11-21 12:58:15 +01:00
Martin Pulec
13a243534c audio/export: IWYU 2025-11-21 12:38:57 +01:00
Martin Pulec
f148a90ef8 vcap/testcard2: use pthread_equal
Instead of fragile comparison of (in general) opaque pthread_t, use
pthread_equal.
2025-11-21 12:26:50 +01:00
Martin Pulec
15a905676c lavc cuda conv: disable by default + note
The actual implementation has not been merged as for now, so disable
the stub by default in configure.ac.

Also add a notice suggesting the removal.
2025-11-21 11:57:58 +01:00
Martin Pulec
5e2d73993d cmpto_j2k: silence logging in video_frame_pool
the exception is caught so it doesn't need to be print twice
2025-11-21 11:57:57 +01:00
Martin Pulec
4fb2f8ebaa Revert "cmpto_j2k: silence logging in video_frame_pool"
This reverts commit ac450db44219ec67ee96e41528fdef061148ee5f.
2025-11-21 11:57:57 +01:00
Martin Pulec
5ae28bd5e8 video_frame_pool: add constructor with struct
more flexible
2025-11-21 11:57:57 +01:00
Martin Pulec
afacb76e85 vcomp/cmpto_j2k: catch video pool exceptions 2025-11-21 11:57:57 +01:00
Martin Pulec
95aa7219d9 video_frame_pool: use logger + add noexcept(false)
- use logger for the e.what()
- get_frame() - mark as noexcept(false) (allowed to throw exceptions)
2025-11-21 11:57:57 +01:00
Martin Pulec
4986990f22 config_msvc: mv log_msg compat macros do debug 2025-11-21 11:57:56 +01:00
Martin Pulec
ec3f472f4c vcomp/cmpto_j2k: ASSIGN_CHECK_VAL: print both bounds 2025-11-21 11:57:56 +01:00
Martin Pulec
1ae1768aa9 vcomp/cmpto_j2k: check val dst type upper bound
check maximal value to fit the destination target type

Note: the `nextafter(..., -INF)` is used to represent a value of type
max that is also representable by double. Depending on the rounding
mode, eg. `(double) LLONG_MAX` may round up - in this case
9223372036854775807 becomes ..808.

improves <https://github.com/CESNET/UltraGrid/pull/473>
2025-11-21 11:57:56 +01:00
Martin Pulec
1735e6a17b vcomp/cmpto_j2k: ASSIGN_CHECK_VAL: ret on not-num
If some non-number is passed as a value, do not print the range message -
unit_evaluate_dbl already prints error and returns NAN.
2025-11-21 11:57:56 +01:00
Martin Piatka
1764e53c92 config_*: Remove malloc.h
malloc.h is deprecated and non-standard + nothing seems to be using anything that isn't in stdlib.h anyway
2025-11-21 10:41:05 +01:00
Martin Piatka
ba256a8797 config_unix: Remove BSTRING
Nothing defines or uses that anywhere
2025-11-21 10:41:05 +01:00
Martin Piatka
aa33d5038f config_unix: Remove GETTOD_NOT_DECLARED section
Nothing defines that anywhere
2025-11-21 10:41:05 +01:00
Martin Piatka
04e4af3512 config_unix: Remove KILL_NOT_DECLARED section
Nothing defines that anywhere
2025-11-21 10:41:04 +01:00
Martin Piatka
ce217b477c config_unix: Remove CONF_NIX_EXT_C
Not used anywhere
2025-11-21 10:41:04 +01:00
Martin Piatka
6e7f1b7e42 config_win32: Remove WORDS_SMALLENDIAN
Already defined by configure.ac in config.h and also not used anywhere
2025-11-21 10:41:04 +01:00
Martin Piatka
071b53f918 config_*: Remove USERNAMELEN
Not used anywhere
2025-11-21 10:41:04 +01:00
Martin Pulec
f751cb238f Merge pull request #473 from ATrivialAtomic/assign-check-val-fix
vcomp/cmpto_j2k.cpp - Update val comparison to DBL_MAX
2025-11-21 10:31:59 +01:00
Martin Piatka
7273dc67dc config_unix: Remove WEXITSTATUS & WIFEXITED 2025-11-20 12:38:37 +01:00
Martin Piatka
a0bd8da867 config_unix: Remove TRUE & FALSE macros 2025-11-20 12:38:37 +01:00
Martin Piatka
5b61ab7403 config_win32: Remove TRUE & FALSE macros 2025-11-20 12:38:37 +01:00
Martin Piatka
7f189e51ff yuri_decoders: Use standard bools 2025-11-20 12:38:37 +01:00
Martin Piatka
9f4aca53cb utils/windows: Use standard bools 2025-11-20 12:38:36 +01:00
Martin Piatka
025a177000 win32_gl_common: Use standard bools 2025-11-20 12:38:36 +01:00
Martin Piatka
e5d3a4f5f5 vdisp/sdl: Use standard bools 2025-11-20 12:38:36 +01:00
Martin Piatka
7d9dcdedc3 vcap/screen_win: Use standard bools 2025-11-20 12:38:36 +01:00
Martin Piatka
7290114845 vdisp/sage: Use standard bools 2025-11-20 12:38:36 +01:00
Martin Piatka
bbef5e7e71 rtp: Use standard bools 2025-11-20 12:38:36 +01:00
Martin Piatka
d5d16ba57e net_udp: Use standard bools 2025-11-20 12:38:36 +01:00
Martin Piatka
58e72f1e67 hd-rum-translator: Use standard bools 2025-11-20 12:38:35 +01:00
Martin Piatka
b47d60b938 gpujpeg_to_dxt: Use standard bools 2025-11-20 12:38:35 +01:00
Martin Piatka
9b0786c9e0 dvs: Use standard bools 2025-11-20 12:38:35 +01:00
Martin Piatka
c9f58b1282 vcap/dshow: Use standard bools 2025-11-20 12:38:35 +01:00
Martin Piatka
b55fa39ad8 deltacast: Use standard bools 2025-11-20 12:38:35 +01:00
Martin Piatka
cdb2dc1b4d crypt_aes: Use stdbool.h bools 2025-11-20 12:38:35 +01:00
Martin Piatka
da5fb4564d coreaudio: Use stdbool.h bools 2025-11-20 12:38:35 +01:00
Martin Piatka
f29c3083a5 bluefish444: Replace bool macros with normal bool 2025-11-20 12:38:34 +01:00
Martin Piatka
df233b900d bitstream: Remove config_* usages 2025-11-20 12:38:34 +01:00
Martin Piatka
fd8faf6a94 video_rxtx/loopback: Replace TRUE & FALSE macros 2025-11-20 12:38:34 +01:00
Martin Piatka
0cd8b3f906 compress/uyvy: Replace TRUE & FALSE macros 2025-11-20 12:38:34 +01:00
Martin Piatka
b959aece2e decompress/cineform: Replace TRUE & FALSE macros 2025-11-20 12:38:34 +01:00
Martin Piatka
03db053e4a tfrc.c: Replace TRUE & FALSE macros 2025-11-20 12:38:34 +01:00
Martin Piatka
5de883d484 tv.c: Replace TRUE & FALSE macros 2025-11-20 12:38:33 +01:00
Martin Pulec
90661fd5c6 vcap/testcard2: option to enforce built-in font
even if SDL_ttf is cmopiled in
2025-11-20 11:23:15 +01:00