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
This commit is contained in:
Patrick Nicolas
2024-09-11 23:41:10 +02:00
parent 9344c6c012
commit 517b572c75
15 changed files with 791 additions and 606 deletions
+1 -2
View File
@@ -33,7 +33,6 @@
#include "encoder_settings.h"
#include "wivrn_packets.h"
class yuv_converter;
struct wivrn_vk_bundle;
namespace xrt::drivers::wivrn
@@ -106,7 +105,7 @@ public:
virtual ~VideoEncoder();
// called on present to submit command buffers for the image.
virtual void PresentImage(yuv_converter & src_yuv, vk::raii::CommandBuffer & cmd_buf) = 0;
virtual void PresentImage(vk::Image y_cbcr, vk::raii::CommandBuffer & cmd_buf) = 0;
// The other end lost a frame and needs to resynchronize
void SyncNeeded();