25 std::unique_ptr<RecorderImpl> impl_;
48 void start(const
char *filename,
bool async = false);
60 void write(std::shared_ptr<
Frame> frame);
65 std::unique_ptr<PlaybackImpl> impl_;
OBMediaState
Enumeration for record playback status.
OBMediaType
Enumeration for types of media to record or playback.
Provides SDK structure and enumeration constant definitions (depending on libobsensor/h/ObTypes....
A class describing device information, representing the name, id, serial number and other basic infor...
virtual ~Playback() noexcept
Playback(const char *filename)
Create a playback object.
Playback(std::unique_ptr< PlaybackImpl > impl)
Recorder()
Create a recorder for data recording.
virtual ~Recorder() noexcept
Recorder(std::unique_ptr< RecorderImpl > impl)
Recorder(std::shared_ptr< Device > device)
Create a recorder for data recording.
std::function< void(std::shared_ptr< Frame > frame)> PlaybackCallback
std::function< void(OBMediaState state)> MediaStateCallback
Structure for camera parameters.