27 lines
573 B
C++
27 lines
573 B
C++
#pragma once
|
|
|
|
#include "IVideoFeed.hpp"
|
|
|
|
#include <cstdint>
|
|
|
|
class MxlFeed : public IVideoFeed
|
|
{
|
|
public:
|
|
MxlFeed(
|
|
uint32_t frameWidth,
|
|
uint32_t frameHeight);
|
|
|
|
bool isUsingRealSdk() const;
|
|
|
|
const VideoFrame& getFrame(uint32_t frameCounter) override;
|
|
FeedRuntimeStatus status() const override;
|
|
std::string displayName() const override;
|
|
uint64_t frameVersion() const override { return version; }
|
|
|
|
private:
|
|
uint32_t lastGeneratedFrame = UINT32_MAX;
|
|
uint32_t animationFrame = 0;
|
|
uint64_t version = 0;
|
|
VideoFrame frame;
|
|
};
|