Enum realsense_rust::frame::PixelKind[][src]

pub enum PixelKind<'a> {
Show variants Yuyv { y: &'a u8, u: &'a u8, v: &'a u8, }, Uyvy { y: &'a u8, u: &'a u8, v: &'a u8, }, Bgr8 { b: &'a u8, g: &'a u8, r: &'a u8, }, Bgra8 { b: &'a u8, g: &'a u8, r: &'a u8, a: &'a u8, }, Rgb8 { r: &'a u8, g: &'a u8, b: &'a u8, }, Rgba8 { r: &'a u8, g: &'a u8, b: &'a u8, a: &'a u8, }, Raw8 { val: &'a u8, }, Y8 { y: &'a u8, }, Y16 { y: &'a u16, }, Z16 { depth: &'a u16, }, Distance { distance: &'a f32, }, Disparity32 { disparity: &'a f32, }, Xyz32f { x: &'a f32, y: &'a f32, z: &'a f32, },
}
Expand description

Type for representing the various pixel formats.

Variants

Yuyv

32-bit y0, u, y1, v data for every two pixels. Similar to YUV422 but packed in a different order - see this link.

Show fields

Fields of Yuyv

y: &'a u8u: &'a u8v: &'a u8
Uyvy

Similar to the standard YUYV pixel format, but packed in a different order.

Show fields

Fields of Uyvy

y: &'a u8u: &'a u8v: &'a u8
Bgr8

8-bit blue, green, and red channels – suitable for OpenCV.

Show fields

Fields of Bgr8

b: &'a u8g: &'a u8r: &'a u8
Bgra8

8-bit blue, green, and red channels + constant alpha channel equal to FF.

Show fields

Fields of Bgra8

b: &'a u8g: &'a u8r: &'a u8a: &'a u8
Rgb8

8-bit red, green and blue channels.

Show fields

Fields of Rgb8

r: &'a u8g: &'a u8b: &'a u8
Rgba8

8-bit red, green and blue channels + constant alpha channel equal to FF.

Show fields

Fields of Rgba8

r: &'a u8g: &'a u8b: &'a u8a: &'a u8
Raw8

8-bit raw image.

Show fields

Fields of Raw8

val: &'a u8
Y8

8-bit per-pixel grayscale image.

Show fields

Fields of Y8

y: &'a u8
Y16

16-bit per-pixel grayscale image.

Show fields

Fields of Y16

y: &'a u16
Z16

16-bit linear depth values. The depth is meters is equal to depth scale * pixel value.

Show fields

Fields of Z16

depth: &'a u16
Distance

32-bit float-point depth distance value.

Show fields

Fields of Distance

distance: &'a f32
Disparity32

32-bit float-point disparity values. Depth->Disparity conversion : Disparity = Baseline*FocalLength/Depth.

Show fields

Fields of Disparity32

disparity: &'a f32
Xyz32f

32-bit floating point 3D coordinates.

Show fields

Fields of Xyz32f

x: &'a f32y: &'a f32z: &'a f32

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.