Commit Graph
76 Commits
Author SHA1 Message Date
Guillaume Meunier c6e773fd22 Add support for authentication and encryption 2024-11-26 23:59:35 +01:00
Patrick Nicolas 9bd23ac930 Use h264 as default codec for any encoder 2024-11-10 17:03:48 +01:00
Patrick Nicolas 77a0e8710c Use separate images instead of layers 2024-11-10 16:46:28 +01:00
Patrick Nicolas d64db48c53 rename some variables, query pool per encode slot 2024-11-10 16:46:28 +01:00
Patrick Nicolas 8f7aee2b7a partial fix for mismatched image views in vulkan encode 2024-11-10 16:46:28 +01:00
Patrick Nicolas 6d89b3af5f Use cavlc for vulkan encode 2024-11-10 16:46:28 +01:00
Patrick Nicolas 3d062df2b6 Default to h264 for vulkan encode 2024-11-10 16:46:28 +01:00
Patrick Nicolas 6943fa82d2 Use device memory for vulkan encode 2024-11-10 16:46:28 +01:00
Patrick Nicolas 4df0e391c6 Move video command buffer ownership to encoder 2024-11-10 16:46:28 +01:00
Patrick Nicolas e01486110e Clamp encoder extents to width/height 2024-11-10 16:11:43 +01:00
Patrick Nicolas 6fdac88fd8 Assume positions are already aligned for nvenc 2024-11-10 15:24:07 +01:00
Patrick Nicolas 5d5f4b8af4 Enforce alignment of whole image and splits 2024-11-10 11:09:58 +01:00
Patrick Nicolas 4123b35175 Fix vulkan encode with non-0 offset 2024-11-06 19:50:44 +01:00
Patrick Nicolas 410b112fcf Support passthrough for stream 2024-11-06 19:50:44 +01:00
Patrick Nicolas 5d3fc63306 Pass offset for vulkan video encode 2024-11-04 11:00:58 +01:00
Patrick Nicolas 78f7411265 Change codec preference order to AV1,h264,h265 2024-11-03 10:06:06 +01:00
Patrick Nicolas b1676d6707 Enable 3 encoders by default 2024-11-02 23:01:07 +01:00
Patrick Nicolas df5e0869c3 Set range/color model for all encoders 2024-10-29 10:44:49 +01:00
Patrick Nicolas 6e38c1a7a8 Try to only use acknowledged frames as reference 2024-10-27 11:31:29 +01:00
Patrick Nicolas 866c6e8708 Initial support for old ref usage 2024-10-27 11:31:29 +01:00
Patrick Nicolas 1e0ba8b3ea Remove CPU sync for vulkan video encode 2024-10-27 11:31:29 +01:00
Patrick Nicolas 04260752e9 Experimental h264 vulkan video encode 2024-10-27 11:31:29 +01:00
Patrick Nicolas 66aa729fbc Smarter encoder group selection 2024-10-09 19:27:58 +02:00
Patrick Nicolas 20f0137380 Cleanup some includes 2024-10-03 23:39:32 +02:00
Patrick Nicolas 28284a9694 wivrn namespace: move all server classes 2024-10-03 23:39:32 +02:00
Patrick Nicolas fdb79b1939 Drop xrt::drivers namespace 2024-10-03 23:39:32 +02:00
Guillaume Meunier 5e6512d825 Fix various warnings 2024-10-01 23:04:19 +02:00
Guillaume Meunier 674343c74f Use cmakedefine01 instead of cmakedefine 2024-10-01 21:46:41 +02:00
Patrick Nicolas 56da7af334 Throw different error if encoder is not compiled 2024-09-27 22:34:11 +02:00
Patrick Nicolas b6a6689323 Make "encoder" and "codec" optional in configuration 2024-09-22 16:35:24 +02:00
Patrick Nicolas 1bd98881ff Fix build with vaapi disabled 2024-09-12 15:51:41 +02:00
Patrick Nicolas 7e8c479cc5 Release swapchain earlier
Encoders now have a buffer for next image so that they can encode one
and the compositor write to an other one.
2024-09-11 23:41:10 +02:00
Patrick Nicolas 517b572c75 Integrate YCbCr conversion in monado
Hacks monado's distortion shader to write into Y and CbCr planes,
eliminating the intermediate RGBA image

Note: change monado's version to enforce patch application
2024-09-11 23:41:10 +02:00
Patrick Nicolas d68bbb4e72 Fix logic error in encoder wait_idle 2024-09-07 18:17:27 +02:00
Patrick Nicolas 5c8310e88f Tweak default values, fix docs
default client scale: 1.0 -> 1.4
default server scale: 0.8 -> 0.5 (0.35 if eye tracked)

added docs for av1 as default when supported
fixed docs about multiple encoders, it's not enabled by default
2024-09-06 21:02:22 +02:00
Patrick Nicolas 481c922143 Select compatible codec for vaapi when no config is given 2024-08-31 22:07:56 +02:00
Patrick Nicolas 7a42691269 AV1 support 2024-08-31 22:07:56 +02:00
galister 8503e3480b eye-tracked foveation 2024-08-30 11:24:36 +02:00
Patrick Nicolas bb22403f7e Show encoding time in plots 2024-08-30 08:19:33 +02:00
Patrick Nicolas 688bf2d263 Fix encoders waiting on other's network send 2024-08-30 07:52:38 +02:00
Patrick Nicolas d267bd0ebb Add async send for nvenc 2024-08-26 12:30:54 +02:00
Patrick Nicolas 1bda244894 Avoid one shared_ptr copy in vaapi encoder 2024-08-26 12:24:25 +02:00
Patrick Nicolas 982a2557ef Use a single thread for all encoder async send 2024-08-22 22:56:51 +02:00
Patrick Nicolas 8c7491d471 Offload vaapi send data to secondary thread 2024-08-18 12:07:31 +02:00
Patrick Nicolas 685061ca59 Relax pipeline barriers if possible 2024-08-16 21:24:50 +02:00
Patrick Nicolas 8e157e5153 Transition images to general layout for vaapi 2024-08-16 10:43:12 +02:00
Patrick Nicolas 7e2d0cecc4 Change how drm modifier next is appended 2024-08-16 10:43:12 +02:00
Guillaume Meunier 40bacb8f85 Add missing include 2024-08-13 14:42:59 +02:00
Patrick Nicolas 8ea58b8e35 Fix code for default split encoders (not enabled) 2024-08-12 11:28:58 +02:00
Patrick Nicolas 19b67d22de Enforce synchronization across encoders 2024-08-02 17:47:56 +02:00