The open imaging DSP library
Loading...
Searching...
No Matches
Data Fields
mpix_ring Struct Reference

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
 

Detailed Description

Ring buffer of pixels.

Store the data betwen a previous operation and the next operation.

Field Documentation

◆ allocated

uint8_t mpix_ring::allocated

Flag to tell that the buffer is allocated by mpix_ring_free()

◆ buffer

uint8_t* mpix_ring::buffer

Pointer to the buffer that stores the data

◆ full

uint8_t mpix_ring::full

Flag to tell apart between full and empty when head == tail

◆ head

size_t mpix_ring::head

Position of the writing head where data is inserted

◆ peek

size_t mpix_ring::peek

Position of the peeking tail where data is read ahead of the tail

◆ size

size_t mpix_ring::size

Total size of the buffer

◆ tail

size_t mpix_ring::tail

Position of the reading tail where data is read and removed


The documentation for this struct was generated from the following file: