Updated: October 28, 2024 |
Format of the data in a sensor buffer
#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;
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_track_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.