Home
last modified time | relevance | path

Searched refs:ringbuf (Results 1 – 2 of 2) sorted by relevance

/hal_nxp-3.6.0/mcux/mcux-sdk/components/video/
Dfsl_video_common.c101 status_t VIDEO_RINGBUF_Init(video_ringbuf_t *ringbuf, void **buf, uint32_t size) in VIDEO_RINGBUF_Init() argument
103 assert(ringbuf != NULL); in VIDEO_RINGBUF_Init()
105 ringbuf->rear = 0; in VIDEO_RINGBUF_Init()
106 ringbuf->front = 0; in VIDEO_RINGBUF_Init()
107 ringbuf->size = size; in VIDEO_RINGBUF_Init()
108 ringbuf->buf = buf; in VIDEO_RINGBUF_Init()
113 status_t VIDEO_RINGBUF_Get(video_ringbuf_t *ringbuf, void **item) in VIDEO_RINGBUF_Get() argument
118 uint32_t rear = ringbuf->rear; in VIDEO_RINGBUF_Get()
119 uint32_t front = ringbuf->front; in VIDEO_RINGBUF_Get()
123 *item = ringbuf->buf[ringbuf->front]; in VIDEO_RINGBUF_Get()
[all …]
Dfsl_video_common.h193 status_t VIDEO_RINGBUF_Init(video_ringbuf_t *ringbuf, void **buf, uint32_t size);
203 status_t VIDEO_RINGBUF_Get(video_ringbuf_t *ringbuf, void **item);
213 status_t VIDEO_RINGBUF_Put(video_ringbuf_t *ringbuf, void *item);
221 uint32_t VIDEO_RINGBUF_GetLength(video_ringbuf_t *ringbuf);
229 bool VIDEO_RINGBUF_IsEmpty(video_ringbuf_t *ringbuf);
237 bool VIDEO_RINGBUF_IsFull(video_ringbuf_t *ringbuf);