|
@@ -2,6 +2,10 @@
|
|
|
#include "core/imgui_utility.hpp"
|
|
#include "core/imgui_utility.hpp"
|
|
|
#include "core/yaml_utility.hpp"
|
|
#include "core/yaml_utility.hpp"
|
|
|
|
|
|
|
|
|
|
+#include <boost/asio/post.hpp>
|
|
|
|
|
+
|
|
|
|
|
+using boost::asio::post;
|
|
|
|
|
+
|
|
|
app_remote_ar::app_remote_ar(const create_config &_conf) {
|
|
app_remote_ar::app_remote_ar(const create_config &_conf) {
|
|
|
conf = _conf.ext_conf;
|
|
conf = _conf.ext_conf;
|
|
|
asio_ctx = _conf.asio_ctx;
|
|
asio_ctx = _conf.asio_ctx;
|
|
@@ -103,6 +107,9 @@ app_remote_ar::app_remote_ar(const create_config &_conf) {
|
|
|
.cuda_ctx = cuda_ctx, .stream = default_cuda_stream
|
|
.cuda_ctx = cuda_ctx, .stream = default_cuda_stream
|
|
|
};
|
|
};
|
|
|
out_streamer = std::make_unique<image_streamer>(streamer_conf);
|
|
out_streamer = std::make_unique<image_streamer>(streamer_conf);
|
|
|
|
|
+ out_streamer->sig_req_size.connect([this](auto size) {
|
|
|
|
|
+ post(*asio_ctx, [=, this] { stereo_aug->resize(size); });
|
|
|
|
|
+ });
|
|
|
|
|
|
|
|
auto bg_viewer_conf = image_viewer::create_config{
|
|
auto bg_viewer_conf = image_viewer::create_config{
|
|
|
.mode = VIEW_STEREO, .flip_y = false,
|
|
.mode = VIEW_STEREO, .flip_y = false,
|