VLC  3.0.15
vlc_picture_fifo.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * vlc_picture_fifo.h: picture fifo definitions
3  *****************************************************************************
4  * Copyright (C) 2009 VLC authors and VideoLAN
5  * $Id: 73d1b20c279f628cf94bc7cfc83b2548878bcc07 $
6  *
7  * Authors: Laurent Aimar <fenrir _AT_ videolan _DOT_ org>
8  *
9  * This program is free software; you can redistribute it and/or modify it
10  * under the terms of the GNU Lesser General Public License as published by
11  * the Free Software Foundation; either version 2.1 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  * GNU Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public License
20  * along with this program; if not, write to the Free Software Foundation,
21  * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22  *****************************************************************************/
23 
24 #ifndef VLC_PICTURE_FIFO_H
25 #define VLC_PICTURE_FIFO_H 1
26 
27 /**
28  * \file
29  * This file defines picture fifo structures and functions in vlc
30  */
31 
32 #include <vlc_picture.h>
33 
34 /**
35  * Picture fifo handle
36  *
37  * It is thread safe (push/pop).
38  */
40 
41 /**
42  * It creates an empty picture_fifo_t.
43  */
45 
46 /**
47  * It destroys a fifo created by picture_fifo_New.
48  *
49  * All pictures inside the fifo will be released by picture_Release.
50  */
52 
53 /**
54  * It retreives a picture_t from the fifo.
55  *
56  * If the fifo is empty, it return NULL without waiting.
57  */
59 
60 /**
61  * It returns the first picture_t pointer from the fifo but does not
62  * remove it. The picture returned has been hold for you so you
63  * must call picture_Release on it.
64  *
65  * If the fifo is empty, it return NULL without waiting.
66  */
68 
69 /**
70  * It saves a picture_t into the fifo.
71  */
73 
74 /**
75  * It release all picture inside the fifo that have a lower or equal date
76  * if flush_before or higher or equal to if not flush_before than the given one.
77  *
78  * All pictures inside the fifo will be released by picture_Release.
79  */
80 VLC_API void picture_fifo_Flush( picture_fifo_t *, mtime_t date, bool flush_before );
81 
82 /**
83  * It applies a delta on all the picture timestamp.
84  */
86 
87 
88 #endif /* VLC_PICTURE_FIFO_H */
89 
VLC_API
#define VLC_API
Definition: fourcc_gen.c:30
picture_fifo_Delete
void picture_fifo_Delete(picture_fifo_t *)
It destroys a fifo created by picture_fifo_New.
Definition: picture_fifo.c:139
vlc_common.h
picture_fifo_Push
void picture_fifo_Push(picture_fifo_t *, picture_t *)
It saves a picture_t into the fifo.
Definition: picture_fifo.c:78
picture_t
Video picture.
Definition: vlc_picture.h:68
picture_fifo_t
Definition: picture_fifo.c:37
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 e...
Definition: picture_fifo.c:102
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.
Definition: picture_fifo.c:92
VLC_USED
#define VLC_USED
Definition: fourcc_gen.c:31
vlc_picture.h
mtime_t
int64_t mtime_t
High precision date or time interval.
Definition: vlc_common.h:150
picture_fifo_OffsetDate
void picture_fifo_OffsetDate(picture_fifo_t *, mtime_t delta)
It applies a delta on all the picture timestamp.
Definition: picture_fifo.c:130
picture_fifo_Pop
picture_t * picture_fifo_Pop(picture_fifo_t *)
It retreives a picture_t from the fifo.
Definition: picture_fifo.c:84
picture_fifo_New
picture_fifo_t * picture_fifo_New(void)
It creates an empty picture_fifo_t.
Definition: picture_fifo.c:67