Commit Graph

7684 Commits

Author SHA1 Message Date
Martin Piatka
feb0790977 aplay/pipewire: Report playback latency 2025-04-08 13:13:15 +02:00
Martin Pulec
20304e0ccd vo_pp/text: unify err handling
use common macro outputting the error (also instead of asserts)

+ avoid transparent_bg leak if error occurs
2025-04-07 16:34:22 +02:00
Martin Pulec
46f686bbc9 vo_pp/text: add option for font
- do not exit if font failed to set (maybe the system one will be tried?)
- removed implicit helvetica (seem to be set by IM6 by default, anyways
so just not setting it won't solve the problem when helvetica not found
in sys)
2025-04-07 13:46:48 +02:00
Martin Pulec
f66be72148 vo_pp/text: avoid crashes (abort in magick) if not init 2025-04-04 22:41:45 +02:00
Martin Pulec
fe5b5074a9 vulkan_context: portability ext compat 2025-04-04 22:41:45 +02:00
Martin Pulec
8fb185ee6c vcomp/cmpto_j2k: include cmath
needed for isnan
2025-04-04 22:41:44 +02:00
Martin Pulec
4a68419fb6 vo_pp/text: some more debugging msgs on err 2025-04-04 22:41:44 +02:00
Martin Pulec
192252c102 vo_pp/text: load available system font
If font is not set explicitly, MagickQueryFontMetrics fails with:
```
[text vo_pp.] MagickQueryFontMetrics failed: unable to read font `helvetica' @ error/annotate.c/RenderFreetype/1658!
```
(using ImageMagick 7.1.1)
2025-04-04 22:41:43 +02:00
Martin Pulec
584a19037e utils/text: IWYU 2025-04-04 22:41:43 +02:00
Martin Pulec
f44839bc5f vo_pp/text: print error descriptions
+ use MSG instead of log_msg (shorter)
2025-04-04 22:41:42 +02:00
Martin Pulec
8b887ca8c3 vo_pp/text: IWYU 2025-04-04 22:41:41 +02:00
Martin Piatka
b713be7c75 disp/vulkan: Consolidate class public and private sections 2025-04-04 16:28:52 +02:00
Martin Piatka
68168c582f disp/vulkan: Remove unused LogLevel enum 2025-04-04 14:12:13 +02:00
Martin Pulec
465f939b86 tx_send_h265: emit AP if possible
It is perhaps not worth sending VPS/SPS/PPS in separate packets.
2025-04-04 09:27:29 +02:00
Martin Pulec
770c44a737 rtsp server: support for sending H.265 2025-04-04 09:27:27 +02:00
Martin Pulec
b7601d25ee rtsp server: fix media type print on err
this fixes the commit 6d5c6fe1 (2024-08-04)
2025-04-03 11:54:52 +02:00
Martin Pulec
37e2298ffd decklink: warn if IP addr given but DHCP=no not 2025-04-03 11:54:52 +02:00
Martin Pulec
c7bf90fdf6 decklink fcc opt parse unified + moved to common 2025-04-03 11:54:52 +02:00
Martin Pulec
26794a1971 decklink: fix FourCC opts without val
fixes the regression by commit d71c28eef (2024-11-18)
2025-04-03 11:54:52 +02:00
ATrivialAtomic
293d59887a compress/cmpto_j2k.cpp
Fix merge CUDA issues. Make some static functions now members of state_video_compress_j2k class
2025-04-02 12:04:30 -04:00
ATrivialAtomic
c367401fd6 vulkan_context.cpp - update to match commit 9d8ab81 2025-04-02 12:03:10 -04:00
Martin Piatka
5325a2b78c disp/vulkan: Use unique_ptr for frame mappings 2025-04-02 15:49:39 +02:00
Martin Piatka
aa79670280 disp/vulkan: Drop standard layout requirement
Not really needed
2025-04-02 15:49:39 +02:00
Martin Piatka
36a2f2d97b disp/vulkan: Fix spelling of 'attributes' 2025-04-02 15:49:39 +02:00
Martin Piatka
943ca22be3 disp/vulkan: Use log_msg for logging 2025-04-02 15:49:39 +02:00
Martin Pulec
96486494cd tests improvements
- suppress the output for unit_evaluate
- improve debug printout codec_conversion_test_testcard_uyvy_to_i420
- improve C variant of ASSERT_EQUAL_MESSAGE macro (prints num values
also in hex)
- remove VLA from codec_conversions_test.cpp (not valid in C++)
2025-04-01 15:42:13 +02:00
Martin Pulec
f6dd5b15c2 uuvu_to_nv12: handle irregular sizes 2025-04-01 14:02:32 +02:00
Martin Pulec
301aa47a88 y216_to_p010le: handle odd number of rows/lines 2025-04-01 14:02:32 +02:00
Martin Pulec
c06691d045 add test for y216_to_p010le 2025-04-01 14:02:31 +02:00
Martin Pulec
92e8d99b28 fixed uyvy_to_i420
fix test codec_conversion_test_testcard_uyvy_to_i420 fail caused by the
merge of testcard_common toI420 to to_lavc uyvy_to_yuv420p

Last line was incorrectly checked in case of odd number of lines.
2025-04-01 14:02:31 +02:00
Martin Pulec
1092abdfe8 sdl3: blacklist P010 for direct3d[12] 2025-04-01 14:02:31 +02:00
Martin Pulec
39554640f9 sdl_mixer (3): if mono requested, capture stereo
Workaround for SDL3 mixer, that doesn't respect selected ch_count=1 now.

Reduced the channel count later in audio stack (this will work for other
acaps as well).
2025-04-01 14:02:31 +02:00
Martin Pulec
85679c4fad sdl3: add errata + Vulkan warning 2025-04-01 14:02:30 +02:00
Martin Pulec
fa764db2d6 share some more convs between sdl3, to_lavc, testc
1. to SDL3 nv12 (not supported before)

2. to_lavc - use rgba_to_bgra - the vc_copyline version was not keeping alpha
(if ever used - this may cause regressions, unfortunately, if alpha is
assumed to be 100%, because the orig version set it always)

3. uyvy_to_i420 use by testcard and to_lavc

uyvy_to_i420: do not write out of bounds

If width % 2 = 1, 1 extra luma on first line of pair will override the
first luma on the second.
2025-04-01 14:02:30 +02:00
Martin Pulec
6bdc223e15 sdl3: disable alpha blend by default
but added option to allow (in help shown newly in "fullhelp")
2025-04-01 14:02:30 +02:00
Martin Pulec
faf1367cb7 y216_to_p010le: make it usable also for FFmpeg
to_lavc conversion
2025-04-01 14:02:30 +02:00
Martin Pulec
d6de83ebb2 v210_to_p010le: handle irregular dimensions
handle W % 6 !=0 and H % 2 != 0

last pixels on last (2) line(s) just copy
2025-04-01 14:02:29 +02:00
Martin Pulec
6c4d62413c sdl3: support AV_PIX_FMT_P010LE
v210_to_p010le moved 1:1 to pixfmt_conv.c (with different signature)
2025-04-01 14:02:29 +02:00
Martin Pulec
5e643e8d49 sdl[123]: allow -d sdl[123]
a convenient module name - regiestered as a hidden module

this is now consistent with wulkan_sdl[23] that has both vulkan ahd
the vulkan_sdl[23]
2025-04-01 14:02:29 +02:00
Martin Pulec
d897709956 vulkan_sdl[23]: vulkan_display_log: fix log_level
fixed log_level shadowing

The vulkan_sdl mapped log_level shadows the global log_level variable,
so that automatic variable log_level is compared to itself (always true).
2025-04-01 14:02:28 +02:00
Martin Pulec
1a4e90996f vulkan_sdl3: pass vulkan_display_log also to :help 2025-04-01 14:02:28 +02:00
Martin Pulec
afb9c4788f vulkan_sdl3: make it work with macOS
make it work when linked with both vulkan-loader:
- set VK_INSTANCE_CREATE_ENUMERATE_PORTABILITY_BIT_KHR
(vk::InstanceCreateFlagBits::eEnumeratePortabilityKHR) when creating
the instance

and MoltenVK:
- erase VK_KHR_portability_enumeration from required extensions that
reports SDL3 SDL_Vulkan_GetInstanceExtension() on macOS

Also now the ENUMERATE_PORTABILITY_BIT is always set whenever
VK_KHR_portability_enumeration supported.
2025-04-01 14:02:28 +02:00
Martin Pulec
1de0982bb2 vulkan_sdl3: set logging level as in vdisp/sdl3 2025-04-01 14:02:28 +02:00
Martin Pulec
bcd7688267 vulkan_sdl3: remove win32 specific code
Taken with the original code of vulkan_sdl2 but doesn't seem to be
required. It doesn't compile, either, because SDL_syswm.h is no longer
present.
2025-04-01 14:02:28 +02:00
Martin Pulec
0d3f19d2e5 sdl3: notice that driver= may change disp listing 2025-04-01 14:02:27 +02:00
Martin Pulec
94fea79318 sdl3: removed unneeded compat from SDL2 2025-04-01 14:02:27 +02:00
Martin Pulec
94517c0e83 sdl3: set SRGB for R10k
The vulkan renderer assumes HDR10, which is probably not the case.
2025-04-01 14:02:27 +02:00
Martin Pulec
35ef6f4e6b sdl3: handle eventual big-endian 2025-04-01 14:02:27 +02:00
Martin Pulec
10059f9e71 mixer+ttf compat with SDL3 2025-04-01 14:02:27 +02:00
Martin Pulec
28198b39d0 vulkan_sdl3: change branding
+ use the name "vulkan" for vulkan_sdl3 (for `-d`), also accept this
for vulkan_sdl2. This makes it easier to use `-d vulkan` regardless
SDL version
2025-04-01 14:02:26 +02:00