This abstract class provides the API to be implemented by classes that provide functionality to save streamed video e.g. to files.
More...
#include <ivideotarget.h>
This abstract class provides the API to be implemented by classes that provide functionality to save streamed video e.g. to files.
§ IVideoTarget()
gg::IVideoTarget::IVideoTarget |
( |
| ) |
|
|
inlineprotected |
Default constructor that should never be called publicly.
§ ~IVideoTarget()
virtual gg::IVideoTarget::~IVideoTarget |
( |
| ) |
|
|
inlinevirtual |
Destructor, doing nothing.
§ append()
virtual void gg::IVideoTarget::append |
( |
const VideoFrame & |
frame | ) |
|
|
pure virtual |
Append frame
to output.
- Parameters
-
frame | the caller is responsible for making sure the colour space of frame matches that of this object |
- Exceptions
-
VideoTargetError | with a detailed error message if frame cannot be appended to output for some reason, including a mismatch between the colour space of frame and that of this object expects |
§ check_filetype_support()
virtual void gg::IVideoTarget::check_filetype_support |
( |
const std::string |
filepath, |
|
|
const std::string |
filetype |
|
) |
| |
|
inlineprotectedvirtual |
Directly throw a VideoTargetError
if specified filepath
is not of required filetype
.
- Parameters
-
- Exceptions
-
VideoTargetError | with a detailed message if specified filepath is not of required filetype |
§ DISALLOW_COPY_AND_ASSIGNMENT()
gg::IVideoTarget::DISALLOW_COPY_AND_ASSIGNMENT |
( |
IVideoTarget |
| ) |
|
|
protected |
§ finalise()
virtual void gg::IVideoTarget::finalise |
( |
| ) |
|
|
protectedpure virtual |
Finalise writer, e.g. close file.
- Exceptions
-
§ init()
virtual void gg::IVideoTarget::init |
( |
const std::string |
filepath, |
|
|
const float |
framerate |
|
) |
| |
|
protectedpure virtual |
Initialise a file writer.
- Parameters
-
filepath | |
framerate | how many frames per second |
- Exceptions
-
§ update()
void gg::IVideoTarget::update |
( |
VideoFrame & |
frame | ) |
|
|
inlineoverridevirtual |
The documentation for this class was generated from the following file: