Fix vulkan encode with non-0 offset

This commit is contained in:
Patrick Nicolas
2024-11-06 19:50:44 +01:00
parent da6287d5f9
commit 4123b35175
2 changed files with 148 additions and 1 deletions
+2
View File
@@ -45,6 +45,7 @@ class video_encoder_vulkan : public video_encoder
std::array<vk::Fence, num_slots> fences;
image_allocation dpb_image;
image_allocation tmp_image; // Used if we have an offset in the image to encode
struct dpb_item
{
@@ -99,6 +100,7 @@ protected:
public:
std::optional<data> encode(bool idr, std::chrono::steady_clock::time_point target_timestamp, uint8_t slot) override;
void present_image(vk::Image y_cbcr, vk::raii::CommandBuffer & cmd_buf, uint8_t slot) override;
void present_image(vk::Image y_cbcr, vk::raii::CommandBuffer & cmd_buf, vk::Fence, uint8_t slot, uint64_t frame_index) override;
void on_feedback(const from_headset::feedback &) override;
};