Information associated with a buffer from a sensor
Synopsis:
#include <adas/adas_sensor_defs.h>
typedef struct adas_sensor_buffer_t {
adas_sensor_buffer_type_t type;
uint64_t timestamp;
union {
const sensor_buffer_t * sensor_buffer;
struct {
adas_pixel_buffer_handle_t cloned_handle;
adas_pixel_buffer_handle_t original_handle;
} pixel_buffer;
};
} adas_sensor_buffer_t;
Data:
-
adas_sensor_buffer_type_t type
- The type of sensor buffer.
- 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 clock.
- const sensor_buffer_t*sensor_buffer
- For buffer of type
SENSOR_BUFFER_TYPE_DATA, this is a pointer
to the associated sensor_buffer_t.
- struct pixel_buffer
- For buffer of SENSOR_BUFFER_TYPE_PIXEL,
this structure contains the handles to the pixel buffer. The members
of this include:
- adas_pixel_buffer_handle_t cloned_handle
- A copy of the handle the pixel buffer.
- adas_pixel_buffer_handle_t
original_handle
- A handle to the pixel buffer.
Library:
libadas