Name decoder threads
This commit is contained in:
@@ -413,6 +413,7 @@ decoder::decoder(
|
|||||||
VkPhysicalDevice physical_device,
|
VkPhysicalDevice physical_device,
|
||||||
const xrt::drivers::wivrn::to_headset::video_stream_description::item & description,
|
const xrt::drivers::wivrn::to_headset::video_stream_description::item & description,
|
||||||
float fps,
|
float fps,
|
||||||
|
uint8_t stream_index,
|
||||||
std::weak_ptr<scenes::stream> weak_scene,
|
std::weak_ptr<scenes::stream> weak_scene,
|
||||||
shard_accumulator * accumulator) :
|
shard_accumulator * accumulator) :
|
||||||
description(description), fps(fps), device(device), weak_scene(weak_scene), accumulator(accumulator)
|
description(description), fps(fps), device(device), weak_scene(weak_scene), accumulator(accumulator)
|
||||||
@@ -451,6 +452,7 @@ decoder::decoder(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
pthread_setname_np(output_releaser.native_handle(), ("decoder-" + std::to_string(stream_index)).c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
decoder::~decoder()
|
decoder::~decoder()
|
||||||
|
|||||||
@@ -133,7 +133,8 @@ public:
|
|||||||
VkDevice device,
|
VkDevice device,
|
||||||
VkPhysicalDevice physical_device,
|
VkPhysicalDevice physical_device,
|
||||||
const xrt::drivers::wivrn::to_headset::video_stream_description::item & description,
|
const xrt::drivers::wivrn::to_headset::video_stream_description::item & description,
|
||||||
float fps,
|
float fps,
|
||||||
|
uint8_t stream_index,
|
||||||
std::weak_ptr<scenes::stream> scene,
|
std::weak_ptr<scenes::stream> scene,
|
||||||
shard_accumulator * accumulator);
|
shard_accumulator * accumulator);
|
||||||
|
|
||||||
|
|||||||
@@ -73,6 +73,7 @@ decoder::decoder(
|
|||||||
VkPhysicalDevice physical_device,
|
VkPhysicalDevice physical_device,
|
||||||
const xrt::drivers::wivrn::to_headset::video_stream_description::item & description,
|
const xrt::drivers::wivrn::to_headset::video_stream_description::item & description,
|
||||||
float fps,
|
float fps,
|
||||||
|
uint8_t stream_index,
|
||||||
std::weak_ptr<scenes::stream> scene,
|
std::weak_ptr<scenes::stream> scene,
|
||||||
shard_accumulator * accumulator) :
|
shard_accumulator * accumulator) :
|
||||||
device(device), description(description), codec(nullptr, free_codec_context), sws(nullptr, sws_freeContext), weak_scene(scene), accumulator(accumulator)
|
device(device), description(description), codec(nullptr, free_codec_context), sws(nullptr, sws_freeContext), weak_scene(scene), accumulator(accumulator)
|
||||||
|
|||||||
@@ -88,7 +88,8 @@ public:
|
|||||||
VkDevice device,
|
VkDevice device,
|
||||||
VkPhysicalDevice physical_device,
|
VkPhysicalDevice physical_device,
|
||||||
const xrt::drivers::wivrn::to_headset::video_stream_description::item & description,
|
const xrt::drivers::wivrn::to_headset::video_stream_description::item & description,
|
||||||
float fps,
|
float fps,
|
||||||
|
uint8_t stream_index,
|
||||||
std::weak_ptr<scenes::stream> scene,
|
std::weak_ptr<scenes::stream> scene,
|
||||||
shard_accumulator * accumulator);
|
shard_accumulator * accumulator);
|
||||||
|
|
||||||
|
|||||||
@@ -82,10 +82,10 @@ public:
|
|||||||
VkDevice device,
|
VkDevice device,
|
||||||
VkPhysicalDevice physical_device,
|
VkPhysicalDevice physical_device,
|
||||||
const xrt::drivers::wivrn::to_headset::video_stream_description::item & description,
|
const xrt::drivers::wivrn::to_headset::video_stream_description::item & description,
|
||||||
float fps,
|
float fps,
|
||||||
std::weak_ptr<scenes::stream> scene,
|
std::weak_ptr<scenes::stream> scene,
|
||||||
uint8_t stream_index) :
|
uint8_t stream_index) :
|
||||||
decoder(std::make_shared<decoder_impl>(device, physical_device, description, fps, scene, this)),
|
decoder(std::make_shared<decoder_impl>(device, physical_device, description, fps, stream_index, scene, this)),
|
||||||
current(stream_index),
|
current(stream_index),
|
||||||
next(stream_index),
|
next(stream_index),
|
||||||
weak_scene(scene)
|
weak_scene(scene)
|
||||||
|
|||||||
Reference in New Issue
Block a user