Structure containing the options used to record. More...
Functions | |
| RecordingParameters (String video_filename_="myRecording.svo2", SVO_COMPRESSION_MODE compression_mode_=SVO_COMPRESSION_MODE::H264, unsigned int target_framerate_=0, unsigned int bitrate_=0, bool transcode_streaming_input_=false) | |
| Default constructor.  More... | |
| bool | save (String filename) const | 
| Saves the current set of parameters into a file to be reloaded with the load() method.  More... | |
| bool | load (String filename) | 
| Loads a set of parameters from the values contained in a previously saved file.  More... | |
| bool | encode (String &serialized_content) const | 
| Generate a JSON Object (with the struct type as a key) containing the serialized struct, converted into a string.  More... | |
| bool | decode (const String &serialized_content) | 
| Fill the structure from the serialized json object contained in the input string.  More... | |
| bool | operator== (const RecordingParameters ¶m1) const | 
| bool | operator!= (const RecordingParameters ¶m1) const | 
Attributes | |
| String | video_filename | 
| Filename of the file to save the recording into.  More... | |
| SVO_COMPRESSION_MODE | compression_mode = SVO_COMPRESSION_MODE::H264 | 
| Compression mode the recording.  More... | |
| unsigned int | bitrate = 0 | 
| Overrides the default bitrate of the SVO file, in kbits/s.  More... | |
| unsigned int | target_framerate = 0 | 
| Framerate for the recording file.  More... | |
| bool | transcode_streaming_input = false | 
| Defines whether to decode and re-encode a streaming source.  More... | |
Structure containing the options used to record.
The default constructor sets all parameters to their default settings.
| RecordingParameters | ( | String | video_filename_ = "myRecording.svo2",  | 
        
| SVO_COMPRESSION_MODE | compression_mode_ = SVO_COMPRESSION_MODE::H264,  | 
        ||
| unsigned int | target_framerate_ = 0,  | 
        ||
| unsigned int | bitrate_ = 0,  | 
        ||
| bool | transcode_streaming_input_ = false  | 
        ||
| ) | 
Default constructor.
All the parameters are set to their default values.
| bool save | ( | String | filename | ) | const | 
Saves the current set of parameters into a file to be reloaded with the load() method.
| filename | : Name of the file which will be created to store the parameters (extension '.json' will be added if not set). | 
| bool load | ( | String | filename | ) | 
Loads a set of parameters from the values contained in a previously saved file.
| filename | : Path to the file from which the parameters will be loaded (extension '.json' will be added at the end of the filename if not detected). | 
| bool encode | ( | String & | serialized_content | ) | const | 
Generate a JSON Object (with the struct type as a key) containing the serialized struct, converted into a string.
| serialized_content | output string containing the JSON Object | 
| bool decode | ( | const String & | serialized_content | ) | 
Fill the structure from the serialized json object contained in the input string.
| serialized_content | input string containing the JSON Object | 
| bool operator== | ( | const RecordingParameters & | param1 | ) | const | 
Comparison operator ==
| param1 | to compare | 
| bool operator!= | ( | const RecordingParameters & | param1 | ) | const | 
Comparison operator !=
| param1 | to compare | 
| String video_filename | 
Filename of the file to save the recording into.
| SVO_COMPRESSION_MODE compression_mode = SVO_COMPRESSION_MODE::H264 | 
Compression mode the recording.
Default: sl::SVO_COMPRESSION_MODE::H264
| unsigned int bitrate = 0 | 
Overrides the default bitrate of the SVO file, in kbits/s.
Default: 0 (the default values associated with the resolution)
| unsigned int target_framerate = 0 | 
Framerate for the recording file.
Default: 0 (camera framerate will be taken)
 camera_frameratetarget_framerate == 0. | bool transcode_streaming_input = false | 
Defines whether to decode and re-encode a streaming source.
Default: false