|
|
An object of this class behaves likee a normal recording, but is in fact a sequence of images. More...
#include <VisionX/libraries/imrec/record/AbstractSequencedRecordingStrategy.h>
Inheritance diagram for AbstractSequencedRecordingStrategy:Public Member Functions | |
| AbstractSequencedRecordingStrategy () | |
| Default constructor to manually start the recording. | |
| AbstractSequencedRecordingStrategy (const std::filesystem::path &filePath, const std::filesystem::path &ext) | |
| std::filesystem::path | getDotExtension () const override |
| Gets the extension plus preceeded dot of the configured file (e.g. | |
| std::filesystem::path | getMetadataPath () const override |
| void | startRecording () override |
| Starts the recording manually if constructed empty. | |
| ~AbstractSequencedRecordingStrategy () override | |
| Destruct the recording strategy. | |
Public Member Functions inherited from AbstractRecordingStrategy | |
| 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 | getFilePath () const |
| Gets the raw file path for the recording as configured. | |
| 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 | 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 Member Functions | |
| std::filesystem::path | deriveFramePath (const unsigned int sequence_number, const std::string &frame_name) |
| Returns the next sequenced full path and increments the sequence number. | |
Additional Inherited Members | |
Protected Attributes inherited from AbstractRecordingStrategy | |
| std::filesystem::path | m_file_path |
| Path to where the recording file should be written to. | |
An object of this class behaves likee a normal recording, but is in fact a sequence of images.
Definition at line 40 of file AbstractSequencedRecordingStrategy.h.
Default constructor to manually start the recording.
Definition at line 45 of file AbstractSequencedRecordingStrategy.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| AbstractSequencedRecordingStrategy | ( | const std::filesystem::path & | filePath, |
| const std::filesystem::path & | ext ) |
Definition at line 51 of file AbstractSequencedRecordingStrategy.cpp.
Here is the call graph for this function:
|
override |
Destruct the recording strategy.
Definition at line 59 of file AbstractSequencedRecordingStrategy.cpp.
|
protected |
Returns the next sequenced full path and increments the sequence number.
Definition at line 92 of file AbstractSequencedRecordingStrategy.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
overridevirtual |
Gets the extension plus preceeded dot of the configured file (e.g.
".avi")
Reimplemented from AbstractRecordingStrategy.
Definition at line 79 of file AbstractSequencedRecordingStrategy.cpp.
Here is the caller graph for this function:
|
overridevirtual |
Reimplemented from AbstractRecordingStrategy.
Definition at line 85 of file AbstractSequencedRecordingStrategy.cpp.
Here is the call graph for this function:
|
overridevirtual |
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 from AbstractRecordingStrategy.
Reimplemented in JPGRecordingStrategy, PNGParallelRecordingStrategy, and PNGRecordingStrategy.
Definition at line 65 of file AbstractSequencedRecordingStrategy.cpp.
Here is the call graph for this function:
Here is the caller graph for this function: