The format of the data in a sensor buffer
#include <sensor/sensor_api.h>
typedef enum {
SENSOR_FORMAT_UNSPECIFIED = 0,
SENSOR_FORMAT_VIDEO_NV12,
SENSOR_FORMAT_VIDEO_RGB8888,
SENSOR_FORMAT_VIDEO_RGB888,
SENSOR_FORMAT_VIDEO_GRAY8 = 5,
SENSOR_FORMAT_METADATA,
SENSOR_FORMAT_VIDEO_CBYCRY = 8,
SENSOR_FORMAT_VIDEO_COMPRESSED,
SENSOR_FORMAT_VIDEO_RGB565 = 11,
SENSOR_FORMAT_VIDEO_YCBCR420P = 13,
SENSOR_FORMAT_VIDEO_YCBYCR,
SENSOR_FORMAT_VIDEO_YCRYCB,
SENSOR_FORMAT_VIDEO_CRYCBY,
SENSOR_FORMAT_VIDEO_ROI,
SENSOR_FORMAT_VIDEO_BAYER14_RGGB_PADLO16,
SENSOR_FORMAT_LIDAR_POLAR,
SENSOR_FORMAT_LIDAR_POINT_CLOUD,
SENSOR_FORMAT_USER_DATA,
SENSOR_FORMAT_RADAR_POLAR,
SENSOR_FORMAT_GPS,
SENSOR_FORMAT_IMU,
SENSOR_FORMAT_LIDAR_SPHERICAL,
SENSOR_FORMAT_RADAR_SPHERICAL,
SENSOR_FORMAT_VIDEO_NV16,
SENSOR_FORMAT_NUMFORMATS
} sensor_format_t;
The sensor_format_video_semiplanar_t structure represents this format.
The sensor_format_video_packed_t structure represents this format.
The sensor_format_video_packed_t structure represents this format.
The sensor_format_video_packed_t structure represents this format.
The sensor_format_data_t structure represents this format.
The sensor_format_video_cbycry_t structure represents this format.
The sensor_format_video_compressed_t structure represents this format.
The sensor_format_video_packed_t structure represents this format.
The sensor_format_video_planar_t structure represents this format.
The sensor_format_video_packed_t structure represents this format.
The sensor_format_video_packed_t structure represents this format.
The sensor_format_video_packed_t structure represents this format.
The sensor_format_video_roi_t structure represents this format.
Bit: FEDCBA9876543210 FEDCBA9876543210 Scanline n: RRRRRRRRRRRRRR00 GGGGGGGGGGGGGG00 Scanline n+1: GGGGGGGGGGGGGG00 BBBBBBBBBBBBBB00
The sensor_lidar_polar_t structure represents this format and the info member will be of type sensor_format_data_t.
The cartesian coordinates conform to the right hand rule. The sensor_lidar_point_cloud_t structure represents this format and the info member will be of type sensor_format_data_t.
The sensor_format_user_data_t structure represents this format.
The sensor_radar_track_polar_t structure represents this format and the info member will be of type sensor_format_data_t.
The sensor_gps_format_t structure represents this format and the info member will be of type sensor_format_data_t.
The sensor_imu_format_t structure represents this format and the info member will be of type sensor_format_data_t.
This format uses the ISO 80000-2:2009 standard naming convention. The sensor_lidar_spherical_t structure represents this format and the info member will be of type sensor_format_data_t.
This format uses the ISO 80000-2:2009 standard naming convention. The ::sensor_radar_spherical_t structure represents this format and the info member will be of type sensor_format_data_t.
The sensor_format_video_semiplanar_t structure represents this frame type.
Formats are used to distinguish between format-specific information within a sensor_buffer_t structure.