Use device memory for vulkan encode

This commit is contained in:
Patrick Nicolas
2024-11-10 16:46:28 +01:00
parent 4df0e391c6
commit 6943fa82d2
13 changed files with 181 additions and 45 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ public:
video_encoder_nvenc(wivrn_vk_bundle & vk, encoder_settings & settings, float fps, uint8_t stream_idx);
~video_encoder_nvenc();
bool present_image(vk::Image y_cbcr, vk::raii::CommandBuffer & cmd_buf, uint8_t slot, uint64_t frame_index) override;
std::pair<bool, vk::Semaphore> present_image(vk::Image y_cbcr, vk::raii::CommandBuffer & cmd_buf, uint8_t slot, uint64_t frame_index) override;
std::optional<data> encode(bool idr, std::chrono::steady_clock::time_point pts, uint8_t slot) override;
static std::array<int, 2> get_max_size(video_codec);