adas_sensor_buffer_t

Updated: April 19, 2023

Information associated with a buffer from a sensor

Synopsis:

#include <adas/adas_sensor_defs.h>
typedef struct {
    adas_sensor_buffer_type_t type;
    uint64_t timestamp;
    const sensor_buffer_t* sensor_buffer;
    adas_pixel_buffer_handle_t cloned_handle;
    adas_pixel_buffer_handle_t original_handle;
    struct adas_sensor_buffer_t::@30::@32 pixel_buffer;
    union adas_sensor_buffer_t::@30 @31;
} adas_sensor_buffer_t;

Data:

adas_sensor_buffer_type_t type
The type of sensor buffer (see adas_sensor_buffer_type_t).
uint64_t timestamp
The timestamp of the creation of this sensor buffer, not of the actual data.

It is in units of milliseconds and is generated using the monotonic system clock.

const sensor_buffer_t* sensor_buffer
For a buffer of type SENSOR_BUFFER_TYPE_DATA, this is a pointer to the associated sensor_buffer_t.
adas_pixel_buffer_handle_t cloned_handle
A copy of the handle to the pixel buffer (see adas_pixel_buffer_handle_t).
adas_pixel_buffer_handle_t original_handle
The original handle to the pixel buffer (see adas_pixel_buffer_handle_t).
struct adas_sensor_buffer_t::@30::@32 pixel_buffer
For a buffer of type SENSOR_BUFFER_TYPE_PIXEL, this structure contains the handles to the pixel buffer.
union adas_sensor_buffer_t::@30 @31

Library:

libadas