Add ArRecorder logic

This commit is contained in:
2021-06-30 19:35:10 +02:00
parent b3284ae096
commit 5f85d07609
10 changed files with 263 additions and 38 deletions

View File

@@ -5,13 +5,13 @@
*/
#include "ArFramePlayback.hpp"
#include "ArSessionPlayback.h"
#include "ArSessionPlayback.hpp"
#include "Base/BlockProfiler.hpp"
namespace openVulkanoCpp::AR::Playback
{
ArFramePlayback::ArFramePlayback(const std::shared_ptr<ArSessionPlayback>& session, ArPlaybackReader& frameReader)
: ArFrame(session)
: ArFrame(session, frameReader.GetNextFrameId())
{
BlockProfiler profile("Read_AR_Frame");
const auto data = frameReader.ReadMetadata();

View File

@@ -4,7 +4,7 @@
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
#include "ArSessionPlayback.h"
#include "ArSessionPlayback.hpp"
#include "ArFramePlayback.hpp"
#include "Base/Logger.hpp"
#include <filesystem>
@@ -74,11 +74,6 @@ namespace openVulkanoCpp::AR::Playback
return nullptr;
}
ArRecorder* ArSessionPlayback::GetRecorder()
{
return nullptr;
}
ArType ArSessionPlayback::GetArType()
{
return capabilities.GetArType();

View File

@@ -27,8 +27,6 @@ class ArSessionPlayback final : public ArSession, public std::enable_shared_from
[[nodiscard]] std::shared_ptr<ArFrame> GetFrame() override;
[[nodiscard]] ArRecorder* GetRecorder() override;
[[nodiscard]] ArSessionType GetSessionType() override { return ArSessionType::PLAYBACK; }
[[nodiscard]] ArType GetArType() override;