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