sensor_format_t
Format of the data in a sensor buffer
Synopsis:
#include <sensor/sensor_api.h>typedef enum {
SENSOR_FORMAT_UNSPECIFIED = 0,
SENSOR_FORMAT_VIDEO_NV12 = 1,
SENSOR_FORMAT_VIDEO_RGB8888 = 2,
SENSOR_FORMAT_VIDEO_RGB888 = 3,
SENSOR_FORMAT_VIDEO_GRAY8 = 5,
SENSOR_FORMAT_METADATA = 6,
SENSOR_FORMAT_VIDEO_CBYCRY = 8,
SENSOR_FORMAT_VIDEO_COMPRESSED = 9,
SENSOR_FORMAT_VIDEO_RGB565 = 11,
SENSOR_FORMAT_VIDEO_YCBCR420P = 13,
SENSOR_FORMAT_VIDEO_YCBYCR = 14,
SENSOR_FORMAT_VIDEO_YCRYCB = 15,
SENSOR_FORMAT_VIDEO_CRYCBY = 16,
SENSOR_FORMAT_VIDEO_ROI = 17,
SENSOR_FORMAT_VIDEO_BAYER14_RGGB_PADLO16 = 18,
SENSOR_FORMAT_LIDAR_POLAR = 19,
SENSOR_FORMAT_LIDAR_POINT_CLOUD = 20,
SENSOR_FORMAT_USER_DATA = 21,
SENSOR_FORMAT_RADAR_POLAR = 22,
SENSOR_FORMAT_GPS = 23,
SENSOR_FORMAT_IMU = 24,
SENSOR_FORMAT_LIDAR_SPHERICAL = 25,
SENSOR_FORMAT_RADAR_SPHERICAL = 26,
SENSOR_FORMAT_VIDEO_NV16 = 27,
SENSOR_FORMAT_NUMFORMATS
} sensor_format_t;Data:
- SENSOR_FORMAT_UNSPECIFIED
- The data has no associated or recognized format, or is unformatted.
- SENSOR_FORMAT_VIDEO_NV12
- The format is NV12-formatted video data.
- SENSOR_FORMAT_VIDEO_RGB8888
- The format is 32-bit ARGB video data.
- SENSOR_FORMAT_VIDEO_RGB888
- The format is 24-bit RGB video data.
- SENSOR_FORMAT_VIDEO_GRAY8
- The format is 8-bit gray-scale video data.
- SENSOR_FORMAT_METADATA
- The format is buffer metadata.
- SENSOR_FORMAT_VIDEO_CBYCRY
- The format is a YCbCr 4:2:2 packed video frame type.
- SENSOR_FORMAT_VIDEO_COMPRESSED
- The format consists of compressed video data.
- SENSOR_FORMAT_VIDEO_RGB565
- The format consists of 16-bit RGB video data (5-bit red component, 6-bit green component, 5-bit blue component).
- SENSOR_FORMAT_VIDEO_YCBCR420P
- The format is a YCbCr 4:2:0 video format where Y, Cb and Cr are stored in separate planes.
- SENSOR_FORMAT_VIDEO_YCBYCR
- The format is a YCbCr 4:2:2 packed video frame where the pixel order is Y, Cb, Y, Cr.
- SENSOR_FORMAT_VIDEO_YCRYCB
- The format is a YCbCr 4:2:2 packed video frame where the pixel order is Y, Cr, Y, Cb.
- SENSOR_FORMAT_VIDEO_CRYCBY
- The format is a YCbCr 4:2:2 packed video frame where the pixel order is Cr, Y, Cb, Y.
- SENSOR_FORMAT_VIDEO_ROI
- The format is a region-of-interest (ROI) video image within a bigger buffer.
- SENSOR_FORMAT_VIDEO_BAYER14_RGGB_PADLO16
- The format is a 14-bit Bayer video data in a 16-bit buffer.
- SENSOR_FORMAT_LIDAR_POLAR
- The format is lidar data in polar coordinates.
- SENSOR_FORMAT_LIDAR_POINT_CLOUD
- The format is lidar data in point cloud format (X, Y, Z) coordinates.
- SENSOR_FORMAT_USER_DATA
- The format is a user-specific format used for sensor interim data.
- SENSOR_FORMAT_RADAR_POLAR
- The format is radar data in polar coordinates.
- SENSOR_FORMAT_GPS
- The format is GPS data.
- SENSOR_FORMAT_IMU
- The format is IMU data.
- SENSOR_FORMAT_LIDAR_SPHERICAL
- The format is lidar data in standard spherical coordinates.
- SENSOR_FORMAT_RADAR_SPHERICAL
- The format is radar track data in standard spherical coordinates.
- SENSOR_FORMAT_VIDEO_NV16
- The format type is NV16-formatted data.
- SENSOR_FORMAT_NUMFORMATS
- An end-of-list identifier that indicates the number of formats recognized by this library.
Library:
libsensorDescription:
Formats are used to distinguish between format-specific information within a sensor_buffer_t structure.
Page updated:
