Main Page | Modules | Data Structures | Directories | Data Fields | Related Pages

rte_buffer Struct Reference
[Input/Output Interfaces]


Data Fields

void * data
unsigned int size
double timestamp
void * user_data

Detailed Description

This structure holds information about data blocks exchanged with the codec, one video frame or one block of audio samples as negotiated with rte_parameters_set().

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.


Generated on Wed Apr 27 17:00:25 2005 for RTE Library by  doxygen 1.4.2