![]() |
The open imaging DSP library
|
Ring buffer of pixels. More...
#include <types.h>
Data Fields | |
uint8_t * | buffer |
size_t | size |
size_t | head |
size_t | tail |
size_t | peek |
uint8_t | full: 1 |
uint8_t | allocated: 1 |
Ring buffer of pixels.
Store the data betwen a previous operation and the next operation.
uint8_t mpix_ring::allocated |
Flag to tell that the buffer is allocated by mpix_ring_free()
uint8_t* mpix_ring::buffer |
Pointer to the buffer that stores the data
uint8_t mpix_ring::full |
Flag to tell apart between full and empty when head == tail
size_t mpix_ring::head |
Position of the writing head where data is inserted
size_t mpix_ring::peek |
Position of the peeking tail where data is read ahead of the tail
size_t mpix_ring::size |
Total size of the buffer
size_t mpix_ring::tail |
Position of the reading tail where data is read and removed