VLC  3.0.15
Typedefs | Functions
vlc_picture_fifo.h File Reference
Include dependency graph for vlc_picture_fifo.h:

Go to the source code of this file.

Typedefs

typedef struct picture_fifo_t picture_fifo_t
 Picture fifo handle. More...
 

Functions

picture_fifo_tpicture_fifo_New (void)
 It creates an empty picture_fifo_t. More...
 
void picture_fifo_Delete (picture_fifo_t *)
 It destroys a fifo created by picture_fifo_New. More...
 
picture_tpicture_fifo_Pop (picture_fifo_t *)
 It retreives a picture_t from the fifo. More...
 
picture_tpicture_fifo_Peek (picture_fifo_t *)
 It returns the first picture_t pointer from the fifo but does not remove it. More...
 
void picture_fifo_Push (picture_fifo_t *, picture_t *)
 It saves a picture_t into the fifo. More...
 
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. More...
 
void picture_fifo_OffsetDate (picture_fifo_t *, mtime_t delta)
 It applies a delta on all the picture timestamp. More...
 

Detailed Description

This file defines picture fifo structures and functions in vlc

Typedef Documentation

◆ picture_fifo_t

Picture fifo handle.

It is thread safe (push/pop).

Function Documentation

◆ picture_fifo_Delete()

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.

Referenced by image_HandlerDelete().

◆ picture_fifo_Flush()

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.

◆ picture_fifo_New()

picture_fifo_t* picture_fifo_New ( void  )

It creates an empty picture_fifo_t.

Referenced by image_HandlerCreate().

◆ picture_fifo_OffsetDate()

void picture_fifo_OffsetDate ( picture_fifo_t ,
mtime_t  delta 
)

It applies a delta on all the picture timestamp.

◆ picture_fifo_Peek()

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.

◆ picture_fifo_Pop()

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.

Referenced by ImageRead(), and ThreadDisplayPreparePicture().

◆ picture_fifo_Push()

void picture_fifo_Push ( picture_fifo_t ,
picture_t  
)

It saves a picture_t into the fifo.

Referenced by ImageQueueVideo(), and vout_PutPicture().