Move video command buffer ownership to encoder
This commit is contained in:
@@ -328,7 +328,7 @@ video_encoder_nvenc::~video_encoder_nvenc()
|
||||
fn.nvEncDestroyEncoder(session_handle);
|
||||
}
|
||||
|
||||
void video_encoder_nvenc::present_image(vk::Image y_cbcr, vk::raii::CommandBuffer & cmd_buf, uint8_t slot)
|
||||
bool video_encoder_nvenc::present_image(vk::Image y_cbcr, vk::raii::CommandBuffer & cmd_buf, uint8_t slot, uint64_t)
|
||||
{
|
||||
cmd_buf.copyImageToBuffer(
|
||||
y_cbcr,
|
||||
@@ -371,6 +371,7 @@ void video_encoder_nvenc::present_image(vk::Image y_cbcr, vk::raii::CommandBuffe
|
||||
.height = rect.extent.height / 2,
|
||||
.depth = 1,
|
||||
}});
|
||||
return false;
|
||||
}
|
||||
|
||||
std::optional<video_encoder::data> video_encoder_nvenc::encode(bool idr, std::chrono::steady_clock::time_point pts, uint8_t slot)
|
||||
|
||||
Reference in New Issue
Block a user