Orbbec SDK K4A Wrapper
|
#include <record.hpp>
Public Member Functions | |
record (k4a_record_t handle=nullptr) noexcept | |
record (record &&other) noexcept | |
record (const record &)=delete | |
record & | operator= (const record &)=delete |
record & | operator= (record &&other) noexcept |
operator bool () const noexcept | |
bool | is_valid () const noexcept |
void | close () noexcept |
void | flush () |
void | add_tag (const char *name, const char *value) |
void | add_imu_track () |
void | add_attachment (const char *attachment_name, const uint8_t *buffer, size_t buffer_size) |
void | add_custom_video_track (const char *track_name, const char *codec_id, const uint8_t *codec_context, size_t codec_context_size, const k4a_record_video_settings_t *track_settings) |
void | add_custom_subtitle_track (const char *track_name, const char *codec_id, const uint8_t *codec_context, size_t codec_context_size, const k4a_record_subtitle_settings_t *track_settings) |
void | write_header () |
void | write_capture (const capture &capture) |
void | write_imu_sample (const k4a_imu_sample_t &imu_sample) |
void | write_custom_track_data (const char *track_name, const std::chrono::microseconds device_timestamp_usec, uint8_t *custom_data, size_t custom_data_size) |
Static Public Member Functions | |
static record | create (const char *path, const device &device, const k4a_device_configuration_t &device_configuration) |
Wrapper for k4a_record_t
Wraps a handle for a record object
Definition at line 22 of file record.hpp.
|
inlinenoexcept |
Creates a k4a::record from a k4a_record_t Takes ownership of the handle, i.e. you should not call k4a_record_close on the handle after giving it to the k4a::record; the k4a::record will take care of that.
Definition at line 30 of file record.hpp.
|
inlinenoexcept |
Moves another k4a::record into a new k4a::record
Definition at line 34 of file record.hpp.
|
inline |
Definition at line 41 of file record.hpp.
|
inline |
Adds an attachment to the recording Throws error on failure
Definition at line 142 of file record.hpp.
|
inline |
Adds custom subtitle tracks to the recording Throws error on failure
Definition at line 181 of file record.hpp.
|
inline |
Adds custom video tracks to the recording Throws error on failure
Definition at line 157 of file record.hpp.
|
inline |
Adds the track header for recording IMU Throws error on failure
Definition at line 127 of file record.hpp.
|
inline |
Adds a tag to the recording Throws error on failure
Definition at line 112 of file record.hpp.
|
inlinenoexcept |
|
inlinestatic |
Opens a new recording file for writing Throws error on failure
Definition at line 273 of file record.hpp.
|
inline |
Flushes all pending recording data to disk
Definition at line 94 of file record.hpp.
|
inlinenoexcept |
Returns true if the k4a::record is valid, false otherwise
Definition at line 72 of file record.hpp.
|
inlineexplicitnoexcept |
Returns true if the k4a::record is valid, false otherwise
Definition at line 65 of file record.hpp.
Moves another k4a::record into this k4a::record; other is set to invalid
Definition at line 51 of file record.hpp.
|
inline |
Writes a camera capture to file Throws error on failure
Definition at line 220 of file record.hpp.
|
inline |
Writes data for a custom track to file Throws error on failure
Definition at line 250 of file record.hpp.
|
inline |
Writes the recording header and metadata to file Throws error on failure
Definition at line 205 of file record.hpp.
|
inline |
Writes an imu sample to file Throws error on failure
Definition at line 235 of file record.hpp.