|
Ocean
|
This class is the base class for all movie recorder. More...
#include <MovieRecorder.h>
Protected Member Functions | |
| MovieRecorder () | |
| Creates a new movie recorder. | |
| ~MovieRecorder () override | |
| Destructs a movie recorder. | |
Protected Member Functions inherited from Ocean::Media::FileRecorder | |
| 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 Member Functions inherited from Ocean::Media::FrameRecorder | |
| FrameRecorder () | |
| Creates a new frame recorder. | |
| ~FrameRecorder () override | |
| Destructs a frame 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. | |
Public Member Functions inherited from Ocean::Media::FileRecorder | |
| 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. | |
Public Member Functions inherited from Ocean::Media::FrameRecorder | |
| const FrameType & | frameType () const |
| Returns the actual frame type of this recorder. | |
| double | frameFrequency () const |
| Returns the frame frequency of this recorder in Hz. | |
| const std::string & | frameEncoder () const |
| Returns the name of the encoder used to encoder the frames. | |
| virtual Encoders | frameEncoders () const |
| Returns a list of possible frame encoders for this recorder. | |
| virtual bool | frameEncoderHasConfiguration () |
| Returns whether the selected frame encoder has a configuration possibility. | |
| virtual bool | setPreferredFrameType (const FrameType &type) |
| Sets the preferred frame type of this recorder. | |
| virtual bool | setFrameFrequency (const double frequency) |
| Sets the frame frequency of this recorder. | |
| virtual bool | setFrameEncoder (const std::string &encoder) |
| Sets the frame encoder used to encode the frames. | |
| virtual bool | frameEncoderConfiguration (long long data) |
| Starts the frame encoder configuration possibility. | |
| virtual bool | lockBufferToFill (Frame &recorderFrame, const bool respectFrameFrequency=true)=0 |
| Locks the most recent frame and returns it so that the image data can be written to this frame. | |
| virtual void | unlockBufferToFill ()=0 |
| Unlocks the filled buffer. | |
Static Public Member Functions inherited from Ocean::Media::FileRecorder | |
| 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 Attributes inherited from Ocean::Media::FileRecorder | |
| 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. | |
Protected Attributes inherited from Ocean::Media::FrameRecorder | |
| FrameType | recorderFrameType |
| Type of the frame to record. | |
| double | recorderFrameFrequency |
| Frame frequency used by the recorder. | |
| std::string | recorderFrameEncoder |
| Name of the frame encoder used to encode the frames. | |
This class is the base class for all movie recorder.
|
protected |
Creates a new movie recorder.
|
overrideprotected |
Destructs a movie recorder.