Updated: October 28, 2024 |
The image data and metadata from the camera buffer
#include <camera/camera_api.h>
typedef struct { camera_frametype_t frametype; uint64_t framesize; uint8_t* framebuf; uint64_t framemetasize; void* framemeta; int64_t frametimestamp; camera_framedesc_t framedesc; } camera_buffer_t;
This does not describe the size of the image data pointed to by framebuf. The actual image size must be computed using format-specific fields in the appropriate camera_framedesc_t member.
The timestamp is referenced to the system monotonic clock (CLOCK_MONOTONIC) and is in units of micro-seconds.
The camera buffer structure conveys image data between the API and an application and describes the format of the image data.