Select compatible codec for vaapi when no config is given

This commit is contained in:
Patrick Nicolas
2024-08-31 22:07:56 +02:00
parent a34b8ba928
commit 481c922143
7 changed files with 82 additions and 14 deletions
+4 -2
View File
@@ -23,7 +23,9 @@
#include <map>
#include <string>
#include <vulkan/vulkan.hpp>
#include <vector>
struct wivrn_vk_bundle;
namespace xrt::drivers::wivrn
{
@@ -39,7 +41,7 @@ struct encoder_settings : public to_headset::video_stream_description::item
std::optional<std::string> device;
};
std::vector<encoder_settings> get_encoder_settings(vk::PhysicalDevice physical_device, uint32_t & width, uint32_t & height);
std::vector<encoder_settings> get_encoder_settings(wivrn_vk_bundle &, uint32_t & width, uint32_t & height, const std::vector<xrt::drivers::wivrn::video_codec> & headset_codecs);
} // namespace xrt::drivers::wivrn