Enum rs2_format
Defined in File rs_sensor.h
Enum Documentation
-
enum rs2_format
A stream’s format identifies how binary data is encoded within a frame.
Values:
-
enumerator RS2_FORMAT_ANY
When passed to enable stream, librealsense will try to provide best suited format
-
enumerator RS2_FORMAT_Z16
16-bit linear depth values. The depth is meters is equal to depth scale * pixel value.
-
enumerator RS2_FORMAT_DISPARITY16
16-bit float-point disparity values. Depth->Disparity conversion : Disparity = Baseline*FocalLength/Depth.
-
enumerator RS2_FORMAT_XYZ32F
32-bit floating point 3D coordinates.
-
enumerator RS2_FORMAT_YUYV
32-bit y0, u, y1, v data for every two pixels. Similar to YUV422 but packed in a different order - https://en.wikipedia.org/wiki/YUV
-
enumerator RS2_FORMAT_RGB8
8-bit red, green and blue channels
-
enumerator RS2_FORMAT_BGR8
8-bit blue, green, and red channels — suitable for OpenCV
-
enumerator RS2_FORMAT_RGBA8
8-bit red, green and blue channels + constant alpha channel equal to FF
-
enumerator RS2_FORMAT_BGRA8
8-bit blue, green, and red channels + constant alpha channel equal to FF
-
enumerator RS2_FORMAT_Y8
8-bit per-pixel grayscale image
-
enumerator RS2_FORMAT_Y16
16-bit per-pixel grayscale image
-
enumerator RS2_FORMAT_RAW10
Four 10 bits per pixel luminance values packed into a 5-byte macropixel
-
enumerator RS2_FORMAT_RAW16
16-bit raw image
-
enumerator RS2_FORMAT_RAW8
8-bit raw image
-
enumerator RS2_FORMAT_UYVY
Similar to the standard YUYV pixel format, but packed in a different order
-
enumerator RS2_FORMAT_MOTION_RAW
Raw data from the motion sensor
-
enumerator RS2_FORMAT_MOTION_XYZ32F
Motion data packed as 3 32-bit float values, for X, Y, and Z axis
-
enumerator RS2_FORMAT_GPIO_RAW
Raw data from the external sensors hooked to one of the GPIO’s
-
enumerator RS2_FORMAT_6DOF
Pose data packed as floats array, containing translation vector, rotation quaternion and prediction velocities and accelerations vectors
-
enumerator RS2_FORMAT_DISPARITY32
32-bit float-point disparity values. Depth->Disparity conversion : Disparity = Baseline*FocalLength/Depth
-
enumerator RS2_FORMAT_Y10BPACK
16-bit per-pixel grayscale image unpacked from 10 bits per pixel packed ([8:8:8:8:2222]) grey-scale image. The data is unpacked to LSB and padded with 6 zero bits
-
enumerator RS2_FORMAT_DISTANCE
32-bit float-point depth distance value.
-
enumerator RS2_FORMAT_MJPEG
Bitstream encoding for video in which an image of each frame is encoded as JPEG-DIB
-
enumerator RS2_FORMAT_Y8I
8-bit per pixel interleaved. 8-bit left, 8-bit right.
-
enumerator RS2_FORMAT_Y12I
12-bit per pixel interleaved. 12-bit left, 12-bit right. Each pixel is stored in a 24-bit word in little-endian order.
-
enumerator RS2_FORMAT_INZI
multi-planar Depth 16bit + IR 10bit.
-
enumerator RS2_FORMAT_INVI
8-bit IR stream.
-
enumerator RS2_FORMAT_W10
Grey-scale image as a bit-packed array. 4 pixel data stream taking 5 bytes
-
enumerator RS2_FORMAT_Z16H
DEPRECATED! - Variable-length Huffman-compressed 16-bit depth values.
-
enumerator RS2_FORMAT_FG
16-bit per-pixel frame grabber format.
-
enumerator RS2_FORMAT_Y411
12-bit per-pixel.
-
enumerator RS2_FORMAT_Y16I
12-bit per pixel interleaved. 12-bit left, 12-bit right.
-
enumerator RS2_FORMAT_M420
24-bit for every pixel: y for each pixel, and u,v data for every four pixels - packed as 2 lines of y, 1 line of u,v
-
enumerator RS2_FORMAT_COMBINED_MOTION
Combined motion data, as in the combined_motion structure
-
enumerator RS2_FORMAT_COUNT
Number of enumeration values. Not a valid input: intended to be used in for-loops.
-
enumerator RS2_FORMAT_ANY