17 #ifndef IGNITION_COMMON_VIDEOENCODER_HH_ 18 #define IGNITION_COMMON_VIDEOENCODER_HH_ 24 #include <ignition/common/av/Export.hh> 29 #define VIDEO_ENCODER_BITRATE_DEFAULT 0 30 #define VIDEO_ENCODER_WIDTH_DEFAULT 1280 31 #define VIDEO_ENCODER_HEIGHT_DEFAULT 720 32 #define VIDEO_ENCODER_FPS_DEFAULT 25 33 #define VIDEO_ENCODER_FORMAT_DEFAULT "mp4" 40 class VideoEncoderPrivate;
84 public:
bool IsEncoding()
const;
91 public:
bool AddFrame(
const unsigned char *_frame,
92 const unsigned int _width,
93 const unsigned int _height);
101 public:
bool AddFrame(
const unsigned char *_frame,
102 const unsigned int _width,
103 const unsigned int _height,
104 const std::chrono::steady_clock::time_point &_timestamp);
109 public:
bool SaveToFile(
const std::string &_filename);
117 public:
unsigned int BitRate()
const;
121 public:
void Reset();
#define VIDEO_ENCODER_FPS_DEFAULT
Definition: VideoEncoder.hh:32
#define IGN_COMMON_WARN_RESUME__DLL_INTERFACE_MISSING
Definition: SuppressWarning.hh:67
#define VIDEO_ENCODER_BITRATE_DEFAULT
Definition: VideoEncoder.hh:29
#define VIDEO_ENCODER_HEIGHT_DEFAULT
Definition: VideoEncoder.hh:31
The VideoEncoder class supports encoding a series of images to a video format, and then writing the v...
Definition: VideoEncoder.hh:44
#define VIDEO_ENCODER_WIDTH_DEFAULT
Definition: VideoEncoder.hh:30
Forward declarations for the common classes.
#define VIDEO_ENCODER_FORMAT_DEFAULT
Definition: VideoEncoder.hh:33
#define IGN_COMMON_WARN_IGNORE__DLL_INTERFACE_MISSING
Microsoft Visual Studio does not automatically export the interface information for member variables ...
Definition: SuppressWarning.hh:64