Format

Enum Format 

Source
pub enum Format {
Show 35 variants Unknown = -1, YUYV = 0, YUY2 = 1, UYVY = 2, NV12 = 3, NV21 = 4, MJPG = 5, H264 = 6, H265 = 7, Y16 = 8, Y8 = 9, Y10 = 10, Y11 = 11, Y12 = 12, Gray = 13, HEVC = 14, I420 = 15, Accel = 16, Gyro = 17, Point = 19, RGBPoint = 20, RLE = 21, RGB = 22, BGR = 23, Y14 = 24, BGRA = 25, Compressed = 26, RVL = 27, Z16 = 28, YV12 = 29, BA81 = 30, RGBA = 31, BYR2 = 32, RW16 = 33, Y12C4 = 34,
}
Expand description

Pixel Format

Variants§

§

Unknown = -1

Unknown format

§

YUYV = 0

YUYV format

§

YUY2 = 1

YUY2 format (the actual format is the same as YUYV)

§

UYVY = 2

UYVY format

§

NV12 = 3

NV12 format

§

NV21 = 4

NV21 format

§

MJPG = 5

MJPEG encoding format

§

H264 = 6

H.264 encoding format

§

H265 = 7

H.265 encoding format

§

Y16 = 8

Y16 format, 16-bit per pixel, single-channel

§

Y8 = 9

Y8 format, 8-bit per pixel, single-channel

§

Y10 = 10

Y10 format, 10-bit per pixel, single-channel (SDK will unpack into Y16 by default)

§

Y11 = 11

Y11 format, 11-bit per pixel, single-channel (SDK will unpack into Y16 by default)

§

Y12 = 12

Y12 format, 12-bit per pixel, single-channel (SDK will unpack into Y16 by default)

§

Gray = 13

GRAY (the actual format is the same as YUYV)

§

HEVC = 14

HEVC encoding format (the actual format is the same as H265)

§

I420 = 15

I420 format

§

Accel = 16

Acceleration data format

§

Gyro = 17

Gyroscope data format

§

Point = 19

XYZ 3D coordinate point format, @ref OBPoint

§

RGBPoint = 20

XYZ 3D coordinate point format with RGB information, @ref OBColorPoint

§

RLE = 21

RLE pressure test format (SDK will be unpacked into Y16 by default)

§

RGB = 22

RGB format (actual RGB888)

§

BGR = 23

BGR format (actual BGR888)

§

Y14 = 24

Y14 format, 14-bit per pixel, single-channel (SDK will unpack into Y16 by default)

§

BGRA = 25

BGRA format

§

Compressed = 26

Compression format

§

RVL = 27

RVL pressure test format (SDK will be unpacked into Y16 by default)

§

Z16 = 28

Is same as Y16

§

YV12 = 29

Is same as Y12, using for right ir stream

§

BA81 = 30

Is same as Y8, using for right ir stream

§

RGBA = 31

RGBA format

§

BYR2 = 32

byr2 format

§

RW16 = 33

RAW16 format

§

Y12C4 = 34

Y12C4 format

Trait Implementations§

Source§

impl Clone for OBFormat

Source§

fn clone(&self) -> OBFormat

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for OBFormat

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<i32> for OBFormat

Source§

fn from(format: i32) -> Self

Converts to this type from the input type.
Source§

impl Hash for OBFormat

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for OBFormat

Source§

fn eq(&self, other: &OBFormat) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for OBFormat

Source§

impl Eq for OBFormat

Source§

impl StructuralPartialEq for OBFormat

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.