pub struct CapturedFrame {
pub key: FrameKey,
pub captured_at: Instant,
pub timestamp_ns: u64,
pub source_timestamp_ns: Option<i64>,
pub source_sequence: Option<u64>,
/* private fields */
}Expand description
Cheaply shared immutable frame. RGB/native bytes never change while retained.
Fields§
§key: FrameKeyThe key value.
captured_at: InstantHost monotonic processing-entry time, not the sensor exposure time.
timestamp_ns: u64The timestamp ns value.
source_timestamp_ns: Option<i64>The source timestamp ns value.
source_sequence: Option<u64>The source sequence value.
Implementations§
Source§impl CapturedFrame
impl CapturedFrame
Sourcepub fn layout(&self) -> &FrameLayout
pub fn layout(&self) -> &FrameLayout
Performs the layout operation.
Sourcepub fn rgb_view(&self) -> CameraResult<RgbView<'_>>
pub fn rgb_view(&self) -> CameraResult<RgbView<'_>>
Performs the rgb_view operation.
Sourcepub fn source_timestamp(&self) -> Option<SourceTimestamp>
pub fn source_timestamp(&self) -> Option<SourceTimestamp>
Performs the source_timestamp operation.
Sourcepub fn copy_to(&self, out: &mut [u8]) -> CameraResult<()>
pub fn copy_to(&self, out: &mut [u8]) -> CameraResult<()>
Performs the copy_to operation.
Sourcepub fn to_owned_bytes(&self) -> Vec<u8> ⓘ
pub fn to_owned_bytes(&self) -> Vec<u8> ⓘ
Performs the to_owned_bytes operation.
Sourcepub fn ndarray_view(&self) -> CameraResult<ArrayView3<'_, u8>>
pub fn ndarray_view(&self) -> CameraResult<ArrayView3<'_, u8>>
Performs the ndarray_view operation.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CapturedFrame
impl RefUnwindSafe for CapturedFrame
impl Send for CapturedFrame
impl Sync for CapturedFrame
impl Unpin for CapturedFrame
impl UnsafeUnpin for CapturedFrame
impl UnwindSafe for CapturedFrame
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more