65 virtual void init(
const std::string filepath,
const float framerate) = 0;
86 const std::string filepath,
87 const std::string filetype)
91 else if (filepath.length() <= filetype.length()+1)
93 else if (0 != filepath.compare(
94 filepath.length() - filetype.length(),
99 msg.append(
"Filetype of ")
101 .append(
" not supported, use *.")
virtual ~IVideoTarget()
Destructor, doing nothing.
Definition: ivideotarget.h:33
virtual void finalise()=0
Finalise writer, e.g. close file.
void update(VideoFrame &frame) override
Definition: ivideotarget.h:52
DISALLOW_COPY_AND_ASSIGNMENT(IVideoTarget)
virtual void append(const VideoFrame &frame)=0
Append frame to output.
Definition: broadcastdaemon.cpp:7
virtual void check_filetype_support(const std::string filepath, const std::string filetype)
Directly throw a VideoTargetError if specified filepath is not of required filetype.
Definition: ivideotarget.h:85
Thrown in case of problems outputting video, e.g. to files.
Definition: except.h:120
This abstract class provides the API to be implemented by classes that provide functionality to save ...
Definition: ivideotarget.h:17
A class to represent a video frame.
Definition: videoframe.h:47
IVideoTarget()
Default constructor that should never be called publicly.
Definition: ivideotarget.h:24
Every observer interested in listening to IVideoSource data must implement this interface, which defines the observer (subscriber) part of the observer design pattern (aka subscriber-publisher).
Definition: iobserver.h:35
virtual void init(const std::string filepath, const float framerate)=0
Initialise a file writer.