#include <rte.h>
Data Fields | |
void* | data |
unsigned int | size |
double | timestamp |
void* | user_data |
Depending on data direction data points to the data and size is the size of the data in bytes, or data points to buffer space to store data and size is the space available.
When data is passed, timestamp is the capture instant (of the first byte if you wish) in seconds and fractions since 1970-01-01 00:00. A codec may use the timestamps for synchronization and to detect frame dropping. Timestamps must increment with each buffer passed, and should increment by 1 / nominal input rate. That is rte_video_stream_params->frame_rate or rte_audio_stream_params->sampling_freq times channels divided by samples per buffer.
The user_data will be returned along data with rte_push_buffer() in slave push mode, and the unreference callback in slave callback mode. Otherwise user_data is ignored.