Remove decoder -> accumulator dependency

This commit is contained in:
Patrick Nicolas committed 2025-12-04 08:12:36 +01:00
1 parent 85cde18718
commit 2a3597819a
11 files changed
+27 -56

No files matched your search

+4 -8
View File
@@ -34,8 +34,7 @@ std::shared_ptr<wivrn::decoder> wivrn::decoder::make(
const wivrn::to_headset::video_stream_description::item & description,
float fps,
uint8_t stream_index,
std::weak_ptr<scenes::stream> scene,
shard_accumulator * acc)
std::weak_ptr<scenes::stream> scene)
{
switch (description.codec)
{
@@ -49,16 +48,14 @@ std::shared_ptr<wivrn::decoder> wivrn::decoder::make(
description,
fps,
stream_index,
scene,
acc);
scene);
#else
return std::make_shared<wivrn::ffmpeg::decoder>(
device,
phys_dev,
description,
stream_index,
scene,
acc);
scene);
#endif
case raw:
return std::make_shared<wivrn::raw_decoder>(
@@ -67,8 +64,7 @@ std::shared_ptr<wivrn::decoder> wivrn::decoder::make(
vk_queue_family_index,
description,
stream_index,
scene,
acc);
scene);
}
__builtin_unreachable();
}