QVisu
Qt-based visualization for smart homes
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
vlc_picture_fifo.h File Reference
#include <vlc_picture.h>

Go to the source code of this file.

Typedefs

typedef struct picture_fifo_t picture_fifo_t
 

Functions

VLC_API picture_fifo_tpicture_fifo_New (void) VLC_USED
 
VLC_API void picture_fifo_Delete (picture_fifo_t *)
 
VLC_API picture_tpicture_fifo_Pop (picture_fifo_t *) VLC_USED
 
VLC_API picture_tpicture_fifo_Peek (picture_fifo_t *) VLC_USED
 
VLC_API void picture_fifo_Push (picture_fifo_t *, picture_t *)
 
VLC_API void picture_fifo_Flush (picture_fifo_t *, mtime_t date, bool flush_before)
 
VLC_API void picture_fifo_OffsetDate (picture_fifo_t *, mtime_t delta)
 

Detailed Description

This file defines picture fifo structures and functions in vlc

Typedef Documentation

Picture fifo handle

It is thread safe (push/pop).

Function Documentation

VLC_API void picture_fifo_Delete ( picture_fifo_t )

It destroys a fifo created by picture_fifo_New.

All pictures inside the fifo will be released by picture_Release.

VLC_API void picture_fifo_Flush ( picture_fifo_t ,
mtime_t  date,
bool  flush_before 
)

It release all picture inside the fifo that have a lower or equal date if flush_before or higher or equal to if not flush_before than the given one.

All pictures inside the fifo will be released by picture_Release.

VLC_API picture_fifo_t* picture_fifo_New ( void  )

It creates an empty picture_fifo_t.

VLC_API void picture_fifo_OffsetDate ( picture_fifo_t ,
mtime_t  delta 
)

It applies a delta on all the picture timestamp.

VLC_API picture_t* picture_fifo_Peek ( picture_fifo_t )

It returns the first picture_t pointer from the fifo but does not remove it. The picture returned has been hold for you so you must call picture_Release on it.

If the fifo is empty, it return NULL without waiting.

VLC_API picture_t* picture_fifo_Pop ( picture_fifo_t )

It retreives a picture_t from the fifo.

If the fifo is empty, it return NULL without waiting.

VLC_API void picture_fifo_Push ( picture_fifo_t ,
picture_t  
)

It saves a picture_t into the fifo.