move stuff in common, clang-format, update copyright
This commit is contained in:
+31
-22
@@ -1,6 +1,21 @@
|
||||
// Copyright 2022, Guillaume Meunier
|
||||
// Copyright 2022, Patrick Nicolas
|
||||
// SPDX-License-Identifier: BSL-1.0
|
||||
/*
|
||||
* WiVRn VR streaming
|
||||
* Copyright (C) 2022 Guillaume Meunier <guillaume.meunier@centraliens.net>
|
||||
* Copyright (C) 2022 Patrick Nicolas <patricknicolas@laposte.net>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
@@ -10,8 +25,8 @@
|
||||
#include "view_list.h"
|
||||
#include "wivrn_session.h"
|
||||
|
||||
#include <mutex>
|
||||
#include <memory>
|
||||
#include <mutex>
|
||||
|
||||
class wivrn_hmd : public xrt_device
|
||||
{
|
||||
@@ -29,27 +44,21 @@ class wivrn_hmd : public xrt_device
|
||||
|
||||
public:
|
||||
wivrn_hmd(std::shared_ptr<xrt::drivers::wivrn::wivrn_session> cnx,
|
||||
const from_headset::headset_info_packet &info);
|
||||
void
|
||||
unregister()
|
||||
const from_headset::headset_info_packet & info);
|
||||
void unregister()
|
||||
{
|
||||
cnx = nullptr;
|
||||
}
|
||||
|
||||
void
|
||||
update_inputs();
|
||||
xrt_space_relation
|
||||
get_tracked_pose(xrt_input_name name, uint64_t at_timestamp_ns);
|
||||
comp_target *
|
||||
create_compositor_target(struct comp_compositor *comp);
|
||||
void
|
||||
get_view_poses(const xrt_vec3 *default_eye_relation,
|
||||
uint64_t at_timestamp_ns,
|
||||
uint32_t view_count,
|
||||
xrt_space_relation *out_head_relation,
|
||||
xrt_fov *out_fovs,
|
||||
xrt_pose *out_poses);
|
||||
void update_inputs();
|
||||
xrt_space_relation get_tracked_pose(xrt_input_name name, uint64_t at_timestamp_ns);
|
||||
comp_target * create_compositor_target(struct comp_compositor * comp);
|
||||
void get_view_poses(const xrt_vec3 * default_eye_relation,
|
||||
uint64_t at_timestamp_ns,
|
||||
uint32_t view_count,
|
||||
xrt_space_relation * out_head_relation,
|
||||
xrt_fov * out_fovs,
|
||||
xrt_pose * out_poses);
|
||||
|
||||
void
|
||||
update_tracking(const from_headset::tracking &, const clock_offset &);
|
||||
void update_tracking(const from_headset::tracking &, const clock_offset &);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user