31 lines
661 B
C++
31 lines
661 B
C++
#pragma once
|
|
|
|
#include "IVideoFeed.hpp"
|
|
#include "VideoFrame.hpp"
|
|
|
|
#include <cstdint>
|
|
|
|
class NoSignalFeed : public IVideoFeed
|
|
{
|
|
public:
|
|
NoSignalFeed(
|
|
uint32_t feedIndex,
|
|
uint32_t frameWidth,
|
|
uint32_t frameHeight);
|
|
|
|
void configure(
|
|
uint32_t feedIndex,
|
|
uint32_t frameWidth,
|
|
uint32_t frameHeight);
|
|
|
|
const VideoFrame& getFrame(uint32_t frameCounter) override;
|
|
FeedRuntimeStatus status() const override;
|
|
std::string displayName() const override;
|
|
uint64_t frameVersion() const override { return version; }
|
|
|
|
private:
|
|
bool generated = false;
|
|
uint64_t version = 0;
|
|
VideoFrame frame;
|
|
};
|