Send vulkan video idr over tcp

This commit is contained in:
Patrick Nicolas
2025-06-12 11:07:10 +02:00
parent 52b0bb0c42
commit a6c20e9520
5 changed files with 26 additions and 28 deletions
+3 -1
View File
@@ -53,6 +53,8 @@ protected:
video_encoder * encoder;
std::span<uint8_t> span;
std::shared_ptr<void> mem;
// true if data should be sent over reliable (TCP) socket
bool prefer_control = false;
};
private:
@@ -140,7 +142,7 @@ public:
// called when command buffer finished executing
virtual std::optional<data> encode(bool idr, std::chrono::steady_clock::time_point target_timestamp, uint8_t slot) = 0;
void SendData(std::span<uint8_t> data, bool end_of_frame);
void SendData(std::span<uint8_t> data, bool end_of_frame, bool control = false);
};
} // namespace wivrn