Drop xrt::drivers namespace
This commit is contained in:
@@ -163,7 +163,7 @@ std::unique_ptr<wivrn_session> connect_to_session(wivrn_discover::service servic
|
||||
if (!manual_connection)
|
||||
{
|
||||
char protocol_string[17];
|
||||
sprintf(protocol_string, "%016lx", xrt::drivers::wivrn::protocol_version);
|
||||
sprintf(protocol_string, "%016lx", wivrn::protocol_version);
|
||||
|
||||
spdlog::debug("Client protocol version: {}", protocol_string);
|
||||
spdlog::debug("Server TXT:");
|
||||
@@ -290,7 +290,7 @@ void scenes::lobby::update_server_list()
|
||||
}
|
||||
|
||||
char protocol_string[17];
|
||||
sprintf(protocol_string, "%016lx", xrt::drivers::wivrn::protocol_version);
|
||||
sprintf(protocol_string, "%016lx", wivrn::protocol_version);
|
||||
|
||||
for (auto & service: discovered_services)
|
||||
{
|
||||
|
||||
@@ -487,7 +487,7 @@ void scenes::lobby::gui_settings()
|
||||
void scenes::lobby::gui_about()
|
||||
{
|
||||
ImGui::PushFont(imgui_ctx->large_font);
|
||||
CenterTextH(std::string("WiVRn ") + xrt::drivers::wivrn::git_version);
|
||||
CenterTextH(std::string("WiVRn ") + wivrn::git_version);
|
||||
ImGui::PopFont();
|
||||
|
||||
ImGui::Dummy(ImVec2(0, 60));
|
||||
@@ -611,7 +611,7 @@ static void ScrollWhenDraggingOnVoid(ImVec2 delta)
|
||||
|
||||
static auto face_weights()
|
||||
{
|
||||
using weights = decltype(xrt::drivers::wivrn::from_headset::tracking::fb_face2{}.weights);
|
||||
using weights = decltype(wivrn::from_headset::tracking::fb_face2{}.weights);
|
||||
using item = std::pair<const char *, std::array<float, XR_FACE_EXPRESSION2_COUNT_FB>>;
|
||||
std::vector<item> res;
|
||||
|
||||
@@ -794,7 +794,7 @@ static auto face_weights()
|
||||
static const char * get_face_icon(XrTime predicted_display_time)
|
||||
{
|
||||
static const auto w = face_weights();
|
||||
xrt::drivers::wivrn::from_headset::tracking::fb_face2 expression;
|
||||
wivrn::from_headset::tracking::fb_face2 expression;
|
||||
application::get_fb_face_tracker2().get_weights(predicted_display_time, expression);
|
||||
|
||||
if (not expression.is_valid)
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
#include <thread>
|
||||
#include <vulkan/vulkan_raii.hpp>
|
||||
|
||||
using namespace xrt::drivers::wivrn;
|
||||
using namespace wivrn;
|
||||
|
||||
// clang-format off
|
||||
static const std::unordered_map<std::string, device_id> device_ids = {
|
||||
@@ -568,7 +568,7 @@ void scenes::stream::render(const XrFrameState & frame_state)
|
||||
|
||||
std::array<XrPosef, 2> pose{};
|
||||
std::array<XrFovf, 2> fov{};
|
||||
std::array<xrt::drivers::wivrn::to_headset::foveation_parameter, 2> foveation{};
|
||||
std::array<wivrn::to_headset::foveation_parameter, 2> foveation{};
|
||||
{
|
||||
// Search for frame with desired display time on all decoders
|
||||
// If no such frame exists, use the latest frame for each decoder
|
||||
|
||||
@@ -48,7 +48,7 @@ public:
|
||||
private:
|
||||
static const size_t view_count = 2;
|
||||
|
||||
using stream_description = xrt::drivers::wivrn::to_headset::video_stream_description::item;
|
||||
using stream_description = wivrn::to_headset::video_stream_description::item;
|
||||
|
||||
struct accumulator_images
|
||||
{
|
||||
@@ -149,7 +149,7 @@ public:
|
||||
|
||||
void push_blit_handle(shard_accumulator * decoder, std::shared_ptr<shard_accumulator::blit_handle> handle);
|
||||
|
||||
void send_feedback(const xrt::drivers::wivrn::from_headset::feedback & feedback);
|
||||
void send_feedback(const wivrn::from_headset::feedback & feedback);
|
||||
|
||||
state current_state() const
|
||||
{
|
||||
|
||||
@@ -83,7 +83,7 @@ void scenes::stream::operator()(audio_data && data)
|
||||
(*audio_handle)(std::move(data));
|
||||
}
|
||||
|
||||
void scenes::stream::send_feedback(const xrt::drivers::wivrn::from_headset::feedback & feedback)
|
||||
void scenes::stream::send_feedback(const wivrn::from_headset::feedback & feedback)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
@@ -49,7 +49,7 @@ stream_reprojection::stream_reprojection(
|
||||
std::vector<vk::Image> output_images_,
|
||||
vk::Extent2D extent,
|
||||
vk::Format format,
|
||||
const xrt::drivers::wivrn::to_headset::video_stream_description & description) :
|
||||
const wivrn::to_headset::video_stream_description & description) :
|
||||
input_images(std::move(input_images_)),
|
||||
output_images(std::move(output_images_)),
|
||||
extent(extent)
|
||||
@@ -434,7 +434,7 @@ void stream_reprojection::reproject(vk::raii::CommandBuffer & command_buffer, in
|
||||
command_buffer.endRenderPass();
|
||||
}
|
||||
|
||||
void stream_reprojection::set_foveation(std::array<xrt::drivers::wivrn::to_headset::foveation_parameter, 2> foveation)
|
||||
void stream_reprojection::set_foveation(std::array<wivrn::to_headset::foveation_parameter, 2> foveation)
|
||||
{
|
||||
foveation_parameters = foveation;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ class stream_reprojection
|
||||
vk::Extent2D extent;
|
||||
|
||||
// Foveation
|
||||
std::array<xrt::drivers::wivrn::to_headset::foveation_parameter, 2> foveation_parameters;
|
||||
std::array<wivrn::to_headset::foveation_parameter, 2> foveation_parameters;
|
||||
|
||||
public:
|
||||
stream_reprojection(
|
||||
@@ -62,7 +62,7 @@ public:
|
||||
std::vector<vk::Image> output_images,
|
||||
vk::Extent2D extent,
|
||||
vk::Format format,
|
||||
const xrt::drivers::wivrn::to_headset::video_stream_description & description);
|
||||
const wivrn::to_headset::video_stream_description & description);
|
||||
|
||||
stream_reprojection(const stream_reprojection &) = delete;
|
||||
|
||||
@@ -71,5 +71,5 @@ public:
|
||||
int source,
|
||||
int destination);
|
||||
|
||||
void set_foveation(std::array<xrt::drivers::wivrn::to_headset::foveation_parameter, 2> foveation);
|
||||
void set_foveation(std::array<wivrn::to_headset::foveation_parameter, 2> foveation);
|
||||
};
|
||||
|
||||
@@ -240,7 +240,7 @@ void scenes::stream::tracking()
|
||||
|
||||
packet.state_flags = 0;
|
||||
if (local_dirty.exchange(false))
|
||||
packet.state_flags = xrt::drivers::wivrn::from_headset::tracking::recentered;
|
||||
packet.state_flags = wivrn::from_headset::tracking::recentered;
|
||||
|
||||
packet.device_poses.clear();
|
||||
for (auto [device, space]: spaces)
|
||||
|
||||
Reference in New Issue
Block a user