Skip to main content

Playback

Struct Playback 

Source
pub struct Playback<'a> { /* private fields */ }

Implementations§

Source§

impl<'a> Playback<'a>

Source

pub fn get_raw_calibration(&self) -> Result<Vec<u8>, Error>

Get the raw calibration blob for the K4A device that made the recording.

Source

pub fn get_calibration(&self) -> Result<Calibration<'_>, Error>

Get the camera calibration for the K4A device that made the recording, which is used for all transformation

Source

pub fn get_record_configuration(&self) -> Result<RecordConfiguration, Error>

Gets the configuration of the recording

Source

pub fn get_next_capture(&self) -> Result<Capture<'_>, Error>

Get the next capture in the recording.

Source

pub fn get_previous_capture(&self) -> Result<Capture<'_>, Error>

Get the previous capture in the recording.

Source

pub fn get_tag(&self, name: &str) -> Result<String, Error>

Reads the value of a tag from the recording

Source

pub fn get_next_imu_sample(&self) -> Result<ImuSample, Error>

Get the next IMU sample in the recording.

Source

pub fn get_previous_imu_sample(&self) -> Result<ImuSample, Error>

Get the previous IMU sample in the recording.

Source

pub fn seek_timestamp( &self, offset_usec: i64, origin: k4a_playback_seek_origin_t, ) -> Result<(), Error>

Seeks to a specific time point in the recording

Source

pub fn get_recording_length_usec(&self) -> u64

Get the last valid timestamp in the recording

Source

pub fn set_color_conversion(&mut self, format: ImageFormat) -> Result<(), Error>

Set the image format that color captures will be converted to. By default the conversion format will be the same as the image format stored in the recording file, and no conversion will occur.

Source

pub fn get_next_data_block( &self, track: &str, ) -> Result<PlaybackDataBlock<'_>, Error>

Get the next data block in the recording.

Source

pub fn get_previous_data_block( &self, track: &str, ) -> Result<PlaybackDataBlock<'_>, Error>

Get the previous data block from the recording.

Source

pub fn get_attachment(&self, attachment: &str) -> Result<Vec<u8>, Error>

Get the attachment block from the recording.

Source

pub fn get_track_count(&self) -> usize

Get the number of tracks in a playback file.

Source

pub fn get_track(&self, track_index: usize) -> Result<PlaybackTrack<'_>, Error>

Gets the track at a specific index.

Trait Implementations§

Source§

impl Drop for Playback<'_>

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

fn pin_drop(self: Pin<&mut Self>)

🔬This is a nightly-only experimental API. (pin_ergonomics)
Execute the destructor for this type, but different to Drop::drop, it requires self to be pinned. Read more

Auto Trait Implementations§

§

impl<'a> !RefUnwindSafe for Playback<'a>

§

impl<'a> !Send for Playback<'a>

§

impl<'a> !Sync for Playback<'a>

§

impl<'a> !UnwindSafe for Playback<'a>

§

impl<'a> Freeze for Playback<'a>

§

impl<'a> Unpin for Playback<'a>

§

impl<'a> UnsafeUnpin for Playback<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.