|
Ocean
|
This class is the base class for all file recorders. More...
#include <FileRecorder.h>
Public Member Functions | |
| const std::string & | filename () const |
| Returns the filename of this recorder. | |
| bool | filenameSuffixed () const |
| Returns whether the filename of this recorder will be suffixed with date and time. | |
| virtual bool | setFilename (const std::string &filename) |
| Sets the filename of this recorder. | |
| virtual bool | setFilenameSuffixed (const bool suffixed) |
| Sets whether the filename will be suffixed with date and time. | |
Public Member Functions inherited from Ocean::Media::ExplicitRecorder | |
| virtual bool | start ()=0 |
| Sets the recorder. | |
| virtual bool | stop ()=0 |
| Stops the recorder. | |
Public Member Functions inherited from Ocean::Media::Recorder | |
| virtual bool | isRecording () const =0 |
| Returns whether this recorder is currently recording. | |
| virtual bool | setPreferredBitrate (const unsigned int preferredBitrate) |
| Sets the preferred bit rate when recording the data. | |
| Type | type () const |
| Returns the type of this recorder. | |
Static Public Member Functions | |
| static std::string | addOptionalSuffixToFilename (const std::string &filename, const bool addSuffix) |
| Determines the filename to be used for the next file. | |
| static std::string | addOptionalSuffixToFilename (const std::string &filename, const unsigned int index, const bool addSuffix) |
| Determines the filename to be used for the next file. | |
Protected Member Functions | |
| FileRecorder () | |
| Creates a new file recorder. | |
| ~FileRecorder () override | |
| Destructs a file recorder. | |
Protected Member Functions inherited from Ocean::Media::ExplicitRecorder | |
| ExplicitRecorder () | |
| Creates a new explicit recorder. | |
| ~ExplicitRecorder () override | |
| Destructs a explicit recorder. | |
Protected Member Functions inherited from Ocean::Media::Recorder | |
| Recorder () | |
| Creates a new recorder. | |
| virtual | ~Recorder () |
| Destructs a recorder. | |
Protected Attributes | |
| std::string | recorderFilename |
| Filename of this recorder. | |
| bool | recorderFilenameSuffixed |
| Flag determining whether the filename will be suffixed with date and time. | |
Protected Attributes inherited from Ocean::Media::Recorder | |
| Type | recorderType |
| Type of this recorder. | |
| Lock | recorderLock |
| Lock of this recorder. | |
Additional Inherited Members | |
Public Types inherited from Ocean::Media::Recorder | |
| enum | Type { RECORDER = 0 , FRAME_RECORDER = 1 , SOUND_RECORDER = 2 , EXPLICIT_RECORDER = 4 , IMPLICIT_RECORDER = 8 , FILE_RECORDER = 16 | EXPLICIT_RECORDER , BUFFER_RECORDER = 32 | EXPLICIT_RECORDER , STREAMING_RECORDER = 64 | IMPLICIT_RECORDER , MOVIE_RECORDER = 128 | FRAME_RECORDER | FILE_RECORDER , FRAME_STREAMING_RECORDER = 256 | FRAME_RECORDER | STREAMING_RECORDER , IMAGE_RECORDER = 512 | FRAME_RECORDER | FILE_RECORDER , BUFFER_IMAGE_RECORDER = 1024 | FRAME_RECORDER | BUFFER_RECORDER , IMAGE_SEQUENCE_RECORDER = 2048 | FRAME_RECORDER | FILE_RECORDER , FRAME_MEMORY_RECORDER = 4096 | FRAME_RECORDER } |
| Definition of different recorder types. More... | |
| typedef std::vector< std::string > | Encoders |
| Definition of a vector holding encoder names. | |
This class is the base class for all file recorders.
|
protected |
Creates a new file recorder.
|
overrideprotected |
Destructs a file recorder.
|
static |
Determines the filename to be used for the next file.
| filename | Initial name of the file, must be valid |
| addSuffix | True, to add a date/time-based suffix to the filename |
|
static |
Determines the filename to be used for the next file.
| filename | Initial name of the file, must be valid |
| index | The index of the file, with range [0, infinity) |
| addSuffix | True, to add a date/time-based suffix to the filename |
|
inline |
|
inline |
Returns whether the filename of this recorder will be suffixed with date and time.
The default value is True.
|
virtual |
Sets the filename of this recorder.
| filename | Filename to set |
Reimplemented in Ocean::Media::Android::AMovieRecorder, Ocean::Media::AVFoundation::AVFMovieRecorder, Ocean::Media::DirectShow::DSFileRecorder, and Ocean::Media::MediaFoundation::MFMovieRecorder.
|
virtual |
Sets whether the filename will be suffixed with date and time.
| suffixed | Determines whether the filename will be suffixed |
|
protected |
Filename of this recorder.
|
protected |
Flag determining whether the filename will be suffixed with date and time.