|
Voyant API 1.0.0
|
#include <cstdarg>#include <cstdint>#include <cstdlib>#include <ostream>#include <new>#include <voyant_types_ffi.hpp>Go to the source code of this file.
Classes | |
| struct | VoyantPlaybackBaseC |
Functions | |
| VoyantPlaybackBaseC | voyant_playback_create (bool keep_invalid_points) |
| int32_t | voyant_playback_open_file (VoyantPlaybackBaseC *playback, const char *file_path, char *error_buf, uintptr_t error_capacity) |
| int32_t | voyant_playback_reset (VoyantPlaybackBaseC *playback) |
| int32_t | voyant_playback_next_frame (VoyantPlaybackBaseC *playback) |
| VoyantFrameMeta | voyant_playback_frame_meta (const VoyantPlaybackBaseC *playback) |
| int64_t | voyant_playback_frame_points (const VoyantPlaybackBaseC *playback, PointDataV1 *dest, uintptr_t capacity) |
| int32_t | voyant_playback_current_frame_timestamp (const VoyantPlaybackBaseC *playback, uint64_t *timestamp_out) |
| int32_t | voyant_playback_current_frame_index (const VoyantPlaybackBaseC *playback, uintptr_t *index_out) |
| int32_t | voyant_playback_api_version (const VoyantPlaybackBaseC *playback, char *version_buf, uintptr_t version_capacity) |
| void | voyant_playback_free (VoyantPlaybackBaseC playback) |
| int32_t voyant_playback_api_version | ( | const VoyantPlaybackBaseC * | playback, |
| char * | version_buf, | ||
| uintptr_t | version_capacity ) |
Gets the version of the API that produced the open recording, e.g. "1.0.0" or "1.0.0-alpha". A converted recording reports the version that produced the original, not the one that converted it.
| VoyantPlaybackBaseC voyant_playback_create | ( | bool | keep_invalid_points | ) |
Creates a new VoyantPlayback instance
| keep_invalid_points | Whether frames keep their invalid points. When false, invalid points are removed as frames are read. Invalid points come from a capture made with the client's diagnostic mode enabled, or from frames built by hand. |
| int32_t voyant_playback_current_frame_index | ( | const VoyantPlaybackBaseC * | playback, |
| uintptr_t * | index_out ) |
Gets the current frame index (0-based). Frame 0 is the first frame in the file.
| int32_t voyant_playback_current_frame_timestamp | ( | const VoyantPlaybackBaseC * | playback, |
| uint64_t * | timestamp_out ) |
Gets the current frame timestamp in nanoseconds
| VoyantFrameMeta voyant_playback_frame_meta | ( | const VoyantPlaybackBaseC * | playback | ) |
Gets the current frame's fixed-size fields
Size the point buffer for voyant_playback_frame_points from the returned n_points.
The current frame's fields, or a zeroed (empty, stateless) value if the playback instance is invalid
| int64_t voyant_playback_frame_points | ( | const VoyantPlaybackBaseC * | playback, |
| PointDataV1 * | dest, | ||
| uintptr_t | capacity ) |
Copies the current frame's points into dest, up to capacity points
| void voyant_playback_free | ( | VoyantPlaybackBaseC | playback | ) |
Frees memory associated with a VoyantPlaybackBaseC instance
| int32_t voyant_playback_next_frame | ( | VoyantPlaybackBaseC * | playback | ) |
Reads the next frame
| int32_t voyant_playback_open_file | ( | VoyantPlaybackBaseC * | playback, |
| const char * | file_path, | ||
| char * | error_buf, | ||
| uintptr_t | error_capacity ) |
Opens a file for playback
| int32_t voyant_playback_reset | ( | VoyantPlaybackBaseC * | playback | ) |
Resets playback to the beginning of the file