|
|
Abstract interface of a recording strategy. More...
#include <VisionX/libraries/imrec/record/AbstractRecordingStrategy.h>
Inheritance diagram for AbstractRecordingStrategy:Public Member Functions | |
| AbstractRecordingStrategy () | |
| Default constructor to start the recording manually. | |
| AbstractRecordingStrategy (const std::filesystem::path &filePath) | |
| Constructor for any recording strategy, immediately starting the recording. | |
| virtual std::filesystem::path | getDotExtension () const |
| Gets the extension plus preceeded dot of the configured file (e.g. | |
| virtual std::filesystem::path | getFilePath () const |
| Gets the raw file path for the recording as configured. | |
| virtual std::filesystem::path | getMetadataPath () const |
| virtual std::filesystem::path | getPath () const |
| Gets the path to the recording without filename. | |
| virtual std::filesystem::path | getStem () const |
| Gets the stem of the configured file (filename without extension) | |
| virtual bool | isRecording () const |
| Indicates whether this instance is already initialised for recording. | |
| virtual void | recordFrame (const CByteImage &frame, std::chrono::microseconds timestamp) |
| Adds the given frame to the recording. | |
| virtual void | recordFrame (const cv::Mat &frame, std::chrono::microseconds timestamp) |
| Adds the given frame to the recording. | |
| virtual void | startRecording () |
| Starts the recording manually if constructed empty. | |
| virtual void | stopRecording () |
| Stops the recording. | |
| virtual void | writeMetadataDatetime (const std::string &var_name, std::chrono::microseconds timestamp) |
| virtual std::tuple< unsigned int, std::string > | writeMetadataFrame (const CByteImage &frame, std::chrono::microseconds timestamp) |
| virtual std::tuple< unsigned int, std::string > | writeMetadataFrame (const cv::Mat &frame, std::chrono::microseconds timestamp) |
| virtual void | writeMetadataLine (const std::string &var_name, std::string_view var_type, std::string_view var_value) |
| virtual | ~AbstractRecordingStrategy () |
| Destructor. | |
Protected Attributes | |
| std::filesystem::path | m_file_path |
| Path to where the recording file should be written to. | |
Abstract interface of a recording strategy.
Definition at line 52 of file AbstractRecordingStrategy.h.
Default constructor to start the recording manually.
Definition at line 46 of file AbstractRecordingStrategy.cpp.
Here is the caller graph for this function:| AbstractRecordingStrategy | ( | const std::filesystem::path & | filePath | ) |
Constructor for any recording strategy, immediately starting the recording.
| filePath | Path to where the recording file should be written to |
| fps | Amount of frames being recorded per second |
Definition at line 51 of file AbstractRecordingStrategy.cpp.
|
virtual |
Destructor.
Definition at line 58 of file AbstractRecordingStrategy.cpp.
Here is the call graph for this function:
|
virtual |
Gets the extension plus preceeded dot of the configured file (e.g.
".avi")
Reimplemented in AbstractSequencedRecordingStrategy.
Definition at line 140 of file AbstractRecordingStrategy.cpp.
|
virtual |
Gets the raw file path for the recording as configured.
Definition at line 122 of file AbstractRecordingStrategy.cpp.
Here is the caller graph for this function:
|
virtual |
Reimplemented in AbstractSequencedRecordingStrategy.
Definition at line 146 of file AbstractRecordingStrategy.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
Gets the path to the recording without filename.
Definition at line 128 of file AbstractRecordingStrategy.cpp.
Here is the caller graph for this function:
|
virtual |
Gets the stem of the configured file (filename without extension)
Definition at line 134 of file AbstractRecordingStrategy.cpp.
Here is the caller graph for this function:
|
virtual |
Indicates whether this instance is already initialised for recording.
Definition at line 67 of file AbstractRecordingStrategy.cpp.
|
virtual |
Adds the given frame to the recording.
| frame | Frame to be added |
Reimplemented in BMPRecordingStrategy.
Definition at line 85 of file AbstractRecordingStrategy.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
Adds the given frame to the recording.
| frame | Frame to be added |
Reimplemented in AVIRecordingStrategy, H264RecordingStrategy, JPGRecordingStrategy, PNGParallelRecordingStrategy, and PNGRecordingStrategy.
Definition at line 98 of file AbstractRecordingStrategy.cpp.
Here is the call graph for this function:
|
virtual |
Starts the recording manually if constructed empty.
| filePath | Path to where the recording file should be written to |
| fps | Amount of frames being recorded per second |
Reimplemented in AbstractSequencedRecordingStrategy, AVIRecordingStrategy, H264RecordingStrategy, JPGRecordingStrategy, PNGParallelRecordingStrategy, and PNGRecordingStrategy.
Definition at line 73 of file AbstractRecordingStrategy.cpp.
Here is the caller graph for this function:
|
virtual |
Stops the recording.
Reimplemented in AVIRecordingStrategy, H264RecordingStrategy, and PNGParallelRecordingStrategy.
Definition at line 111 of file AbstractRecordingStrategy.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
Definition at line 203 of file AbstractRecordingStrategy.cpp.
Here is the call graph for this function:
|
virtual |
Definition at line 154 of file AbstractRecordingStrategy.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
Definition at line 166 of file AbstractRecordingStrategy.cpp.
Here is the call graph for this function:
|
virtual |
Definition at line 212 of file AbstractRecordingStrategy.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Path to where the recording file should be written to.
Definition at line 59 of file AbstractRecordingStrategy.h.