Commit Graph

7841 Commits

Author SHA1 Message Date
Martin Pulec
185f7de4cf vcap/deltacast: modernize ClockChannel usage
(from SDK sample Sample_RX4K.cpp)

Removed setting the ClockSystem - not present even in example in SDK
6.13.1.
2025-10-31 16:21:51 +01:00
Martin Pulec
6d5ffbe3d5 deltacast_get_mode_name: print width
some 1080 modes have 2048 width
2025-10-31 16:21:51 +01:00
Martin Pulec
4172b96bee deltacast: remove huge metadata struct
Use functions deltacast_get_frame_{mode,name} instead and just a
skeleton mode metadata hard-coded - compute what is needed/possible
(name, 1001-variant).

functional changes:
- 1080p50 is now possible (24p format set incorrectly before).
- vcap: metadata for American formats are corretly set (clock_system
was not taken into accout before and European was set, leading in slightly
incorrect metadata - 30 FPS instead of 29.97)
- vcap: available modes has now different order (American-style ordered
first - FPS is slightly smaller) + 2 small typos ("1Hz" and "59.97")

Otherwise this is roughly a refactor.
2025-10-31 16:21:51 +01:00
Martin Pulec
a29e64140d deltacast_frame_modes: added 1000/1001 4K modes
Similar as for HD formats - the same mode is listed twice, differing in
clock_system, name and FPS.

removed duplicite VHD_VIDEOSTD_4096x2160p_25Hz
2025-10-31 16:21:50 +01:00
Martin Pulec
dd148d2b97 aplay/alsa: replace [[maybe_unused]] with GCC attr
Some quite old GCC (7.5 in U18.04) don't have c23 function
attributes. While this is a bit old distro but the feature is quite new
according to C standard so use GCC attribute for now (we will almost
certainly compile with clang/GCC in Linux).
2025-10-31 16:20:48 +01:00
Martin Pulec
4f5b4df4a7 vdisp/deltacast: set correct Amercian system
Althought there are in deltacast_frame_modes the modes for eg. 1080p29
and 1080p30 listed separately, both point to the same video standard
mode VHD_VIDEOSTD_S274M_1080p_30Hz. This is perhaps taken orignally from
some SDK samples, anyways. The clock system seem to be required to set
separate from the video standard. This was hard-coded in init to 1/1.
2025-10-31 16:13:48 +01:00
Martin Piatka
08692a1c60 random: Add include guard 2025-10-31 13:26:23 +01:00
Martin Piatka
c19711d0eb glx_common: Add include guard 2025-10-31 13:25:14 +01:00
Martin Piatka
5b14e52331 vdisp/vulkan: Remove redundant condition 2025-10-31 12:17:22 +01:00
Martin Piatka
cae143f51d lavc: Add some capabs documentation 2025-10-29 17:40:50 +01:00
Martin Piatka
fde12a8710 video_compress: Add some capabs documentation 2025-10-29 17:40:49 +01:00
Martin Piatka
58f9e61e12 audio/coreaudio: Add missing include guard 2025-10-24 14:37:38 +02:00
Martin Piatka
5d30e99a4d audio/jack: Make the sender & receiver variables a normal bool 2025-10-24 14:37:38 +02:00
Martin Piatka
25c9de7911 audio/jack: Move stdbool.h include to .c file 2025-10-24 14:37:38 +02:00
Martin Piatka
d18162521b audio/jack: Remove config.h 2025-10-24 14:37:37 +02:00
Martin Piatka
036eeed0aa audio/jack: Replace TRUE and FALSE macros 2025-10-24 14:37:37 +02:00
Martin Piatka
bc2bad51fc audio.cpp: Replace TRUE and FALSE macros 2025-10-24 14:37:37 +02:00
Martin Pulec
ff3e34ef33 vcomp/lavc: remove codec_params
After recent changes, the map was accessed exclusively with
get_codec_params so squash the data there.
2025-10-24 11:23:00 +02:00
Martin Pulec
f9b950f6d9 vcomp/lavc: add Advanced Professional Video
+ reindent av_to_uv_map struct
2025-10-24 11:22:59 +02:00
Martin Pulec
0ef456957a vcomp/lavc: common metadata for some compressions
There are (less common) compressions, that basically takes default
parameters so it is not necessary to keep record for them separately.

The struct, however, is used as the list of available/supported
compressions so now iterating over all UG codecs and including codecs
with the predicate !get_ug_to_av_codec(ug_codec).

Mostly just refactor, just compression_priority has been changed for those
that had 5xx values (J2K, HFYU, FFV1) to `500 + codec_id` - assuming that
those should have distinct values but the actual order doesn't matter.
2025-10-24 11:22:10 +02:00
Martin Pulec
f59cee56a6 vcomp/lavc: simplify cond 2025-10-24 10:43:56 +02:00
Martin Pulec
673266fa79 vdec/lavc: fix preferred_decoder selection
Unsure if it didn't work ever or was broken at some time point but it
haven't worked just now. As only "dav1d" was preferred for AV1 and this
is selected by default, no functional change actually as for now.
2025-10-24 10:43:56 +02:00
Martin Pulec
7dd9a4410f vdec/lavc: remove metadata struct
It was used als for ug_codec<->av_codec, which is unneeded, already
done in lavc_utils. This also causes that every new codec must have been
added there.

Keep just the preferred_encoder part.
2025-10-24 10:42:42 +02:00
Martin Piatka
7d4517aab8 debug.h: Add missing default initializer for show_timestamps 2025-10-22 12:58:25 +02:00
Martin Piatka
c8546e028e screen_x11: Fix root window check 2025-10-22 12:14:27 +02:00
Martin Piatka
df2aee51e7 hd-rum-recompress: Remove redundant check
The new operator either returns a valid pointer or throws and exception, so the condition is always false
2025-10-22 12:09:56 +02:00
Martin Piatka
8e4378f8ba video_codec: Fix potential out of bounds read 2025-10-22 11:56:29 +02:00
Martin Piatka
cce89ad3a6 utils/video_frame_pool: Use rethrow expression
Throwing the exception by name can cause unnecessary copying
2025-10-21 15:42:54 +02:00
Martin Piatka
00decb9176 disp/vulkan: Use rethrow expression
Throwing the exception by name can cause unnecessary copying
2025-10-21 15:42:13 +02:00
Martin Piatka
7b64bf12c9 hd-rum-decompress: Add missing initializers 2025-10-20 15:50:41 +02:00
Martin Piatka
fc2f2f0f5f hd-rum-decompress: Make class final and mark overriden methods 2025-10-20 15:50:41 +02:00
Martin Piatka
353637c0b5 ug_input: Add missing initializers 2025-10-20 15:50:41 +02:00
Martin Piatka
b4a20f27d8 ug_input: Make class final and mark overriden methods 2025-10-20 15:50:41 +02:00
Martin Piatka
ea91f802f0 vdisp/pipe: frame_recv_delegate: Add virtual dtor
Dtor is overriden in subclasses, so it needs to be virtual
2025-10-20 15:50:41 +02:00
Martin Piatka
ec48dacebe pbuf.h: Add missing include guard 2025-10-20 15:50:41 +02:00
Martin Piatka
0d4bf9f802 pdb.h: Add missing include guard 2025-10-20 15:50:41 +02:00
Martin Piatka
194a06259e audio/wav_reader: Add missing include guard 2025-10-20 15:50:40 +02:00
Martin Piatka
e75a5bc99f testcard_common: Don't compare pointer to VIDEO_CODEC_NONE 2025-10-17 12:25:00 +02:00
Martin Piatka
2e53e19e94 export: Return pointer as NULL instead of false 2025-10-17 12:25:00 +02:00
Martin Piatka
c3cc477bf3 vulkan/compile_shaders.sh: Default value for SOURCE_PATH 2025-10-17 12:25:00 +02:00
Martin Piatka
2494f7f886 vulkan/compile_shaders.sh: Fix ShellCheck SC2068 2025-10-17 12:25:00 +02:00
Martin Piatka
0fcb96096a hd-rum-recompress: Add missing include guard 2025-10-17 12:25:00 +02:00
Martin Piatka
b1b9bc25e0 hd-rum-decompress: Add missing include guard 2025-10-17 12:25:00 +02:00
Martin Piatka
573a7ce636 md5.h: Add missing include guard 2025-10-17 12:24:59 +02:00
Martin Piatka
eb5e77b980 compat/aligned_malloc: Add missing include guard 2025-10-17 09:55:11 +02:00
Martin Piatka
bd5bbe21b5 decompress/cineform: Use MOD_NAME 2025-10-15 12:38:13 +02:00
Martin Piatka
99473ff102 decompress/cineform: Code quality improvements 2025-10-15 12:35:07 +02:00
Martin Piatka
5200381253 decompress/cineform: Remove unneeded fields 2025-10-15 12:32:01 +02:00
Martin Piatka
e8171e2f97 decompress/cineform: Return null on failed init 2025-10-15 11:29:45 +02:00
Martin Piatka
15bdf0be85 decompress/cineform: Add missing initializers 2025-10-15 11:26:31 +02:00