[][src]Struct uvc_src::uvc_frame

#[repr(C)]pub struct uvc_frame {
    pub data: *mut c_void,
    pub data_bytes: size_t,
    pub width: u32,
    pub height: u32,
    pub frame_format: uvc_frame_format,
    pub step: size_t,
    pub sequence: u32,
    pub capture_time: timeval,
    pub capture_time_finished: timespec,
    pub source: *mut uvc_device_handle_t,
    pub library_owns_data: u8,
    pub metadata: *mut c_void,
    pub metadata_bytes: size_t,
}

An image frame received from the UVC device @ingroup streaming

Fields

data: *mut c_void

Image data for this frame

data_bytes: size_t

Size of image data buffer

width: u32

Width of image in pixels

height: u32

Height of image in pixels

frame_format: uvc_frame_format

Pixel data format

step: size_t

Number of bytes per horizontal line (undefined for compressed format)

sequence: u32

Frame number (may skip, but is strictly monotonically increasing)

capture_time: timeval

Estimate of system time when the device started capturing the image

capture_time_finished: timespec

Estimate of system time when the device finished receiving the image

source: *mut uvc_device_handle_t

Handle on the device that produced the image. @warning You must not call any uvc_* functions during a callback.

library_owns_data: u8

Is the data buffer owned by the library? If 1, the data buffer can be arbitrarily reallocated by frame conversion functions. If 0, the data buffer will not be reallocated or freed by the library. Set this field to zero if you are supplying the buffer.

metadata: *mut c_void

Metadata for this frame if available

metadata_bytes: size_t

Size of metadata buffer

Trait Implementations

impl Clone for uvc_frame[src]

impl Copy for uvc_frame[src]

impl Debug for uvc_frame[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.