wivrn namespace: client/decoder/shard_accumulator

This commit is contained in:
Patrick Nicolas
2024-10-03 23:39:32 +02:00
parent 7b4086d482
commit efbcef2861
5 changed files with 22 additions and 8 deletions
+3
View File
@@ -46,7 +46,10 @@ DEUGLIFY(AImage)
DEUGLIFY(AImageReader)
DEUGLIFY(AMediaCodec)
namespace wivrn
{
class shard_accumulator;
}
namespace scenes
{
+4 -1
View File
@@ -27,7 +27,10 @@
#include <vector>
#include <vulkan/vulkan_raii.hpp>
namespace wivrn
{
class shard_accumulator;
}
extern "C"
{
@@ -126,4 +129,4 @@ public:
static std::vector<wivrn::video_codec> supported_codecs();
};
} // namespace ffmpeg
} // namespace wivrn::ffmpeg
+4
View File
@@ -22,6 +22,9 @@
#include "scenes/stream.h"
#include "spdlog/spdlog.h"
namespace wivrn
{
using namespace wivrn::to_headset;
using shard_set = shard_accumulator::shard_set;
using data_shard = shard_accumulator::data_shard;
@@ -211,3 +214,4 @@ void shard_accumulator::send_feedback(wivrn::from_headset::feedback & feedback)
if (scene)
scene->send_feedback(feedback);
}
} // namespace wivrn
+4
View File
@@ -34,6 +34,9 @@ using decoder_impl = ::wivrn::ffmpeg::decoder;
#include <optional>
#include <vector>
namespace wivrn
{
class shard_accumulator
{
std::shared_ptr<decoder_impl> decoder;
@@ -109,3 +112,4 @@ private:
void send_feedback(wivrn::from_headset::feedback & feedback);
void advance();
};
} // namespace wivrn