[][src]Trait realsense_rust::frame::VideoFrame

pub trait VideoFrame where
    Self: GenericFrame
{ fn resolution(&self) -> RsResult<Resolution> { ... }
fn width(&self) -> RsResult<usize> { ... }
fn height(&self) -> RsResult<usize> { ... }
fn stride_in_bytes(&self) -> RsResult<usize> { ... }
fn bits_per_pixel(&self) -> RsResult<usize> { ... }
fn image(&self) -> RsResult<Rs2Image> { ... } }

The trait provides methods on frames with video data.

Provided methods

fn resolution(&self) -> RsResult<Resolution>

Gets image resolution.

fn width(&self) -> RsResult<usize>

Gets image width in pixels.

fn height(&self) -> RsResult<usize>

Gets image height in pixels.

fn stride_in_bytes(&self) -> RsResult<usize>

Gets image row stride in bytes.

fn bits_per_pixel(&self) -> RsResult<usize>

Gets the size of pixel in bits.

fn image(&self) -> RsResult<Rs2Image>

Gets color image buffer referencing underlying raw data.

Loading content...

Implementors

impl VideoFrame for Frame<Depth>[src]

impl VideoFrame for Frame<Disparity>[src]

impl VideoFrame for Frame<Video>[src]

Loading content...